/* ==========================================================================
   Home Hero — booking form variant (Figma 2304:5456 / 2411:3829)
   RTL/LTR aware. Sits below the site header; bottom newsticker.
   ========================================================================== */

.home-hero-form {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    height: 90vh;
    direction: var(--page-direction, ltr);
    background-color:  #fff;
    /* Bottom space reserved for the news ticker bar */
    padding-block-end: 48px;
    min-height: 768px;
}

/* Background slider (re-uses .home-hero-slider ACF rows + Slick init from
   parent theme). Anchored to fill the section so it acts as a backdrop
   for the form and copy on top.
   ========================================================================== */
.home-hero-form .home-hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    z-index: 0;
}
.home-hero-form .slick-slider{
    height: 100% !important;
    ;
}

.home-hero-form .home-hero-slider .slide-item,
.home-hero-form .home-hero-slider .slick-list,
.home-hero-form .home-hero-slider .slick-track {
    height: 100% !important;
    min-height: 100% !important;
}

.home-hero-form .home-hero-slider .slide-item {
    position: relative;
    overflow: hidden;
}

.home-hero-form .home-hero-slider .slider-image,
.home-hero-form .home-hero-slider .hero-banner-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Scope the dark overlay to this section and place it above the slider but
   below the form/copy. The parent theme's .hero-overlay already sets z-index: 2,
   so we re-stack it here for clarity. */
.home-hero-form .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.35) 45%,
        rgba(0, 0, 0, 0.2) 100%
    );
    pointer-events: none;
}

/* Foreground container — sits above slider (0) and overlay (1)
   ========================================================================== */
.home-hero-form__container {
    position: relative;
    z-index: 2;
    padding-block: 120px 56px;
}

.home-hero-form__row {
    --bs-gutter-x: 2rem;
    z-index: 2;
}

/* Headline / subheadline
   ========================================================================== */
.home-hero-form__text {
    color: var(--colors-base-white, #fff);
    text-shadow:
        0 2px 4px rgba(10, 13, 18, 0.06),
        0 4px 6px rgba(10, 13, 18, 0.1);
}

.home-hero-form__title {
    font-family: var(--font-family-font-family-display, Poppins);
    font-weight: 600;
    color: #fff;
    margin: 0 0 var(--spacing-6-24px, 24px);
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.1;
    letter-spacing: -1.5px;
    max-width: 38ch;
}

.home-hero-form__subtitle {
    font-family: var(--font-family-font-family-display, Poppins);
    font-weight: 500;
    color: #fff;
    font-size: clamp(16px, 2vw, 22px);
    line-height: 1.36;
    letter-spacing: -0.5px;
    margin: 0;
    max-width: 56ch;
}

/* Booking card
   ========================================================================== */
.home-hero-form__card-wrap {
    display: flex;
    justify-content: flex-end;
}

.home-hero-form__card {
    width: 100%;
    max-width: 467px;
    background: var(--colors-base-white, #fff);
    padding: 32px 40px 40px;
    border-radius: var(--radius-2xl, 16px);
    box-shadow:
        0 4px 6px -1px rgba(10, 13, 18, 0.1),
        0 2px 4px -2px rgba(10, 13, 18, 0.06);
}

.home-hero-form__card-title {
    font-family: var(--font-family-font-family-display, Poppins);
    font-weight: 600;
    font-size: 26px;
    line-height: 36px;
    letter-spacing: -1px;
    color: var(--colors-gray-light-mode-900, #181d27);
    margin: 0 0 var(--spacing-6-24px, 24px);
}

/* Form
   ========================================================================== */
.home-hero-form__form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-5-20px, 20px);
}

.home-hero-form__form .home-hero-form__submit{
    width:100% !important;
}
[lang="en-GB"] .home-hero-form__form .home-hero-form__submit svg{
    transform: rotate(360deg) !important;
}
[lang="ar"] .home-hero-form__form .home-hero-form__submit svg{
    transform: rotate(180deg) !important;
}

.home-hero-form__field {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1-5-6px, 6px);
}

.home-hero-form__label {
    font-family: var(--font-family-font-family-body, Poppins);
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.2px;
    color: var(--colors-gray-light-mode-900, #181d27);
    display: inline-flex;
    align-items: baseline;
    gap: var(--spacing-1-4px, 4px);
}

.home-hero-form__required {
    color: var(--colors-gray-light-mode-700, #414651);
    font-weight: 500;
}

.home-hero-form__optional {
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: var(--colors-gray-light-mode-500, #717680);
}

.home-hero-form__input {
    font-family: var(--font-family-font-family-body, Poppins);
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.2px;
    color: var(--colors-gray-light-mode-900, #181d27);
    background: var(--colors-base-white, #fff);
    border: 1.5px solid rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm, 6px);
    height: 44px;
    padding: 8px 16px;
    width: 100%;
    appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-hero-form__input::placeholder {
    color: var(--colors-gray-light-mode-500, #717680);
}

.home-hero-form__input:focus {
    outline: none;
    border-color: var(--colors-brand-600, #14a2eb);
    box-shadow: 0 0 0 3px rgba(20, 162, 235, 0.18);
}

.home-hero-form__input--textarea {
    height: 108px;
    padding: 10px 16px;
    resize: vertical;
}

/* Phone field with prefix box */
.home-hero-form__phone {
    display: flex;
    align-items: stretch;
    background: var(--colors-base-white, #fff);
    border: 1.5px solid rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm, 6px);
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-hero-form__phone:focus-within {
    border-color: var(--colors-brand-600, #14a2eb);
    box-shadow: 0 0 0 3px rgba(20, 162, 235, 0.18);
}

.home-hero-form__phone-prefix {
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    font-family: var(--font-family-font-family-body, Poppins);
    font-weight: 500;
    font-size: 16px;
    color: var(--colors-gray-light-mode-900, #181d27);
    background: var(--colors-gray-light-mode-100, #f5f5f5);
    border-inline-end: 1px solid var(--colors-gray-light-mode-300, #d5d7da);
    /* Always read +966 left-to-right even on RTL pages */
    direction: ltr;
    unicode-bidi: isolate;
}

.home-hero-form__input--phone {
    border: 0;
    border-radius: 0;
    height: 42px;
    flex: 1 1 auto;
    min-width: 0;
}

.home-hero-form__input--phone:focus {
    box-shadow: none;
    outline: none;
}

.home-hero-form__hint {
    margin: 0;
    font-family: var(--font-family-font-family-body, Poppins);
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.2px;
    color: var(--colors-gray-light-mode-500, #717680);
}

/* Submit button — uses the project's btn classes; this only adjusts layout */
.home-hero-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-1-5-6px, 6px);
    width: 100%;
    margin-block-start: var(--spacing-1-4px, 4px);
}

.home-hero-form__submit svg {
    flex-shrink: 0;
}

/* Mirror the arrow in RTL so it points toward the reading direction's end */
.rtl .home-hero-form__submit svg,
[dir="rtl"] .home-hero-form__submit svg {
    transform: scaleX(-1);
}

/* Newsticker
   ========================================================================== */
.home-hero-form__newsticker {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 1;
    background: #BFE4F7;
    color: #064F74;
    overflow: hidden;
    padding-block: 28px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.8);
}

.home-hero-form__newsticker-track {
    display: flex;
    width: max-content;
    gap: 0;
    animation: home-hero-form-ticker 20s linear infinite;
}

.home-hero-form__newsticker:hover .home-hero-form__newsticker-track,
.home-hero-form__newsticker:focus-within .home-hero-form__newsticker-track {
    animation-play-state: paused;
}

.home-hero-form__newsticker-list {
    display: flex;
    align-items: center;
    gap: 48px;
    list-style: none;
    margin: 0;
    padding-inline: 24px;
}

.home-hero-form__newsticker-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    font-family: var(--font-family-font-family-body, Poppins);
    font-weight: 500;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: -0.2px;
    color: #064F74;
    padding-right: 50px;
}

.home-hero-form__newsticker-dot {
    color: var(--background-bg-brand-2-solid, #f89a16);
    flex-shrink: 0;
}
.home-hero-form__newsticker-icon{
    width: 32px;
    height: 32px;
}

@keyframes home-hero-form-ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-25%); }
}

/* Reverse the scroll direction on RTL so it reads naturally */
.rtl .home-hero-form__newsticker-track,
[dir="rtl"] .home-hero-form__newsticker-track {
    animation-name: home-hero-form-ticker-rtl;
}

@keyframes home-hero-form-ticker-rtl {
    from { transform: translateX(0); }
    to   { transform: translateX(50%); }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-form__newsticker-track {
        animation: none;
    }
}

/* Responsive
   ========================================================================== */
@media (max-width: 991.98px) {
    .home-hero-form {
        min-height: 0;
        padding-block-end: 44px;
    }

    .home-hero-form__container {
        padding-block: 88px 40px;
    }

    .home-hero-form__row {
        --bs-gutter-y: 32px;
    }

    .home-hero-form__title {
        letter-spacing: -1px;
    }

    .home-hero-form__card-wrap {
        justify-content: center;
    }

    .home-hero-form__card {
        max-width: 100%;
        padding: 24px;
    }
    .home-hero-form__newsticker{
        padding:16px 0;
    }
    .home-hero-form__newsticker-icon{
        width: 28px;
        height: 28px;
    }
    .home-hero-form{
        height: auto;
    }
}

@media (max-width: 575.98px) {
    .home-hero-form__container {
        padding-block: 128px 32px;
    }

    .home-hero-form__title {
        font-size: 32px;
        line-height: 1.15;
    }

    .home-hero-form__subtitle {
        font-size: 16px;
    }

    .home-hero-form__card {
        padding: 20px;
    }

    .home-hero-form__newsticker-list {
        gap: 32px;
    }

    .home-hero-form__newsticker-item {
        font-size: 13px;
        padding-right: 30px;
    }
}

/* ==========================================================================
   WPForms shortcode overrides — shared by:
     - .home-hero-form__card-form  (hero booking form)
     - .booking-popup__form-wrap   (header "Book now" popup)
     - .landing-popup__fields      (landing-page service popup)
   Lives here because section-home-hero-form.css is enqueued on every page,
   so all three contexts get the same rules without duplication. Selectors
   target WPForms' default class names.
   ========================================================================== */

:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) .wpforms-container,
:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) .wpforms-container * {
    box-sizing: border-box;
}

:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) .wpforms-container {
    margin: 0 !important;
    max-width: none !important;
}

:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) .wpforms-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-5-20px, 20px);
}

:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) .wpforms-field-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-5-20px, 20px);
}

:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) .wpforms-field {
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1-5-6px, 6px);
}
:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) input{
    width: 100% !important;
}

:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) .wpforms-field-label,
:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) .wpforms-field-sublabel {
    font-family: var(--font-family-font-family-body, Poppins);
    font-weight: 500 !important; 
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.2px;
color: var(--text-text-secondary-700, #414651);
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex;
    align-items: baseline;
    gap: var(--spacing-1-4px, 4px);
}

:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) .wpforms-required-label {
    color: var(--text-text-secondary-700, #414651) !important;
    font-weight: 400;
}

/* "(optional)" tag WPForms appends to non-required fields */
:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) .wpforms-field-textarea .wpforms-field-label::after {
    content: " (Optional)";
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: var(--colors-gray-light-mode-500, #717680);
}
[lang="ar"] :is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) .wpforms-field-textarea .wpforms-field-label::after {
    content: " (اختياري)";
}

/* Inputs / selects / textareas */
:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) input[type="text"],
:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) input[type="email"],
:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) input[type="tel"],
:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) input[type="url"],
:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) input[type="number"],
:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) input[type="date"],
:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) input[type="time"],
:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) input[type="password"],
:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) select,
:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) textarea {
    font-family: var(--font-family-font-family-body, Poppins);
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.2px;
    color: var(--colors-gray-light-mode-900, #717680) !important;
    background: var(--colors-base-white, #fff) !important;
    border: 1.5px solid rgba(0, 0, 0, 0.2) !important;
    height: 44px;
    padding: 8px 16px;
    width: 100%;
    max-width: 100% !important;
    appearance: none;
    border-radius: var(--radius-sm, 6px) !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-shadow: none !important;
    margin: 0;
}

:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) textarea {
    height: 108px;
    padding: 10px 16px;
    resize: vertical;
}

:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) input::placeholder,
:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) textarea::placeholder {
    color: var(--colors-gray-light-mode-500, #717680);
}

:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) input:focus,
:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) select:focus,
:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) textarea:focus {
    outline: none;
    border-color: var(--colors-brand-600, #14a2eb);
    box-shadow: 0 0 0 3px rgba(20, 162, 235, 0.18) !important;
}

/* Phone field — WPForms wraps it in .wpforms-field-phone with iti.flag */
:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) .wpforms-field-phone .iti,
:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) .wpforms-field-phone .iti--allow-dropdown {
    width: 100%;
}

:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) .wpforms-field-phone .iti__flag-container {
    background: var(--colors-gray-light-mode-100, #f5f5f5);
    border-inline-end: 1px solid var(--colors-gray-light-mode-300, #d5d7da);
    border-radius: var(--radius-sm, 6px) 0 0 var(--radius-sm, 6px);
}

[dir="rtl"] :is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) .wpforms-field-phone .iti__flag-container {
    border-radius: 0 var(--radius-sm, 6px) var(--radius-sm, 6px) 0;
    border-inline-end: none;
    border-inline-start: 1px solid var(--colors-gray-light-mode-300, #d5d7da);
}

:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) .wpforms-field-phone input[type="tel"] {
    /* Pad to leave space for the flag/prefix dropdown */
    padding-inline-start: 60px;
}

/* Description / hint text */
:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) .wpforms-field-description {
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--font-family-font-family-body, Poppins);
    font-weight: 400 !important;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.2px;
    color: var(--colors-gray-light-mode-500, #717680);
}

/* Submit button — match the previous orange BOOK NOW look */
:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) .wpforms-submit-container {
    padding: 0 !important;
    margin: var(--spacing-1-4px, 4px) 0 0 !important;
    display: flex;
}

:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) .wpforms-submit {
    width: 100%;
    height: 56px;
    background-color: var(--colors-brand-2-500, #f89a16) !important;
    color: #472A01 !important;
    border: 0 !important;
    border-radius: var(--radius-sm, 6px) !important;
    font-family: var(--font-family-font-family-body, Poppins) !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    line-height: 24px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.05s ease;
    box-shadow: none !important;
    text-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) .wpforms-submit::after {
 content:'';
 background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M4.16675%209.99984H15.8334M15.8334%209.99984L10.0001%204.1665M15.8334%209.99984L10.0001%2015.8332%22%20stroke%3D%22%236F4101%22%20stroke-width%3D%221.66667%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E');
 background-repeat: no-repeat;
 background-size: cover;
 width: 20px;
 height: 20px;
 margin-right: 10px;
 position: relative;
 display: block;
}

[lang="ar"] :is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) .wpforms-submit::after {
 margin-right: 0;
 margin-left: 10px;
 transform: rotate(180deg);
}
[lang="ar"] :is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) .wpforms-submit{
    flex-direction: row-reverse;
}
[lang="ar"] .wpforms-field-description{
    text-align: right;
}

:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) .wpforms-submit:hover,
:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) .wpforms-submit:focus {
    background-color: #e58e14 !important;
    color: #6f4101 !important;
}

:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) .wpforms-submit:active {
    transform: translateY(1px);
}

/* Error states */
:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) .wpforms-error,
:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) label.wpforms-error {
    color: #d92d20 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 18px !important;
    margin-top: 4px !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
}

:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) input.wpforms-error,
:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) textarea.wpforms-error,
:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) select.wpforms-error {
    border-color: #d92d20 !important;
}

:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) input.wpforms-error:focus,
:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) textarea.wpforms-error:focus,
:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) select.wpforms-error:focus {
    box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.18) !important;
}

/* Confirmation message after submit */
:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) .wpforms-confirmation-container,
:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) .wpforms-confirmation-container-full {
    background: rgba(20, 162, 235, 0.08) !important;
    border: 1px solid rgba(20, 162, 235, 0.3) !important;
    color: var(--colors-gray-light-mode-900, #181d27) !important;
    border-radius: var(--radius-sm, 6px) !important;
    padding: 16px !important;
    margin: 0 !important;
}

:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) .wpforms-confirmation-container *,
:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) .wpforms-confirmation-container-full * {
    color: inherit !important;
    margin: 0 !important;
}

/* Loader spinner alignment */
:is(.home-hero-form__card-form, .booking-popup__form-wrap, .landing-popup__fields) .wpforms-submit-spinner {
    margin-inline-start: 8px;
}
