/* ============================================================
   PAGE: Contact Us
   Figma node 818:8938
   ============================================================ */

.ct-page {
    background: var(--whc-white);
}

/* ============================================================
   SECTION — Contact (818:8954 + 818:8955 + 3025:9556)
   ============================================================ */
.ct-section {
    background: var(--whc-white);
    padding: 83px 0 80px;
}

.ct-section__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    display: grid;
    grid-template-columns: minmax(0, 398px) minmax(0, 658px);
    gap: 105px;
    align-items: start;
}

/* ----- Left column ----- */
.ct-info {
    padding: 0 20px;
}

.ct-info__title {
    margin: 0 0 72px;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.96px;
    color: var(--whc-black);
}

.ct-info__find {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 30px;
}

.ct-info__find-label {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.44px;
    color: var(--whc-orange);
}

.ct-info__address {
    margin: 0;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.48px;
    color: var(--whc-grey-dark);
    font-style: normal;
}

.ct-info__contacts {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.ct-info__row {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--whc-grey-dark);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.4px;
    text-decoration: none;
}

.ct-info__row:hover {
    color: var(--whc-orange);
}

.ct-info__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: block;
}

/* ----- Right column: form card ----- */
.ct-form {
    position: relative;
    background: var(--whc-white);
    border: 1px solid var(--whc-form-line, #7F7F7F);
    border-radius: 12px;
    padding: 23px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ct-form__title {
    margin: 0;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.64px;
    color: var(--whc-orange);
}

.ct-form__fields {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ct-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ----- Inputs / selects ----- */
.ct-input,
.ct-select,
.ct-textarea {
    width: 100%;
    height: 50px;
    padding: 10px 20px;
    border: 1px solid var(--whc-form-line, #7F7F7F);
    border-radius: 10px;
    background: var(--whc-white);
    font-family: inherit;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.4px;
    color: var(--whc-grey-dark);
    outline: none;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.ct-input::placeholder,
.ct-textarea::placeholder {
    color: var(--whc-form-line, #7F7F7F);
}

.ct-input:focus,
.ct-select:focus,
.ct-textarea:focus {
    border-color: var(--whc-orange);
    box-shadow: 0 0 0 3px rgba(236, 99, 45, 0.12);
}

/* Phone row: +91 prefix + number input */
.ct-phone {
    display: flex;
    align-items: center;
    gap: 0;
    height: 50px;
    padding: 0;
    border: 1px solid var(--whc-form-line, #7F7F7F);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.ct-phone:focus-within {
    border-color: var(--whc-orange);
    box-shadow: 0 0 0 3px rgba(236, 99, 45, 0.12);
}

.ct-phone__prefix {
    padding: 0 20px;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.4px;
    color: var(--whc-form-line, #7F7F7F);
    user-select: none;
}

.ct-phone__input {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    padding: 10px 20px 10px 0;
    font-family: inherit;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.4px;
    color: var(--whc-grey-dark);
    background: transparent;
}

.ct-phone__input::placeholder {
    color: var(--whc-form-line, #7F7F7F);
}

/* ----- Custom dropdown (Figma 3025:9294 — Default / Expanded) ----- */
.ct-dropdown {
    position: relative;
    width: 100%;
}

.ct-dropdown__trigger {
    width: 100%;
    height: 50px;
    padding: 10px 16px 10px 20px;
    background: var(--whc-white);
    border: 1px solid var(--whc-form-line, #7F7F7F);
    border-radius: 10px;
    font-family: inherit;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.4px;
    color: var(--whc-form-line, #7F7F7F);
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.ct-dropdown__trigger:focus-visible {
    outline: none;
    border-color: var(--whc-orange);
    box-shadow: 0 0 0 3px rgba(236, 99, 45, 0.12);
}

/* Once an option is selected, the label flips to black. */
.ct-dropdown.is-selected .ct-dropdown__trigger,
.ct-dropdown.is-open .ct-dropdown__trigger {
    color: var(--whc-black);
}

.ct-dropdown__caret {
    width: 24px;
    height: 24px;
    display: block;
    flex-shrink: 0;
    transition: transform 0.25s var(--ease);
}

.ct-dropdown.is-open .ct-dropdown__caret {
    transform: rotate(180deg);
}

.ct-dropdown__list {
    position: absolute;
    top: 59px;                                /* 50 trigger + 9 gap */
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--whc-white);
    border-radius: 8px;
    overflow: hidden;
    z-index: 5;
    max-height: 300px;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.ct-dropdown.is-open .ct-dropdown__list {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.ct-dropdown__option {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 10px 20px;
    background: var(--whc-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.36px;
    color: var(--whc-form-line, #7F7F7F);
    cursor: pointer;
    transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}

.ct-dropdown__option + .ct-dropdown__option {
    border-top: none;                         /* avoid doubled 2px line between rows */
}

.ct-dropdown__option:hover,
.ct-dropdown__option:focus-visible {
    background: rgba(236, 99, 45, 0.06);
    color: var(--whc-black);
    outline: none;
}

.ct-dropdown__option.is-selected {
    color: var(--whc-orange);
}

/* Textarea: counter inside, custom height */
.ct-textarea-wrap {
    position: relative;
}

.ct-textarea {
    height: 140px;
    padding: 16px 20px;
    resize: none;
}

.ct-textarea__count {
    position: absolute;
    right: 16px;
    bottom: 12px;
    font-family: Inter, var(--font-body);
    font-size: 14px;
    line-height: 21px;
    letter-spacing: -0.15px;
    color: var(--whc-form-line, #7F7F7F);
    pointer-events: none;
}

/* Submit */
.ct-form__submit {
    width: 100%;
    height: 50px;
    border-radius: 8px;
    background: var(--whc-orange-2);
    color: var(--whc-white);
    font-size: 18px;
    font-weight: 600;
    line-height: 21.6px;
    border: none;
    cursor: pointer;
    transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.ct-form__submit:hover {
    background: #d6541f;
    transform: translateY(-1px);
}

/* ============================================================
   SECTION — Decorative pattern strip (818:8993)
   A 342px tile, repeated horizontally, at 10% opacity.
   Image URL is set inline on the section via --ct-pattern-img so
   the WP partial can swap it without editing the stylesheet.
   ============================================================ */
.ct-pattern {
    height: 171px;
    background-image: var(--ct-pattern-img, none);
    background-repeat: repeat-x;
    background-position: left top;
    background-size: 342px 342px;
    opacity: 0.1;
    pointer-events: none;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
    .ct-section__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .ct-info {
        padding: 0;
    }
}

@media (max-width: 700px) {
    .ct-section {
        padding: 56px 0 64px;
    }

    .ct-info__title {
        font-size: 36px;
        margin-bottom: 40px;
        letter-spacing: -0.72px;
    }

    .ct-info__address {
        font-size: 20px;
    }

    /* Keep the form within the viewport: full available width, never wider. */
    .ct-form {
        width: 100%;
        max-width: 100%;
        padding: 20px;
        box-sizing: border-box;
    }
    .ct-form__fields,
    .ct-input,
    .ct-textarea,
    .ct-phone,
    .ct-dropdown,
    .ct-form__submit {
        max-width: 100%;
        box-sizing: border-box;
    }

    .ct-form__title {
        font-size: 26px;
    }

    .ct-form__row {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .ct-form { padding: 16px; }
    .ct-form__fields { gap: 18px; }
    .ct-phone__input { min-width: 0; }
}
