/* Page-specific styles for contact.html */

.contact-section {
    padding: 48px 0;
}

.contact-wrapper {
    display: grid;
    /* mobile-first: single column by default */
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
}

/* On medium+ screens, place a fixed info column beside the form */
@media (min-width: 641px) {
    .contact-wrapper {
        grid-template-columns: 420px 1fr;
        gap: 32px;
    }
}

.contact-info p {
    color: var(--muted);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form label {
    font-size: 0.88rem;
    color: var(--muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    background: #fbfbfb;
    border: 1px solid rgba(20, 30, 10, 0.06);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.98rem;
    width: 100%;
    box-sizing: border-box;
}

.contact-form textarea {
    min-height: 120px;
}

.contact-form .form-actions {
    margin-top: 6px;
}

.form-success {
    color: #2b7a2b;
    font-weight: 700;
    margin-top: 10px;
    display: block;
}

.form-success[hidden] {
    display: none;
}

@media (max-width:768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* Contact page hero */
.hero.contact-hero {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 0;
    background-image: linear-gradient(180deg, rgba(6, 10, 10, 0.32), rgba(6, 10, 10, 0.18)), url("../images/VedhaWellness/8.jpg");
    background-size: cover;
    background-position: center center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Stronger permanent overlay for reliable contrast on hero images */
.hero.contact-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 10, 10, 0.55), rgba(6, 10, 10, 0.25));
    z-index: 2;
    pointer-events: none;
}

.hero.contact-hero .hero-inner {
    max-width: 1100px;
    padding: 12px 18px;
    text-align: center;
}

.hero.contact-hero .hero-inner {
    position: relative;
    z-index: 4;
    /* ensure content sits above overlay */
}

.hero.contact-hero h1 {
    font-size: 2.6rem;
    margin: 0 0 10px 0;
    color: var(--hero-text, #fff);
    font-weight: 800;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.hero.contact-hero .subtle {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 8px;
    font-weight: 600;
}

/* studio photo under address (contact info column) */
.contact-info .studio-photo {
    margin-top: 18px;
    max-width: 520px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(10, 20, 10, 0.06);
}

.contact-info .studio-photo img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width:768px) {
    .contact-info .studio-photo {
        max-width: 100%;
    }
}

.hero.contact-hero .hero-cta {
    padding: 10px 18px;
    border-radius: 26px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* Ensure accent words in hero are light and visible */
.hero.contact-hero .accent-word {
    color: #bfe8c9;
    -webkit-text-fill-color: #bfe8c9;
    font-weight: 800;
}

/* Accent word gradient and subtle animation */
.accent-word {
    color: #08300a;
    -webkit-text-fill-color: #08300a;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    display: inline;
    font-weight: 800;
}

/* small delay helpers for contact page (stagger) */
.delay-0 {
    animation-delay: 0.12s;
}

.delay-1 {
    animation-delay: 0.34s;
}

.delay-2 {
    animation-delay: 0.56s;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    /* no animation present for .accent-word */
}

@media (max-width:768px) {
    .hero.contact-hero {
        min-height: 220px;
        padding: 28px 0;
    }

    .hero.contact-hero h1 {
        font-size: 1.6rem;
    }
}

/* Small-device hero image fallback to reduce mobile bandwidth */
@media (max-width:640px) {
    .hero.contact-hero {
        background-image: linear-gradient(180deg, rgba(6, 10, 10, 0.32), rgba(6, 10, 10, 0.18)), url("../images/VedhaWellness/2.jpg");
        min-height: 220px;
    }
}

@media (min-width:641px) and (max-width:1024px) {
    .hero.contact-hero {
        background-image: linear-gradient(180deg, rgba(6, 10, 10, 0.32), rgba(6, 10, 10, 0.18)), url("../images/VedhaWellness/8.jpg");
        min-height: 260px;
    }
}

/* Mobile contact tweaks: stack columns, responsive map, scale hero */
@media (max-width:640px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .contact-info .studio-photo {
        max-width: 100%;
        height: auto;
    }

    .contact-form {
        width: 100%;
    }

    .map-wrapper {
        margin-top: 14px;
    }

    .map-wrapper iframe {
        width: 100%;
        height: 260px;
        border: 0;
        display: block;
    }

    .hero.contact-hero {
        min-height: 220px;
        padding: 20px 12px;
        background-position: center top;
    }

    .hero.contact-hero h1 {
        font-size: 1.5rem;
    }
}

/* Ensure the map-wrapper uses full width on all viewports and scales nicely */
.map-wrapper {
    width: 100%;
}

/* Reduce top-level padding on small screens to avoid excessive scroll */
@media (max-width:640px) {
    .contact-section {
        padding: 18px 0;
    }
}

/* Center underline for contact heading */
.contact-section h3 {
    text-align: center;
}

.contact-section h3::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin: 10px auto 0 auto;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform-origin: center center !important;
}