/* ========================================= */
/* CONTACT SECTION - MATCHING SERVICES.CSS   */
/* ========================================= */

.contact-clinical-section {
    background: #ffffff;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Increased top padding significantly to ensure content clears your fixed header */
    padding-top: 120px; 
    padding-bottom: 40px;
    box-sizing: border-box;
    overflow: hidden;
}

.contact-clinical-wrapper {
    max-width: 1400px; /* Matching services max-width */
    padding: 0 20px;
}

/* Header styling exact match to services.css */
.section-tag-gold {
    gap: 12px;
    font-family: 'Lato', sans-serif;
    font-size: 10px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #888;
}

.dot-gold {
    width: 8px;
    height: 8px;
    background: #d4af37;
    border-radius: 50%;
}

.contact-main-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(30px, 3.5vw, 42px);
    color: #0c1c35;
    font-weight: 600;
}

.blue-accent { color: #0056b3; }

/* The Unified Split Card - using services.css card styling */
.contact-premium-card {
    background: #ffffff;
    border-radius: 16px; /* Matching border-radius */
    border: 1px solid #e5e7eb; /* Matching border */
    /* Exact shadow from .service-box */
    box-shadow: 0 10px 25px rgba(12, 28, 53, 0.10), 0 2px 6px rgba(12, 28, 53, 0.06);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    overflow: hidden;
    /* Recalculated height to account for the larger 120px top padding */
    height: calc(100vh - 280px); 
    max-height: 620px;
    min-height: 480px;
}

.contact-premium-card:hover {
    /* Exact hover shadow from .service-box:hover */
    box-shadow: 0 16px 40px rgba(12, 28, 53, 0.14), 0 4px 10px rgba(12, 28, 53, 0.08);
}

/* Left Info Column */
.contact-info-side {
    padding: 30px 40px;
    background: #fafafa; /* Very light grey to distinguish from right panel */
    border-right: 1px solid #e5e7eb;
}

/* Matching the gold accent bar at the bottom */
.contact-accent {
    position: absolute;
    bottom: 0;
    left: 40px;
    width: 45px;
    height: 4px;
    background: #d4af37;
    border-radius: 2px 2px 0 0;
}

.contact-label {
    font-family: 'Playfair Display', serif; /* Matched to .service-idx */
    font-size: 14px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-text {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    color: #555;
    line-height: 1.4;
    margin: 0;
}

.email-link { 
    color: #0056b3; /* Matched to blue accent */
    font-weight: 700;
    transition: color 0.3s ease;
}

.email-link:hover { color: #d4af37; }

.border-light { border-color: #e5e7eb !important; }

/* Map embedded in left column */
.contact-map-mini {
    height: 110px; /* Reduced slightly to prevent internal scrolling */
    border: 1px solid #e5e7eb;
}

.map-overlay-text {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    background: rgba(12, 28, 53, 0.85); /* Dark overlay */
    color: #ffffff;
    padding: 6px 0;
    text-align: center;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Right Form Column */
.contact-form-side {
    padding: 30px 40px;
    background: #ffffff;
}

.form-section-title {
    font-family: 'Playfair Display', serif; /* Matched to .service-box h4 */
    font-size: 22px;
    color: #0c1c35;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Form Inputs */
.clinical-input {
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important; /* Matched standard border */
    border-radius: 8px !important;
    font-family: 'Inter', sans-serif;
    font-size: 14px !important;
    color: #555 !important;
    transition: all 0.3s ease;
}

.clinical-input:focus {
    border-color: #d4af37 !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15) !important;
}

.form-floating > label {
    font-family: 'Lato', sans-serif;
    font-size: 13.5px;
    color: #888;
}

#patientMessage {
    height: 90px;
    resize: none;
}

/* Submit Button styled similarly to .view-more-link but as a solid button */
.contact-submit-btn {
    background: #ffffff;
    color: #0056b3; /* Primary blue from services */
    border: 1px solid #0056b3;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 12px 0;
    transition: all 0.3s ease;
}

.contact-submit-btn i {
    transition: transform 0.3s ease;
}

.contact-submit-btn:hover {
    background: #013578;
    color: #ffffff;
}

.contact-submit-btn:hover i {
    transform: translateX(5px) translateY(-3px); /* Small animation on hover */
}

/* ========================================= */
/* RESPONSIVE - TABLET (max-width: 991px)    */
/* ========================================= */
@media screen and (max-width: 991px) {

    /* Section: scroll naturally, generous top/bottom breathing room */
    .contact-clinical-section {
        height: auto;
        min-height: 100vh;
        padding: 100px 0 70px 0;
        align-items: flex-start;
        overflow: visible;
    }

    /* Wrapper: full width with comfortable side gutters */
    .contact-clinical-wrapper {
        width: 100%;
        padding: 0 16px;
    }

    /* Header block: tighter gap on smaller screens */
    .contact-main-title {
        font-size: clamp(26px, 6vw, 34px);
        margin-bottom: 6px;
    }

    /* Card: auto height, stacks cleanly */
    .contact-premium-card {
        height: auto;
        max-height: none;
        min-height: unset;
        border-radius: 14px;
    }

    /* Info side: comfortable padding, bottom border instead of right border */
    .contact-info-side {
        padding: 28px 24px 24px 24px;
        background: #fafafa;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    /* Form side: matching padding */
    .contact-form-side {
        padding: 28px 24px 32px 24px;
        background: #ffffff;
    }

    /* Gold accent bar: aligns with padding */
    .contact-accent {
        left: 24px;
    }

    /* Detail blocks: slightly looser spacing between entries */
    .detail-block {
        margin-bottom: 18px !important;
    }

    /* Clinical hours rows: slightly larger text for readability */
    .contact-text {
        font-size: 13px;
    }

    /* Map: taller on tablet for better usability */
    .contact-map-mini {
        height: 150px;
        margin-top: 20px !important;
    }

    /* Form title */
    .form-section-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    /* Submit button: standard tap height */
    .contact-submit-btn {
        padding: 14px 0;
        font-size: 12.5px;
    }
}

/* ========================================= */
/* RESPONSIVE - MOBILE (max-width: 575px)    */
/* ========================================= */
@media screen and (max-width: 575px) {

    /* Section: more top clearance for mobile header, generous bottom */
    .contact-clinical-section {
        padding: 90px 0 60px 0;
    }

    /* Wrapper: tighter gutters on small phones */
    .contact-clinical-wrapper {
        padding: 0 14px;
    }

    /* Section tag: smaller letter-spacing to fit */
    .section-tag-gold {
        letter-spacing: 3px;
        font-size: 9px;
        gap: 8px;
    }

    /* Title: fluid sizing for small screens */
    .contact-main-title {
        font-size: clamp(22px, 7vw, 28px);
        line-height: 1.3;
    }

    /* Card: remove rounded corners at very small widths for edge-to-edge feel,
       keep a subtle shadow */
    .contact-premium-card {
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(12, 28, 53, 0.09), 0 2px 6px rgba(12, 28, 53, 0.05);
    }

    /* Info side: tighter padding for small screens */
    .contact-info-side {
        padding: 24px 18px 20px 18px;
    }

    /* Gold accent: aligns with padding */
    .contact-accent {
        left: 18px;
    }

    /* Contact label: slightly smaller but still prominent */
    .contact-label {
        font-size: 12.5px;
        letter-spacing: 0.8px;
        margin-bottom: 5px;
    }

    /* Contact text: comfortable reading size */
    .contact-text {
        font-size: 12.5px;
        line-height: 1.5;
    }

    /* Clinical hours: stack label and time on tiny screens */
    .contact-text.d-flex.justify-content-between {
        flex-wrap: wrap;
        gap: 2px;
    }

    /* Map: good height for touch, full-width */
    .contact-map-mini {
        height: 140px;
        margin-top: 18px !important;
        border-radius: 8px;
    }

    /* Form side: cozy but breathable */
    .contact-form-side {
        padding: 22px 18px 28px 18px;
    }

    /* Form title */
    .form-section-title {
        font-size: 19px;
        margin-bottom: 14px;
    }

    /* Inputs: slightly larger touch targets */
    .clinical-input {
        font-size: 13.5px !important;
        border-radius: 8px !important;
    }

    .form-floating > label {
        font-size: 13px;
    }

    /* Textarea: shorter on mobile to avoid excessive scroll */
    #patientMessage {
        height: 80px;
    }

    /* Submit button: full width, tall enough to tap easily */
    .contact-submit-btn {
        padding: 15px 0;
        font-size: 12px;
        letter-spacing: 0.8px;
        border-radius: 8px;
    }

    /* Detail blocks: tighter vertical rhythm */
    .detail-block {
        margin-bottom: 16px !important;
    }
}