/* Contact Us — /contact (Figma 1440 desktop, 393 mobile) */

body.ashrams-contact-page {
    background: #ffffff;
}

/* Figma: transparent header over hero — ASHRAMS · INDIA / CONTACT */
body.ashrams-contact-page .ashrams-header,
body.ashrams-home.ashrams-contact-page .ashrams-header,
.ashrams-header--contact {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent !important;
    border: 0;
    box-shadow: none;
}

body.ashrams-contact-page .ashrams-header__nav--full {
    width: 100%;
    max-width: 90rem;
    min-height: 5.0625rem;
    margin-inline: auto;
    padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
    box-sizing: border-box;
}

body.ashrams-contact-page .ashrams-header__wordmark,
body.ashrams-contact-page .ashrams-header__wordmark--contact,
body.ashrams-home.ashrams-contact-page .ashrams-header__wordmark--contact,
.ashrams-header--contact .ashrams-header__wordmark,
.ashrams-header--contact .ashrams-header__wordmark--contact {
    display: inline-flex !important;
    align-items: center;
    font-family: var(--ashrams-inter, 'Inter'), sans-serif !important;
    font-size: 0.625rem !important;
    font-weight: 600 !important;
    line-height: 0.9375rem;
    letter-spacing: 0.125rem !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    color: #1a1c1c !important;
}

body.ashrams-contact-page .ashrams-header__wordmark:hover,
body.ashrams-contact-page .ashrams-header__wordmark--contact:hover,
body.ashrams-contact-page .ashrams-header__wordmark:visited,
body.ashrams-contact-page .ashrams-header__wordmark--contact:visited {
    color: #1a1c1c !important;
    text-decoration: none !important;
    opacity: 0.75;
}

body.ashrams-contact-page .ashrams-header__wordmark-text--mobile {
    display: none;
}

@media (max-width: 767px) {
    body.ashrams-contact-page .ashrams-header__wordmark-text--desktop {
        display: none !important;
    }

    body.ashrams-contact-page .ashrams-header__wordmark-text--mobile {
        display: inline !important;
    }
}

body.ashrams-contact-page .ashrams-header__actions {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1.25rem);
    margin-left: auto;
}

body.ashrams-contact-page .ashrams-header__menu {
    display: none !important;
}

body.ashrams-contact-page .ashrams-header__toggle,
body.ashrams-contact-page .ashrams-header__toggle--contact {
    display: inline-flex !important;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    width: 22px;
    min-width: 22px;
    height: 39px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

body.ashrams-contact-page .ashrams-header__toggle-line {
    display: block;
    height: 2px;
    background: #1a1c1c;
    border-radius: 999px;
}

body.ashrams-contact-page .ashrams-header__toggle-line--top,
body.ashrams-contact-page .ashrams-header__toggle-line--mid {
    width: 22px;
}

body.ashrams-contact-page .ashrams-header__toggle-line--bottom {
    width: 12px;
}

body.ashrams-contact-page .ashrams-footer {
    margin-top: clamp(4rem, 10vw, 7rem);
    padding-top: 0;
    background: #ffffff;
}

.ashrams-contact-page-main {
    padding-bottom: clamp(2rem, 5vw, 3.5rem);
    background: #ffffff;
}

/* —— Hero —— */
.ashrams-contact__hero-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1440 / 1031;
    min-height: 18rem;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
    overflow: hidden;
}

.ashrams-contact__hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ashrams-contact__hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.ashrams-contact__hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.55) 0%,
            rgba(255, 255, 255, 0.18) 8%,
            transparent 18%
        ),
        linear-gradient(
            180deg,
            transparent 0%,
            transparent 76%,
            rgba(255, 255, 255, 0.35) 82%,
            rgba(255, 255, 255, 0.72) 88%,
            rgba(255, 255, 255, 0.94) 94%,
            #ffffff 100%
        );
}

.ashrams-contact__hero-content {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
    max-width: 80rem;
    padding: clamp(5.5rem, 12vw, 5.5rem) clamp(1rem, 4vw, 2rem) clamp(3.5rem, 7vw, 6rem);
    text-align: center;
    box-sizing: border-box;
}

/* Figma: elegant serif title case “Contact Us” */
body.ashrams-contact-page .ashrams-contact__title {
    font-family: 'Cormorant Infant', var(--ashrams-serif), serif;
    font-size: clamp(2.5rem, 4vw, 2.8125rem);
    font-weight: 400;
    font-style: normal;
    font-synthesis: none;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-align: center;
    text-transform: none;
    margin: 0;
    color: #1a1c1ccf;
}

.ashrams-contact__intro--mobile {
    display: none;
}

/* Figma desktop: Manrope light, ~20px, #5E5E5F, ~2 lines */
.ashrams-contact__intro--desktop {
    display: block;
    font-family: var(--ashrams-manrope, 'Manrope'), var(--ashrams-sans);
    font-size: 17px;
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: 1px;
    color: #5E5E5F;
    margin: 0;
    width: min(50rem, 100%);
    max-width: 50rem;
    text-align: center;
    text-wrap: pretty;
}

/* —— Body grid —— */
.ashrams-contact__shell {
    max-width: 1440px !important;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1rem, 4vw, 5rem);
    padding-right: clamp(1rem, 4vw, 5rem);
    padding-bottom: clamp(3rem, 8vw, 5rem);
}

.ashrams-contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
    width: 100%;
    max-width: 76rem;
    margin-inline: auto;
    padding-inline: clamp(0px, 2vw, 2rem);
    box-sizing: border-box;
}

.ashrams-contact__details {
    order: 1;
    max-width: 36rem;
}

.ashrams-contact__details-mobile {
    display: none;
}

.ashrams-contact__details-desktop {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4vw, 3.5rem);
    max-width: 36rem;
}

.ashrams-contact__details-info {
    display: flex;
    /* flex-direction: column; */
    gap: 2rem 4.6875rem;
    flex-wrap: wrap;
}

.ashrams-contact__detail-block {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.ashrams-contact__detail-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 12px;
    border-radius: 8px;
    background: #1A1C1C;
    box-sizing: border-box;
}

.ashrams-contact__detail-icon img {
    display: block;
    width: 20px;
    height: 20px;
}

.ashrams-contact__detail-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    padding-top: 0.125rem;
}

.ashrams-contact__detail-line {
    font-family: var(--ashrams-inter, 'Inter'), var(--ashrams-sans);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 20px;
    color: #374151;
    text-decoration: none;
}

.ashrams-contact__detail-line--muted {
    color: #737373;
}

.ashrams-contact__detail-line:hover {
    color: #1A1C1C;
}

.ashrams-contact__map {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #E5E7EB;
    min-height: 25rem;
    height: 25rem;
}

.ashrams-contact__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 25rem;
    border: 0;
}

.ashrams-contact__map-link {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    right: auto;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: #ffffff;
    border: none;
    font-family: var(--ashrams-inter, 'Inter'), var(--ashrams-sans);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 20px;
    color: #737373;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ashrams-contact__map-link:hover {
    color: #1A1C1C;
}

.ashrams-contact__map-link i {
    font-size: 1rem;
    color: #737373;
}

/* —— Form —— */
.ashrams-contact__form-wrap {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    width: 100%;
    max-width: 36rem;
    padding-bottom: 5.75rem;
    order: 2;
}

.ashrams-contact__form-title {
    font-family: var(--ashrams-inter, 'Inter'), var(--ashrams-sans);
    font-size: 2.25rem;
    font-weight: 700;
    font-style: normal;
    line-height: 40px;
    letter-spacing: 0;
    color: #5E5E5E;
    margin: 0;
}

.ashrams-contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ashrams-contact__field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.ashrams-contact__field label {
    display: block;
    font-family: var(--ashrams-inter, 'Inter'), var(--ashrams-sans);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 20px;
    color: #1F2937;
    margin: 0;
}

.ashrams-contact__field input,
.ashrams-contact__field textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    background: #ffffff;
    font-family: var(--ashrams-inter, 'Inter'), var(--ashrams-sans);
    font-size: 1rem;
    line-height: 1.2;
    color: #1F2937;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.ashrams-contact__field input {
    min-height: 3.0625rem;
}

.ashrams-contact__field input:focus,
.ashrams-contact__field textarea:focus {
    outline: none;
    border-color: #1A1C1C;
}

.ashrams-contact__field textarea {
    min-height: 10.625rem;
    height: 10.625rem;
    resize: vertical;
    padding-top: 0.75rem;
}

.ashrams-contact__field input::placeholder,
.ashrams-contact__field textarea::placeholder {
    color: #9CA3AF;
}

.ashrams-contact__error {
    font-size: 0.75rem;
    color: #c0392b;
    margin: 0;
}

.ashrams-contact__submit-wrap {
    display: flex;
    justify-content: flex-end;
    padding-top: 1rem;
    justify-content: center;
}

.ashrams-contact__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 11.4375rem;
    padding: 0.75rem 4rem;
    border: none;
    border-radius: 8px;
    background: #1A1C1C;
    color: #ffffff;
    font-family: var(--ashrams-inter, 'Inter'), var(--ashrams-sans);
    font-size: 1rem;
    font-weight: 600;
    line-height: 24px;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: background 0.2s ease, opacity 0.2s ease;
}

.ashrams-contact__submit:hover:not(:disabled) {
    background: #2d3030;
}

.ashrams-contact__submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* —— Desktop (≥1000px) — map bottom aligns with submit button —— */
@media (min-width: 1000px) {
    .ashrams-contact__grid {
        align-items: stretch;
    }

    .ashrams-contact__details {
        display: flex;
        flex-direction: column;
        min-height: 100%;
    }

    .ashrams-contact__details-desktop {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: clamp(1.5rem, 2.5vw, 2.5rem);
        min-height: 0;
    }

    .ashrams-contact__details-info {
        flex-shrink: 0;
    }

    .ashrams-contact__map {
        flex: 1 1 auto;
        min-height: 11rem;
        height: auto;
        max-height: none;
    }

    .ashrams-contact__map iframe {
        min-height: 100%;
        height: 100%;
    }

    .ashrams-contact__form-wrap {
        display: flex;
        flex-direction: column;
        height: 100%;
        padding-bottom: 0;
    }

    .ashrams-contact__form {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .ashrams-contact__submit-wrap {
        margin-top: auto;
    }
}

/* —— Tablet —— */
@media (max-width: 999px) and (min-width: 769px) {
    body.ashrams-contact-page .ashrams-contact__title {
        font-size: clamp(2rem, 8vw, 2.8125rem);
        line-height: 1.2;
        letter-spacing: 0.015em;
    }

    .ashrams-contact__intro--desktop {
        font-size: clamp(1rem, 4vw, 1.25rem);
        line-height: 1.6;
        width: 100%;
        max-width: 36rem;
        padding-inline: 0.5rem;
    }

    .ashrams-contact__intro-line {
        white-space: normal;
        width: 100%;
        max-width: 100%;
    }

    .ashrams-contact__grid {
        grid-template-columns: 1fr;
        max-width: 36rem;
    }

    .ashrams-contact__details {
        max-width: none;
    }

    .ashrams-contact__form-wrap {
        max-width: none;
        padding-bottom: 2rem;
    }

    .ashrams-contact__map {
        min-height: 18rem;
        height: 18rem;
    }

    .ashrams-contact__map iframe {
        min-height: 18rem;
    }
}

/* —— Hero + intro (≤768px — mobile intro, tall hero) —— */
@media (max-width: 768px) {
    .ashrams-contact__hero-media img {
        object-position: center 22%;
    }

    .ashrams-contact__hero-stage {
        aspect-ratio: 393 / 608;
        min-height: 0;
        margin-bottom: 0;
        border-bottom: none;
    }

    .ashrams-contact__hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(255, 255, 255, 0.82) 0%,
                rgba(255, 255, 255, 0.45) 14%,
                rgba(255, 255, 255, 0.12) 28%,
                transparent 42%
            ),
            linear-gradient(
                180deg,
                transparent 0%,
                transparent 62%,
                rgba(255, 255, 255, 0.35) 72%,
                rgba(255, 255, 255, 0.82) 84%,
                #ffffff 100%
            );
    }

    .ashrams-contact__hero-content {
        --contact-hero-pad-top: calc(100vw * 88 / 393);
        --contact-hero-pad-x: max(1.5rem, calc(100vw * 24 / 393));
        --contact-hero-pad-bottom: calc(100vw * 40 / 393);
        --contact-hero-gap: calc(100vw * 20 / 393);
        gap: var(--contact-hero-gap);
        max-width: min(calc(100vw * 345 / 393), calc(100% - 3rem));
        padding:
            var(--contact-hero-pad-top)
            var(--contact-hero-pad-x)
            var(--contact-hero-pad-bottom);
    }

    body.ashrams-contact-page .ashrams-contact__title {
        font-size: clamp(1.875rem, 5vw, 2.25rem);
        line-height: 1.2;
        letter-spacing: -0.01em;
        text-transform: none;
    }

    .ashrams-contact__intro--desktop {
        display: none;
    }

    .ashrams-contact__intro--mobile {
        display: block;
        width: 100%;
        max-width: min(calc(100vw * 331 / 393), calc(100% - 3rem));
        margin: 0 auto;
        font-family: var(--ashrams-manrope, 'Manrope'), var(--ashrams-sans);
        font-size: clamp(0.6875rem, calc(100vw * 11 / 393), 0.8125rem);
        font-weight: 300;
        line-height: calc(18 / 11);
        text-align: center;
        text-wrap: pretty;
        color: #5E5E5F;
    }
}

/* —— Mobile / narrow (≤700px — Figma 393 hero + stacked layout) —— */
@media (max-width: 700px) {
    body.ashrams-contact-page .container.cnt-max__1320.ashrams-contact__shell {
        padding-inline: 1.5rem;
        padding-top: 0.625rem;
        padding-bottom: 3.5rem;
    }

    .ashrams-contact__hero-content {
        max-width: min(21.5625rem, calc(100% - 3rem));
        padding-top: calc(100vw * 96 / 393);
    }

    body.ashrams-contact-page .ashrams-contact__title {
        font-size: 1.875rem;
        text-transform: none;
    }

    .ashrams-contact__intro--mobile {
        max-width: 20.6875rem;
        font-size: 0.6875rem;
        line-height: calc(18 / 11);
    }

    .ashrams-contact__grid {
        display: flex;
        flex-direction: column;
        gap: 0;
        max-width: none;
        padding-inline: 0;
    }

    .ashrams-contact__form-wrap {
        order: 1;
        gap: 0.625rem;
        max-width: none;
        width: 100%;
        padding-bottom: 5.75rem;
        margin-bottom: 0;
    }

    .ashrams-contact__form-title {
        display: none;
    }

    .ashrams-contact__form {
        gap: 1.5rem;
    }

    .ashrams-contact__field input,
    .ashrams-contact__field textarea {
        border-radius: 5px;
    }

    .ashrams-contact__submit-wrap {
        display: flex;
        justify-content: center;
        width: 100%;
        padding-top: 1rem;
    }

    .ashrams-contact__submit {
        border-radius: 5px;
        background: #1B1D1D;
    }

    .ashrams-contact__submit:hover:not(:disabled) {
        background: #2d3030;
    }

    .ashrams-contact__details {
        order: 2;
        max-width: none;
        width: 100%;
    }

    .ashrams-contact__details-desktop {
        display: none;
    }

    .ashrams-contact__details-mobile {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .ashrams-contact__details-mobile .ashrams-contact__map {
        order: 1;
        width: 100%;
        height: 13.4375rem;
        min-height: 13.4375rem;
        border-radius: 5px;
        margin-bottom: 3.3125rem;
    }

    .ashrams-contact__details-mobile .ashrams-contact__map iframe {
        min-height: 13.4375rem;
    }

    /* Google Maps embed already shows "Open in Maps" in the place card */
    .ashrams-contact__details-mobile .ashrams-contact__map-link {
        display: none;
    }

    .ashrams-contact__details-mobile .ashrams-contact__detail-block--phone {
        order: 2;
        margin-bottom: 3.75rem;
    }

    .ashrams-contact__details-mobile .ashrams-contact__detail-block--address {
        order: 3;
        margin-bottom: 2.4375rem;
    }

    .ashrams-contact__details-mobile .ashrams-contact__detail-block--company {
        order: 4;
        margin-bottom: 0;
    }
}

/* Phone (≤500px) — even gap between phone, address, and INDOMATE blocks */
@media (max-width: 500px) {
    .ashrams-contact__details-mobile {
        --ashrams-contact-detail-gap: calc(100vw * 48 / 393);
    }

    .ashrams-contact__details-mobile .ashrams-contact__detail-block--phone,
    .ashrams-contact__details-mobile .ashrams-contact__detail-block--address {
        margin-bottom: var(--ashrams-contact-detail-gap);
    }
}

/* Footer — flush white band on phone/tablet (no transparent seam above nav) */
@media (max-width: 999px) {
    body.ashrams-contact-page .ashrams-footer {
        margin-top: 0;
        background: #ffffff;
    }

    body.ashrams-contact-page .ashrams-footer .ashrams-footer__forest {
        background: #ffffff;
    }

    body.ashrams-contact-page .ashrams-footer .ashrams-footer__content {
        background: #ffffff;
        padding-top: 0;
    }
}

@media (max-width: 700px) {
    body.ashrams-contact-page .ashrams-footer .ashrams-footer__content {
        padding-inline: 1.5rem;
    }
}
