/* ========== Contact page (ref: two equal blocks, #3b66f5 icons, #1a1a1a form) ========== */
.contact-page {
    --contact-blue: #3b66f5;
    --contact-form-bg: #222222;
    --contact-text-black: #000000;
    --contact-text-muted: #888888;
    /* Heading, lead, Call/Mail labels + numbers / email */
    --contact-ink: #222222;
    background: #ffffff;
    color: var(--contact-text-black);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* Prevent horizontal blank strip on mobile */
    overflow-x: clip;
}

.contact-main {
    padding-top: clamp(3.5rem, 9vw, 8.5rem);
    padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
    padding-left: clamp(0.75rem, 2.5vw, 1.35rem);
    padding-right: clamp(0.75rem, 2.5vw, 1.35rem);
    overflow-x: clip;
}

.contact-main-inner {
    max-width: 1340px;
    margin: 0 auto;
    display: grid;
    /* Form column thodi patli = overall width thodi kam */
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.94fr);
    gap: clamp(1.75rem, 3.5vw, 2.5rem);
    align-items: start;
    overflow: visible;
}

.contact-main-inner > * {
    min-width: 0;
}

.contact-info {
    position: relative;
    overflow: visible;
    padding: clamp(0.5rem, 1.5vw, 1rem) clamp(0.25rem, 1vw, 0.5rem) 0 0;
    min-height: 0;
    z-index: 0;
}

/* Text / channels deco ke upar */
.contact-kicker,
.contact-title,
.contact-lead,
.contact-channels {
    position: relative;
    z-index: 1;
}

/* Contact Us ke peeche — left ko zyada bahar, zyada dark + crisp rings */
.contact-deco {
    position: absolute;
    left: clamp(-255px, -20vw, -130px);
    top: clamp(-0.35rem, 0.5vw, 0.25rem);
    width: clamp(200px, 22vw, 240px);
    height: clamp(200px, 22vw, 240px);
    border: 2px solid rgba(0, 0, 0, 0.17);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    box-sizing: border-box;
}

.contact-deco::before {
    content: '';
    position: absolute;
    inset: 15%;
    border: 2px solid rgba(0, 0, 0, 0.12);
    border-radius: 50%;
    box-sizing: border-box;
}

.contact-deco::after {
    content: '';
    position: absolute;
    inset: 30%;
    border: 2px solid rgba(0, 0, 0, 0.085);
    border-radius: 50%;
    box-sizing: border-box;
}

/* Kicker — About .about-welcome-kicker jaisa */
.contact-kicker {
    margin: 0 0 clamp(1rem, 2vw, 1.5rem);
    font-family: 'Archivo', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #222222;
    -webkit-font-smoothing: antialiased;
}

.contact-title {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(2.8rem, 6.4vw, 4.2rem);
    font-weight: 500;
    line-height: 1.17;
    letter-spacing: 0.02em;
    margin: 0 0 1.5rem;
    color: #222222;
}

.contact-title.animation__word_come {
    position: relative;
}

.contact-title-line {
    display: block;
}

.contact-title-line + .contact-title-line {
    margin-top: 0.06em;
}

/* Lead — About body (Tenor Sans, 500) */
.contact-lead {
    font-family: 'Tenor Sans', sans-serif;
    font-size: 1.3125rem;
    font-weight: 500;
    line-height: 1.65;
    color: #222222;
    margin: 0 0 2.65rem;
    max-width: 48ch;
}

/* Call + Mail ek hi row (ref photo) */
.contact-channels {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.75rem 2.25rem;
    align-items: flex-start;
}

.contact-channel {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    flex: 1 1 auto;
    min-width: min(100%, 220px);
}

.contact-channel-icon {
    flex-shrink: 0;
    width: clamp(56px, 6.5vw, 64px);
    height: clamp(56px, 6.5vw, 64px);
    border-radius: 50%;
    background: var(--contact-blue);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.35rem, 2.2vw, 1.55rem);
}

.contact-channel-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-top: 0.1rem;
}

.contact-channel-label {
    font-family: 'Archivo', sans-serif;
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #222222;
}

.contact-channel-value {
    font-family: 'Tenor Sans', sans-serif;
    color: #222222;
    text-decoration: none;
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.contact-channel-value:hover {
    color: var(--contact-blue);
}

.contact-form-wrap {
    background: var(--contact-form-bg);
    /* Charo taraf same padding */
    padding: clamp(1.9rem, 3.4vw, 2.65rem);
    border-radius: 2px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.16);
    align-self: start;
    width: 100%;
    /* Right column form thoda upar */
    /* Pehle wale shift ka ~double upar */
    margin-top: clamp(-3.7rem, -6.7vw, -1.5rem);
    /* Height = content only — width wide rakhi hai, aspect-ratio nahi */
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.58rem;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.32);
    padding: 1.82rem 0 1.48rem;
    font-family: 'Tenor Sans', sans-serif;
    font-size: 1.08rem;
    font-weight: 400;
    color: #ffffff;
    outline: none;
    transition: border-color 0.2s ease;
    -webkit-font-smoothing: antialiased;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.52);
    font-weight: 400;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-bottom-color: rgba(255, 255, 255, 0.75);
}

/* Message: kaafi zyada height (~2.5 line) */
.contact-field textarea {
    resize: none;
    line-height: 1.4;
    padding: 1.82rem 0 1.85rem;
    min-height: calc(1.82rem + 2.55em + 1.85rem);
    max-height: calc(1.82rem + 2.55em + 1.85rem);
    overflow-y: auto;
}

/* Autofill Hack: Prevent default background colors in Chrome */
.contact-field input:-webkit-autofill,
.contact-field input:-webkit-autofill:hover,
.contact-field input:-webkit-autofill:focus,
.contact-field input:-webkit-autofill:active,
.contact-field textarea:-webkit-autofill,
.contact-field textarea:-webkit-autofill:hover,
.contact-field textarea:-webkit-autofill:focus,
.contact-field textarea:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #222222 inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

.contact-submit {
    align-self: flex-start;
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.78rem 1.45rem;
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.92);
    font-family: 'Archivo', sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.contact-submit:hover {
    background: var(--contact-blue);
    color: #ffffff;
    border-color: var(--contact-blue);
}

.contact-submit:focus-visible {
    outline: 2px solid var(--contact-blue);
    outline-offset: 3px;
}

.contact-submit .contact-submit-arrow {
    font-size: 1.05rem;
    display: inline-block;
    vertical-align: middle;
}

/* Footer / home contact-circle jaisa: arrow up-right slide + reset */
.contact-submit:hover .contact-submit-arrow,
.contact-submit:focus-visible .contact-submit-arrow,
.contact-submit:active .contact-submit-arrow {
    animation: contactSubmitArrowSlide 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes contactSubmitArrowSlide {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }
    35% {
        transform: translate(14px, -14px);
        opacity: 0;
    }
    50% {
        transform: translate(-14px, 14px);
        opacity: 0;
    }
    100% {
        transform: translate(0, 0);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-submit:hover .contact-submit-arrow,
    .contact-submit:focus-visible .contact-submit-arrow {
        animation: none;
    }
}

.contact-map-section {
    width: 100%;
    background: #e8eaed;
}

.contact-map-frame {
    width: 100%;
    min-height: 420px;
    /* dvh = mobile URL bar resize par kam jump; vh fallback */
    height: min(52dvh, 560px);
    position: relative;
}

@supports not (height: 1dvh) {
    .contact-map-frame {
        height: min(52vh, 560px);
    }
}

.contact-map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(0.08) contrast(1.02);
}

/*
 * Lenis smoothWheel: iframe wheel events page tak nahi aati — scroll yahan atakti hai.
 * Docs: .lenis.lenis-smooth iframe { pointer-events: none; } — sirf contact map par scope.
 * Pehli click .is-map-active = map drag / zoom ke liye pointer wapas.
 */
html.lenis.lenis-smooth .contact-map-frame:not(.is-map-active) iframe {
    pointer-events: none;
}

/* Desktop: sirf max-width / gap — form ki height content se, square nahi */
@media (min-width: 901px) {
    .contact-main-inner {
        max-width: 1390px;
        gap: clamp(2rem, 3.5vw, 2.75rem);
    }

    .contact-form-wrap {
        padding: clamp(2.1rem, 3.5vw, 2.9rem);
    }
}

/* Tablet: ek column, form natural height */
@media (max-width: 900px) {
    .contact-main-inner {
        grid-template-columns: 1fr;
        gap: clamp(1.25rem, 3vw, 1.75rem);
        max-width: 100%;
    }

    .contact-deco {
        left: clamp(-168px, -15vw, -68px);
        right: auto;
        top: 0;
        opacity: 1;
        width: clamp(150px, 38vw, 190px);
        height: clamp(150px, 38vw, 190px);
    }

    .contact-form-wrap {
        order: 2;
        padding: clamp(1.65rem, 4vw, 2.35rem);
        margin-top: 0;
    }

    .contact-info {
        order: 1;
        padding: 0;
    }
}

/* Tablet chota + bade phone: type, channels stack, overflow safe */
@media (max-width: 768px) {
    .contact-main {
        padding-left: clamp(0.65rem, 3.2vw, 1rem);
        padding-right: clamp(0.65rem, 3.2vw, 1rem);
    }

    .contact-title {
        font-size: clamp(2.2rem, 8.2vw, 3.15rem);
    }

    .contact-lead {
        margin-bottom: 2.15rem;
        max-width: none;
    }

    .contact-channels {
        flex-direction: column;
        gap: 1.35rem;
        margin-top: 0.5rem;
    }

    .contact-channel {
        min-width: 0;
    }

    .contact-field input,
    .contact-field textarea {
        font-size: 1rem;
        padding: 1.58rem 0 1.28rem;
    }

    .contact-field textarea {
        padding: 1.58rem 0 1.62rem;
        line-height: 1.4;
        min-height: calc(1.58rem + 2.55em + 1.62rem);
        max-height: calc(1.58rem + 2.55em + 1.62rem);
    }
}

@media (max-width: 576px) {
    .contact-kicker {
        margin-bottom: clamp(0.85rem, 3vw, 1.15rem);
        font-size: 20px;
    }

    .contact-lead {
        font-size: 1.125rem;
    }

    .contact-channel-icon {
        width: 54px;
        height: 54px;
        font-size: 1.3rem;
    }

    .contact-form-wrap {
        padding: 1.35rem;
    }

    .contact-submit {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    .contact-map-frame {
        min-height: 280px;
        height: min(42dvh, 420px);
    }

    @supports not (height: 1dvh) {
        .contact-map-frame {
            height: min(42vh, 420px);
        }
    }
}

@media (max-width: 400px) {
    .contact-deco {
        display: none;
    }

    .contact-title {
        font-size: clamp(1.9rem, 9.2vw, 2.55rem);
    }
}

