/*
 * Contact Us (Figma "Hakini Landing Page" > Final Design > Contact Us Page and
 * Contact Us Page Responsive). Builds on standard-page.css for the .sPage
 * tokens and the hero.
 */

/* ---- Hero -------------------------------------------------------------------- */

.cuHero {
    min-height: 0;
    padding: 120px 0 72px;
}
.cuHero__lines {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    width: 744px;
    max-width: none;
    pointer-events: none;
}
html:lang(ar) .cuHero__lines {
    transform: scaleX(-1);
}
.cuHero .sHero__inner {
    z-index: 1;
    justify-content: space-between;
}
.cuHero__text {
    flex: 0 1 580px;
}
.cuHero__title {
    max-width: 480px;
    font-size: 48px;
    line-height: 58px;
}
.cuHero__lead {
    max-width: 570px;
    font-size: 22px;
}
.cuHero__art {
    flex: 0 1 532px;
    min-width: 0;
    line-height: 0;
}
.cuHero__art img {
    width: 100%;
    height: auto;
}

/* ---- WhatsApp and message form ------------------------------------------------ */

.cuMain {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 524px;
    gap: 64px;
    padding: 130px 0 120px;
}
.cuMain__title {
    color: var(--sp-navy);
    font-family: var(--sp-font-700);
    font-size: 32px;
    line-height: 40px;
}
.cuMain__text {
    max-width: 430px;
    margin-top: 16px !important;
    color: var(--sp-slate);
    font-size: 16px;
    line-height: 24px;
}
.cuWhatsapp__art {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 548px;
    margin-top: 32px;
}
.cuWhatsapp__pic {
    position: relative;
    display: block;
    width: 100%;
}
.cuWhatsapp__pic > img {
    display: block;
    width: 100%;
    height: auto;
}
/* Arabic logo over the badge's English one (Figma "Group 11" in the white badge:
   80x35 at 55,91 of the 569x558 picture). */
.cuWhatsapp__logo {
    position: absolute;
    top: 15.2%;
    left: 8.4%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16.6%;
    height: 8.6%;
    background: #fff;
}
.cuWhatsapp__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.cuWhatsapp__open {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 60px;
    margin-top: -108px;
    padding: 0 28px;
    border-radius: 100px;
    background: linear-gradient(180deg, #00f46a 0%, #00c853 100%);
    box-shadow: 0 6px 18px rgba(0, 200, 83, 0.28);
    color: #fff;
    font-family: var(--sp-font-700);
    font-size: 20px;
    position: relative;
}
.cuWhatsapp__open:hover,
.cuWhatsapp__open:focus {
    color: #fff;
    box-shadow: 0 8px 22px rgba(0, 200, 83, 0.4);
}
.cuWhatsapp__open img {
    width: 30px;
    height: 30px;
}

.cuForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
    padding: 32px;
    border: 1px solid var(--sp-line);
    border-radius: 18px;
    background: #fff;
}
.cuForm__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    font-weight: normal;
}
.cuForm__field > span {
    color: var(--sp-ink);
    font-family: var(--sp-font-600);
    font-size: 15px;
}
.cuForm input,
.cuForm textarea {
    width: 100%;
    padding: 0 16px;
    border: 1px solid var(--sp-line);
    border-radius: 12px;
    outline: 0;
    background: #fff;
    color: var(--sp-ink);
    font-family: var(--sp-font);
    font-size: 15px;
    box-shadow: none;
}
.cuForm input {
    height: 56px;
}
.cuForm textarea {
    min-height: 170px;
    padding-top: 14px;
    padding-bottom: 14px;
    resize: vertical;
}
.cuForm input::placeholder,
.cuForm textarea::placeholder {
    color: #8a94a6;
}
.cuForm input:focus,
.cuForm textarea:focus {
    border-color: var(--sp-navy);
}
.cuForm [aria-invalid="true"] {
    border-color: #d93025;
}
html:lang(ar) .cuForm input[type="email"]:placeholder-shown {
    direction: rtl;
}
.cuForm input[type="email"] {
    direction: ltr;
}
.cuForm .invalid-feedback,
.cuForm__error {
    display: block;
    margin: -2px 0 0;
    color: #d93025;
    font-size: 13px;
}
.cuForm__error:empty {
    display: none;
}
.cuForm__captcha {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cuForm__captcha .g-recaptcha {
    width: 304px;
    max-width: 100%;
    margin: 0 !important;
}
.cuForm__send {
    height: 56px;
    border: 0;
    border-radius: 100px;
    background: var(--sp-navy);
    color: #fff;
    font-family: var(--sp-font-700);
    font-size: 18px;
}
.cuForm__send:hover,
.cuForm__send:focus {
    background: #003675;
}
.cuForm__send:disabled {
    opacity: 0.6;
}
.cuForm__alert {
    margin: 0;
    padding: 12px 16px;
    border-radius: 12px;
    background: #e8f5ee;
    color: #146c43;
    font-size: 15px;
}
.cuForm__alert--error {
    background: #fdecea;
    color: #b42318;
}
.cuMessage__note {
    margin-top: 24px !important;
    color: var(--sp-slate);
    font-size: 14px;
    text-align: center;
}

/* ---- Tablet ----------------------------------------------------------------------- */

@media (max-width: 1199px) {
    .cuHero__art {
        flex-basis: 440px;
    }
    .cuMain {
        grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
        gap: 40px;
    }
}

/* ---- Phone ------------------------------------------------------------------------ */

@media (max-width: 767px) {
    .cuHero {
        padding: 24px 0 40px;
    }
    .cuHero__lines {
        width: 420px;
    }
    .cuHero .sHero__inner {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 24px;
    }
    .cuHero__text,
    .cuHero__art {
        flex: none;
    }
    .cuHero__art {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }
    .cuHero__title {
        font-size: 28px;
        line-height: 34px;
    }
    .cuHero__lead {
        margin-top: 12px !important;
        font-size: 16px;
        line-height: 28px;
    }
    .cuMain {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
        padding: 40px 0 72px;
    }
    .cuMain__title {
        font-size: 24px;
        line-height: 32px;
    }
    .cuMain__text {
        margin-top: 12px !important;
        font-size: 15px;
    }
    .cuWhatsapp__art {
        max-width: 340px;
        margin: 16px auto 0;
    }
    .cuWhatsapp__open {
        height: 52px;
        margin-top: -72px;
        font-size: 17px;
    }
    .cuWhatsapp__open img {
        width: 26px;
        height: 26px;
    }
    .cuForm {
        margin-top: 20px;
        padding: 20px 16px;
    }
    .cuForm input {
        height: 50px;
    }
    .cuForm textarea {
        min-height: 140px;
    }
    .cuMessage__note {
        margin-top: 16px !important;
        font-size: 13px;
    }
}
