/* ─── CONTACT PAGE SPECIFIC STYLES ─── */

/* Separated Form and Image Styling */
.custom-contact-row {
    row-gap: 50px;
}

@media (min-width: 992px) {
    .custom-contact-row {
        gap: 40px;
        flex-wrap: nowrap;
        align-items: stretch !important;
    }

    .contact-form-col {
        flex: 0 0 calc(58% - 20px);
        max-width: calc(58% - 20px);
        padding: 0;
    }

    .contact-img-col {
        flex: 0 0 calc(42% - 20px);
        max-width: calc(42% - 20px);
        padding: 0;
    }
}

.contact-form-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    padding: 25px 50px;
}

@media (max-width: 768px) {
    .contact-form-card {
        padding: 30px 20px;
    }
}

.contact-feature-img-container {
    position: relative;
    z-index: 2;
    height: 100%;
}

.contact-feature-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.contact-feature-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform 0.8s ease;
}

.contact-feature-img-wrapper:hover img {
    transform: scale(1.05);
}

.contact-feature-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(76, 29, 149, 0.4) 0%, rgba(76, 29, 149, 0.05) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 3;
}

/* Image Decorations */
.img-dec-rect {
    position: absolute;
    top: -20px;
    right: -20px;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, var(--purple-main), var(--purple-dark));
    border-radius: 24px;
    opacity: 0.2;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(123, 44, 191, 0.2);
}

.img-dec-layer {
    position: absolute;
    top: 20px;
    left: -20px;
    bottom: -20px;
    right: 20px;
    background: var(--purple-light);
    border-radius: 24px;
    opacity: 0.1;
    z-index: 1;
}

.img-dec-blur {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: var(--purple-main);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.3;
}

/* Premium Input Fields */
.premium-input,
textarea.premium-input {
    border: 1px solid #e6e6e6 !important;
    border-radius: 12px !important;
    padding: 15px 20px !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    background-color: #ffffff !important;
    color: #333 !important;
    box-shadow: none !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
}

.premium-input:focus {
    outline: none !important;
    border-color: #7b2cbf !important;
    box-shadow: 0 0 0 4px rgba(123, 44, 191, 0.1) !important;
}

.form-label {
    color: #555;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Refined Button */
.ref-btn-gradient {
    background: linear-gradient(90deg, #7b2cbf, #9d4edd);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0 32px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: fit-content;
}

.ref-btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(123, 44, 191, 0.25);
    color: white;
}

/* Service Times Section */

/* Contact Info Blocks */
.contact-info-block {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
}

.contact-info-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(106, 13, 173, 0.15);
}

.contact-info-block.address-card {
    border-left: 4px solid var(--purple-main);
}

/* Map Wrapper */
.map-wrapper {
    position: relative;
    z-index: 2;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .custom-contact-row {
        gap: 30px;
    }
}
/* --- DECORATIVE ABSTRACT TOPOGRAPHY BACKGROUND --- */
.wave-bg-contact {
    background-color: #F8F4FF !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 800' fill='none'%3E%3Cdefs%3E%3Cfilter id='blur' x='-50%25' y='-50%25' width='200%25' height='200%25'%3E%3CfeGaussianBlur stdDeviation='80' /%3E%3C/filter%3E%3C/defs%3E%3Ccircle cx='20%25' cy='30%25' r='300' fill='%23E7D8FF' filter='url(%23blur)' opacity='0.7' /%3E%3Ccircle cx='80%25' cy='70%25' r='400' fill='%23F1E8FF' filter='url(%23blur)' opacity='0.8' /%3E%3Ccircle cx='60%25' cy='10%25' r='250' fill='%23DCC8FF' filter='url(%23blur)' opacity='0.5' /%3E%3Cg stroke='%23DCC8FF' stroke-width='1.5' opacity='0.4'%3E%3Cpath d='M-100,150 C300,350 700,-50 1540,250' /%3E%3Cpath d='M-100,180 C310,380 710,-20 1540,280' /%3E%3Cpath d='M-100,210 C320,410 720,10 1540,310' /%3E%3Cpath d='M-100,240 C330,440 730,40 1540,340' /%3E%3Cpath d='M-100,600 C400,500 900,900 1540,400' /%3E%3Cpath d='M-100,630 C410,530 910,930 1540,430' /%3E%3Cpath d='M-100,660 C420,560 920,960 1540,460' /%3E%3C/g%3E%3Cg stroke='%23DCC8FF' stroke-width='1' opacity='0.6'%3E%3Cpath d='M200,-100 C150,300 800,500 1200,900' stroke-dasharray='6 6' /%3E%3Cpath d='M1300,-100 C1100,400 600,600 200,900' /%3E%3Cpath d='M800,-100 C750,300 1000,600 1100,900' stroke-dasharray='3 4' /%3E%3C/g%3E%3Ccircle cx='530' cy='225' r='4' fill='%23DCC8FF' opacity='0.6' /%3E%3Ccircle cx='800' cy='500' r='5' fill='%23DCC8FF' opacity='0.6' /%3E%3Ccircle cx='290' cy='735' r='3' fill='%23DCC8FF' opacity='0.6' /%3E%3Ccircle cx='1020' cy='670' r='4' fill='%23DCC8FF' opacity='0.6' /%3E%3Ccircle cx='1110' cy='290' r='3' fill='%23DCC8FF' opacity='0.6' /%3E%3C/svg%3E") !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
}

/* ─── CONTACT PAGE: MOBILE LANDSCAPE HERO ─── */
@media (max-width: 768px) {
    /* 1. Size and spacing */
    #contact-hero {
        height: auto !important;
        min-height: 0 !important;
        padding-top: 70px !important;
        padding-bottom: 50px !important;
        /* Background lives on the element itself (inline style in HTML).
           home.css already hides ::before globally on mobile, so the element's
           own background-image is now correctly visible. Just tune position/attachment. */
        background-size: cover !important;
        background-position: center 25% !important;
        background-attachment: scroll !important;
        background-repeat: no-repeat !important;
    }

    /* 2. Scale heading down for landscape banner */
    #contact-hero .ref-heading {
        font-size: clamp(1.6rem, 7vw, 2.4rem) !important;
        line-height: 1.15 !important;
        margin-bottom: 10px !important;
    }

    /* 3. Tighten eyebrow badge */
    #contact-hero .ref-eyebrow {
        margin-bottom: 8px !important;
        font-size: 0.7rem !important;
    }

    /* 4. Tighten description */
    #contact-hero .ref-intro {
        font-size: 0.9rem !important;
        margin-bottom: 16px !important;
        line-height: 1.5 !important;
    }

    /* 5. Tighten button container */
    #contact-hero .ref-hero-actions {
        gap: 10px !important;
        margin-top: 0 !important;
    }

    /* ── Contact section column order on mobile ──
       Desktop: [Form (left)] [Image (right)]
       Mobile:  [Image (top)] [Form (bottom)] */
    .contact-form-col {
        order: 2;
    }

    .contact-img-col {
        order: 1;
    }
}
