/* ================= LUXURY CONTACT FORM & MAP (ANIMATED) ================= */

.contact-form-section {
    background: radial-gradient(circle at bottom right, rgba(215, 168, 79, 0.05) 0%, #07140f 60%);
    padding: 20px 6% 100px;
    overflow: hidden;
}

.contact-form-container {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: stretch;
}

/* ================= FORM BOX ================= */

.contact-form-box {
    width: 100%;
    margin: 0;
    position: relative;
    overflow: hidden;
    color: white;
    background: #0b1f19;
    border-radius: 24px;
    border: 1px solid rgba(215, 168, 79, 0.25);
    padding: 40px;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.45), 0 0 40px rgba(215, 168, 79, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 0;
    transform: translateX(-50px) translateY(25px);
    animation: slideInLeft 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.1s;
}

/* REDESIGNED: Gold text with horizontal lines on both sides */
.contact-form-box h2 {
    font-size: 26px;
    font-weight: 500;
    margin: 0 0 40px 0;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #d7a84f;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

/* Left and right gold lines */
.contact-form-box h2::before,
.contact-form-box h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: #d7a84f;
    opacity: 0.7;
    flex-shrink: 0;
}

/* Sweeping gold shimmer */
.contact-form-box::before {
    content: '';
    position: absolute;
    top: -120%;
    left: -120%;
    width: 220%;
    height: 220%;
    background: linear-gradient(
        115deg,
        transparent 30%,
        rgba(215, 168, 79, 0.07) 50%,
        transparent 70%
    );
    transform: rotate(35deg);
    transition: top 1.1s ease, left 1.1s ease;
    pointer-events: none;
    z-index: 1;
}

.contact-form-box:hover::before {
    top: 120%;
    left: 120%;
}

.contact-form-box form {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 0;
}

/* ================= INPUT ROWS ================= */

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    flex-shrink: 0;
}

.input-group:nth-child(1) { animation: fadeSlideUp 0.6s ease forwards; animation-delay: 0.35s; opacity: 0; }
.input-group:nth-child(2) { animation: fadeSlideUp 0.6s ease forwards; animation-delay: 0.45s; opacity: 0; }
.text-area-group          { animation: fadeSlideUp 0.6s ease forwards; animation-delay: 0.55s; opacity: 0; }
.submit-btn               { animation: fadeSlideUp 0.6s ease forwards; animation-delay: 0.65s; opacity: 0; }

.input-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.input-group input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 13px;
    border: 1.3px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.045);
    color: white;
    font-size: 16px;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}

.input-group label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #d8dedb;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group input:focus + label,
.input-group input:valid + label {
    top: -10px;
    left: 15px;
    transform: translateY(0);
    padding: 0 6px;
    background: #0b1f19;
    color: #d7a84f;
    font-size: 12px;
    letter-spacing: 1px;
}

.input-group input,
.text-area-group textarea {
    transition: border-color 0.35s ease,
                background  0.35s ease,
                box-shadow  0.35s ease,
                transform   0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group input:focus,
.text-area-group textarea:focus {
    border-color: #d7a84f;
    background: rgba(215, 168, 79, 0.06);
    box-shadow:
        0 0 0 4px rgba(215, 168, 79, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
    outline: none;
}

/* ================= TEXTAREA ================= */

.text-area-group {
    margin-top: 5px;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.text-area-group textarea {
    width: 100%;
    flex: 1;
    min-height: 140px;
    padding: 22px 20px;
    border-radius: 13px;
    border: 1.3px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.045);
    color: white;
    font-size: 16px;
    outline: none;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
}

.text-area-group label {
    position: absolute;
    left: 20px;
    top: 22px;
    font-size: 16px;
    color: #d8dedb;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-area-group textarea:focus + label,
.text-area-group textarea:valid + label {
    top: -9px;
    left: 16px;
    padding: 0 7px;
    background: #0b1f19;
    color: #d7a84f;
    font-size: 12px;
    letter-spacing: 1px;
}

/* ================= SUBMIT BUTTON ================= */

.submit-btn {
    position: relative;
    overflow: hidden;
    margin-top: auto;
    padding: 16px 32px;
    border-radius: 13px;
    border: none;
    background: #d7a84f;
    color: #07140f;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    transition:
        transform   0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow  0.4s cubic-bezier(0.4, 0, 0.2, 1),
        background  0.4s ease,
        color       0.4s ease,
        letter-spacing 0.4s ease !important;
}

.submit-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(215, 168, 79, 0.18) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.4s ease, transform 0.5s ease;
    pointer-events: none;
}

.submit-btn:hover::after {
    opacity: 1;
    transform: scale(1.4);
}

.submit-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 16px 40px rgba(215, 168, 79, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.3);
    background: #ffffff !important;
    color: #07140f !important;
    letter-spacing: 3px;
}

.submit-btn:active {
    transform: translateY(-1px) scale(0.99);
    box-shadow: 0 6px 18px rgba(215, 168, 79, 0.2);
}

/* ================= MAP BOX ================= */

.map-box {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(215, 168, 79, 0.25);
    box-shadow:
        0 25px 65px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(215, 168, 79, 0.08);
    min-height: 450px;
    background: #0b241f;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition:
        transform   0.5s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow  0.5s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.5s ease;
    opacity: 0;
    transform: translateX(50px) translateY(25px);
    animation: slideInRight 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.3s;
}

.map-box:hover {
    transform: translateY(-10px);
    box-shadow:
        0 35px 80px rgba(0, 0, 0, 0.55),
        0 0 55px rgba(215, 168, 79, 0.2),
        0 0 0 1px rgba(215, 168, 79, 0.45);
    border-color: rgba(215, 168, 79, 0.5);
}

.map-box::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    pointer-events: none;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
    z-index: 1;
    transition: box-shadow 0.5s ease;
}

.map-box:hover::after {
    box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.3);
}

.map-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    pointer-events: none;
    z-index: 2;
    background:
        linear-gradient(135deg, rgba(215, 168, 79, 0.12) 0%, transparent 25%),
        linear-gradient(315deg, rgba(215, 168, 79, 0.08) 0%, transparent 25%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.map-box:hover::before {
    opacity: 1;
}

/* ================= MAP IFRAME ================= */

.map-box iframe {
    width: 100%;
    flex: 1;
    min-height: 450px;
    border: none;
    display: block;
    filter:
        invert(90%)
        brightness(80%)
        contrast(90%)
        saturate(60%);
    transition: filter 0.5s ease;
}

.map-box:hover iframe {
    filter:
        invert(90%)
        brightness(88%)
        contrast(92%)
        saturate(75%);
}

/* ================= KEYFRAMES ================= */

@keyframes slideInLeft {
    0%   { opacity: 0; transform: translateX(-50px) translateY(25px); }
    100% { opacity: 1; transform: translateX(0)    translateY(0);     }
}

@keyframes slideInRight {
    0%   { opacity: 0; transform: translateX(50px) translateY(25px); }
    100% { opacity: 1; transform: translateX(0)   translateY(0);     }
}

@keyframes fadeSlideUp {
    0%   { opacity: 0; transform: translateY(16px); }
    100% { opacity: 1; transform: translateY(0);    }
}

/* ================= RESPONSIVENESS ================= */

@media (max-width: 991px) {
    .contact-form-container {
        grid-template-columns: 1fr;
    }

    .map-box {
        min-height: 400px;
        order: -1;
    }

    .contact-form-box,
    .map-box {
        opacity: 0;
        transform: translateY(35px);
        animation: slideUpMobile 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    .map-box {
        animation-delay: 0.15s;
    }
}

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

@media (max-width: 650px) {
    .contact-form-box {
        padding: 28px;
    }

    .contact-form-box h2 {
        font-size: 20px;
        letter-spacing: 3px;
        gap: 16px;
    }

    .contact-form-box h2::before,
    .contact-form-box h2::after {
        width: 50px;
    }

    .input-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .map-box:hover {
        transform: none;
    }

    .map-box iframe {
        min-height: 320px;
    }
}
