/* --- CONTACT PAGE STYLES REDESIGN --- */

/* Wrapper for the entire page content (below header) */
.contact-page-wrapper {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 80px);
    /* Adjust based on header height */
    background-image: url('../resources/img/PortadaIndex.webp');
    /* Fallback / Base Image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax-like feel */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 3rem;
    /* Space for footer overlap if needed */
}

/* Dark overlay for readability */
.contact-page-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(61, 4, 19, 0.8), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

/* Ensure content is above overlay */
.contact-page-wrapper>* {
    position: relative;
    z-index: 2;
}

/* Main Title Styles */
.contact-main-title {
    font-family: 'Playfair Display', serif;
    /* Or system serif if not loaded */
    font-weight: 400;
    /* Regular weight for elegance */
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
}

.contact-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Glass Card */
.contact-glass-card {
    background: rgba(255, 255, 255, 0.95);
    /* High opacity white/beige as per design */
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Left Column: Info */
.contact-info-col {
    background-color: #fdfbf7;
    /* Very light beige */
    border-right: 1px solid #e0e0e0;
}

/* Right Column: Form */
.contact-form-col {
    background-color: #fff;
    /* White or slightly different tone */
}

/* Serif Titles in Card */
.serif-title {
    font-family: 'Playfair Display', serif;
    color: #4a1a1a;
    /* Dark Wine */
    font-weight: 700;
}

/* Contact Items */
.contact-item {
    font-size: 1.05rem;
    color: #555;
}

.contact-icon {
    font-size: 1.5rem;
    color: #8b6c4e;
    /* Bronze/Gold tone */
}

.contact-text {
    font-weight: 500;
}

/* Social Buttons */
.social-links {
    display: flex;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #8b6c4e;
    color: #fff;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    background-color: #4a1a1a;
    /* Dark Wine */
    transform: translateY(-3px);
    color: #fff;
}

/* Form Styling */
.form-control-beige {
    background-color: #f0e6d2 !important;
    /* Beige input background */
    border: none !important;
    border-radius: 8px;
    padding: 15px;
    color: #333;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control-beige:focus {
    background-color: #e8dbc3 !important;
    box-shadow: 0 0 0 2px rgba(139, 108, 78, 0.3) !important;
}

.form-control-beige::placeholder {
    color: #887;
}

/* Custom Checkbox */
.custom-check:checked {
    background-color: #8b6c4e;
    border-color: #8b6c4e;
}

/* Submit Button */
.btn-wine-submit {
    background-color: #5e0017;
    /* Deep Wine */
    color: #fff;
    padding: 12px 40px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    box-shadow: 0 4px 10px rgba(94, 0, 23, 0.3);
    transition: all 0.3s ease;
}

.btn-wine-submit:hover {
    background-color: #7a001f;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(94, 0, 23, 0.4);
    color: #fff;
}

/* Animation Utilities */
.animate-fade-down {
    animation: fadeDown 1s ease-out forwards;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .contact-glass-card {
        border-radius: 15px;
        margin: 0 15px;
    }

    .contact-info-col {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding: 2rem !important;
        text-align: center;
    }

    .contact-info-col .d-flex {
        justify-content: center;
        /* Center flex items on mobile */
    }

    .social-links {
        justify-content: center;
    }

    .contact-form-col {
        padding: 2rem !important;
    }

    .contact-main-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .contact-page-wrapper {
        padding-bottom: 1rem;
    }

    .contact-main-title {
        font-size: 2rem;
    }

    .contact-subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }

    .contact-glass-card {
        margin: 0 10px;
        border-radius: 12px;
    }

    .contact-info-col,
    .contact-form-col {
        padding: 1.5rem !important;
    }

    .serif-title {
        font-size: 1.5rem;
    }

    .contact-item {
        font-size: 0.95rem;
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .contact-icon {
        margin-right: 0 !important;
        margin-bottom: 5px;
    }

    .submit-btn-container {
        text-align: left !important;
        /* Align with checkbox on mobile */
    }
}

/* Modal Styling */
.glass-modal {
    background-color: rgba(94, 0, 23, 0.95) !important;
    /* Force Deep Wine background */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    color: #fff !important;
    /* Force white text */
}

.glass-modal .modal-content {
    border: none;
    background: transparent;
}

.glass-modal .modal-body {
    padding: 3rem 2rem;
}

.success-icon {
    font-size: 4rem;
    color: #ffd700;
    /* Gold */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    margin-bottom: 1rem;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.btn-gold-modal {
    background-color: #ffd700;
    color: #5e0017;
    /* Wine text */
    font-weight: 700;
    padding: 12px 35px;
    border-radius: 30px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-gold-modal:hover {
    background-color: #ffffff;
    color: #5e0017;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}