/* ==========================================================================
   Contact Us page (contact-us.php).
   ========================================================================== */

/* --- Intro: form column + info card --- */
.contact-main {
    margin-top: 58px;
}

.contact-main__row {
    display: flex;
    gap: 25px;
}

.contact-main__form-col {
    flex: 1 1 0;
    min-width: 0;
}

.contact-main__tagline {
    display: block;
    width: fit-content;
    margin: 0 0 12px;
    line-height: 1.14;
}

.contact-main__heading {
    margin: 0 0 10px 0;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-black);
}

.contact-main__desc {
    margin: 0 0 16px 0;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-muted);
}

/* --- Form --- */
.contact-form__input,
.contact-form__select,
.contact-form__textarea {
    display: block;
    width: 100%;
    margin: 0 0 15px 0;
    padding: 8px 13px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    line-height: 22px;
    color: var(--color-black);
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 5px;
}

.contact-form__input {
    height: 40px;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
    color: var(--color-muted);
    opacity: 1;
}

.contact-form__phone {
    position: relative;
}

.contact-form__input--phone {
    padding-left: 70px;
}

.contact-form__country {
    position: absolute;
    top: 1px;
    left: 9px;
    display: flex;
    align-items: center;
    height: 38px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.contact-form__country-list {
    position: absolute;
    top: 46px;
    left: 0;
    z-index: 30;
    width: min(300px, 100%);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
    overflow: hidden;
}

.contact-form__country-search {
    display: block;
    width: calc(100% - 16px);
    margin: 8px;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    color: var(--color-text);
}

.contact-form__country-search:focus {
    outline: none;
    border-color: var(--color-blue);
}

.contact-form__country-list ul {
    max-height: 240px;
    margin: 0;
    padding: 0 0 6px 0;
    list-style: none;
    overflow-y: auto;
}

.contact-form__country-list li button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 14px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    color: var(--color-text);
}

.contact-form__country-list li button:hover,
.contact-form__country-list li button:focus {
    background-color: #F2F5F8;
}

.contact-form__country-name {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-form__country-dial {
    flex: 0 0 auto;
    color: var(--color-muted);
}

.contact-form__flag {
    width: 16px;
    height: 12px;
}

.contact-form__country-arrow {
    margin-left: 5px;
    width: 0;
    height: 0;
    border-top: 4px solid #555555;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
}

.contact-form__dial {
    margin-left: 9px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    color: var(--color-muted);
}

.contact-form__select {
    height: 42px;
    appearance: none;
    -webkit-appearance: none;
    color: var(--color-muted);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23555555' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
}

.contact-form__select.has-value {
    color: var(--color-black);
}

.contact-form__textarea {
    height: 138px;
    resize: vertical;
}

.contact-form__submit {
    display: block;
    margin: 30px auto 0;
}

.contact-form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.contact-form__status {
    margin: 20px 0 0 0;
    padding: 12px 18px;
    border-radius: 8px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 15px;
    text-align: center;
}

.contact-form__status--success {
    background-color: #E6F6EC;
    border: 1px solid #9BD9B2;
    color: #1E7A3C;
}

.contact-form__status--error {
    background-color: #FCEBEA;
    border: 1px solid #F2B4B0;
    color: #B3261E;
}

/* --- Info card (right column) --- */
.contact-card {
    flex: 0 0 573px;
    max-width: 573px;
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    border: 1px solid #F5F5F5;
    border-radius: 25px;
    box-shadow: 1px 4px 20px -2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.contact-card__body {
    padding: 20px 30px 0;
}

.contact-card__heading {
    margin: 0 0 20px 0;
    max-width: 460px; /* wraps "excellence" onto line 2, as rendered on the reference site */
    font-family: 'Nunito Sans', sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-black);
}

.contact-card__desc {
    margin: 0;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-muted);
}

.contact-card__image {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 32px;
}

/* --- Info strip (3 boxes on gradient) --- */
.contact-info {
    margin-top: 60px;
    padding: 50px 0;
    border-radius: 150px 0;
    background: linear-gradient(103.67deg, #F5F5F5 -1.81%, rgba(226, 211, 245, 0.5) -1.81%, rgba(200, 227, 244, 0.5) 37.65%, rgba(226, 211, 245, 0.5) 87.53%, #F5F5F5 99.56%);
}

.contact-info__row {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact-info__box {
    flex: 1 1 0;
    min-width: 0;
    padding: 25px;
    text-align: center;
    background-color: var(--color-white);
    border-radius: 10px;
}

.contact-info__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.contact-info__text {
    margin: 0;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-muted);
}

.contact-info__text a {
    color: var(--color-muted);
    text-decoration: none;
}

.contact-info__text a:hover,
.contact-info__text a:focus {
    color: var(--color-blue);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .contact-card {
        flex: 1 1 0;
        max-width: none;
    }

    .contact-info__row {
        flex-wrap: wrap;
    }

    .contact-info__box {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 767px) {
    .contact-main {
        margin-top: 40px;
    }

    .contact-main__row {
        flex-direction: column;
    }

    .contact-card {
        flex: 1 1 auto;
        max-width: 100%;
    }

    .contact-main__heading,
    .contact-card__heading {
        font-size: 32px;
    }

    .contact-info {
        border-radius: 75px 0;
    }

    .contact-info__box {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
