.booking-page {
    position: relative;
    overflow: hidden;
    min-height: calc(100svh - 82px);
    padding: clamp(1.15rem, 2.2vw, 2rem) 1.25rem 2.4rem;
    background:
        radial-gradient(circle at 8% 38%, rgba(210, 188, 139, 0.16), transparent 24rem),
        radial-gradient(circle at 92% 22%, rgba(31, 91, 74, 0.08), transparent 26rem),
        linear-gradient(135deg, #faf8f2 0%, #f6f2e9 52%, #fbf9f4 100%);
    color: var(--color-text-dark);
}

.booking-page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.32;
    background-image:
        linear-gradient(rgba(183, 154, 95, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(183, 154, 95, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}

.booking-page__ornament {
    position: absolute;
    width: 24rem;
    height: 24rem;
    border: 1px solid rgba(183, 154, 95, 0.18);
    border-radius: 50%;
    pointer-events: none;
}

.booking-page__ornament--left {
    inset-inline-start: -15rem;
    top: 24rem;
}

.booking-page__ornament--right {
    inset-inline-end: -15rem;
    bottom: -4rem;
}

.booking-page__inner {
    position: relative;
    z-index: 1;
    width: min(100%, 1360px);
    margin-inline: auto;
}

.booking-page__header {
    min-height: 66px;
    margin-bottom: 0.8rem;
    display: block;
}

.booking-page__header h1 {
    margin: 0;
    color: #101b35;
    font-size: clamp(2.15rem, 3.1vw, 3.35rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.025em;
}

html[dir="rtl"] .booking-page__header h1 {
    letter-spacing: 0;
    line-height: 1.14;
}

.booking-page__card {
    overflow: hidden;
    border: 1px solid rgba(183, 154, 95, 0.72);
    border-radius: 18px;
    background: rgba(255, 253, 248, 0.9);
    box-shadow: 0 24px 70px rgba(35, 40, 34, 0.08);
    backdrop-filter: blur(12px);
}

.booking-form {
    padding: 0 2rem 1.35rem;
}

.booking-form__notice {
    margin: 0.9rem 0 0.15rem;
    padding: 0.68rem 0.9rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.7rem;
    align-items: center;
    border: 1px solid rgba(183, 154, 95, 0.25);
    border-radius: 8px;
    background: rgba(239, 227, 200, 0.12);
}

.booking-form__notice p {
    margin: 0;
    color: #67675f;
    font-size: 0.66rem;
    line-height: 1.45;
}

.booking-form__notice > span {
    color: var(--color-gold);
}

.booking-row {
    position: relative;
    padding: 1rem 0;
    display: grid;
    grid-template-columns: minmax(210px, 0.72fr) minmax(0, 2.7fr);
    gap: 1rem 1.55rem;
    border-bottom: 1px solid rgba(18, 59, 50, 0.1);
}

.booking-row__intro {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
}

.booking-step {
    width: 2.45rem;
    height: 2.45rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #e7cf91, #cda95e);
    color: #17211d;
    font-family: var(--font-heading);
    font-size: 1.18rem;
}

.booking-row__intro h2 {
    margin: 0;
    color: #111c35;
    font-size: clamp(1.2rem, 1.5vw, 1.62rem);
    font-weight: 500;
    line-height: 1.08;
}

.booking-row__intro p {
    margin: 0.28rem 0 0;
    max-width: 18rem;
    color: #696d68;
    font-size: 0.75rem;
    line-height: 1.42;
}

.booking-date-grid {
    display: grid;
    grid-template-columns:
        minmax(360px, 1.9fr)
        minmax(190px, 1fr);
    gap: 0.7rem;
    align-items: start;
}

.booking-details-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr)
        minmax(280px, 1.25fr);
    gap: 0.7rem;
    align-items: start;
}

.booking-form__field {
    min-width: 0;
}

.booking-form__field label {
    display: block;
    margin-bottom: 0.28rem;
    color: #313832;
    font-size: 0.66rem;
    font-weight: 650;
}

.booking-form__control input,
.booking-form__control select,
.booking-calendar select,
.booking-services__search input {
    width: 100%;
    min-height: 43px;
    padding: 0 0.75rem;
    border: 1px solid rgba(18, 59, 50, 0.16);
    border-radius: 6px;
    outline: 0;
    background: rgba(255, 255, 255, 0.9);
    color: #192522;
    font: inherit;
    font-size: 0.76rem;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.booking-form__control input:focus,
.booking-form__control select:focus,
.booking-calendar select:focus,
.booking-services__search input:focus {
    border-color: var(--color-gold);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(183, 154, 95, 0.1);
}

.booking-calendar select option:disabled {
    color: #b5b6b1;
}

.booking-calendar {
    display: grid;
    grid-template-columns: 0.72fr 1.35fr 0.92fr;
    gap: 0.35rem;
}

.booking-calendar[hidden] {
    display: none !important;
}

.booking-phone {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 0.48rem;
    direction: ltr;
}

.booking-form__control--country {
    grid-column: 1;
}

.booking-form__control--phone {
    grid-column: 2;
}

.booking-form__control--country input,
.booking-form__control--phone input {
    border-radius: 6px;
    direction: ltr;
}

.booking-form__control--country input {
    padding-inline: 0.58rem;
    text-align: center;
}

.booking-form__control--phone input {
    text-align: left;
}

.booking-form__control.has-error input {
    border-color: rgba(154, 67, 60, 0.72);
    background: rgba(154, 67, 60, 0.035);
    box-shadow: 0 0 0 3px rgba(154, 67, 60, 0.07);
}

.booking-form__field-error {
    margin-top: 0.32rem;
    padding: 0.42rem 0.55rem;
    border-inline-start: 2px solid rgba(154, 67, 60, 0.72);
    border-radius: 4px;
    background: rgba(154, 67, 60, 0.055);
    color: #8f4039;
    font-size: 0.64rem;
    line-height: 1.45;
}

.booking-form__field-error .errorlist {
    margin: 0;
    padding: 0;
    color: inherit;
    font-size: inherit;
}


.booking-form__availability {
    grid-column: 2;
    min-height: 1rem;
    margin: -0.45rem 0 0;
    color: #777a74;
    font-size: 0.64rem;
}

.booking-form__availability[data-state="available"] {
    color: var(--color-emerald);
}

.booking-form__availability[data-state="unavailable"],
.booking-form__availability[data-state="error"] {
    color: #98463f;
}

.booking-row--services {
    padding-bottom: 0.95rem;
}

.booking-row__intro--services {
    align-self: start;
}

.booking-services {
    min-width: 0;
}

.booking-services__tools {
    display: grid;
    gap: 0.5rem;
}

.booking-services__search {
    position: relative;
    display: block;
}

.booking-services__search > span:not(.sr-only) {
    position: absolute;
    inset-inline-start: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    color: #69746f;
    font-size: 1.2rem;
    pointer-events: none;
}

.booking-services__search input {
    padding-inline-start: 2.5rem;
}

.booking-services__categories {
    display: flex;
    gap: 0.38rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
    scrollbar-width: none;
}

.booking-services__categories::-webkit-scrollbar {
    display: none;
}

.booking-services__categories button {
    flex: 0 0 auto;
    min-width: 78px;
    min-height: 33px;
    padding: 0.34rem 0.72rem;
    border: 1px solid rgba(183, 154, 95, 0.22);
    border-radius: 999px;
    background: #fbf8f1;
    color: #4a504c;
    font: inherit;
    font-size: 0.67rem;
    cursor: pointer;
}

.booking-services__categories button.is-active {
    border-color: #0b5849;
    background: #0b5849;
    color: #fff;
}

.booking-services__workspace {
    margin-top: 0.58rem;
    display: grid;
    grid-template-columns: minmax(175px, 0.78fr) minmax(0, 3fr);
    gap: 0.7rem;
    align-items: start;
}

.booking-selected,
.booking-services__available {
    min-width: 0;
    border: 1px solid rgba(18, 59, 50, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
}

.booking-selected {
    overflow: hidden;
    align-self: start;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 222px;
    min-height: 222px;
    max-height: 222px;
}

.booking-selected__header {
    padding: 0.62rem 0.7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(18, 59, 50, 0.08);
    background: rgba(232, 219, 188, 0.16);
}

.booking-selected__header > div {
    min-width: 0;
    display: grid;
    gap: 0.12rem;
}

.booking-selected__header span {
    color: #695c3d;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.booking-selected__header strong {
    color: #0b5849;
    font-size: 0.7rem;
}

.booking-selected__header button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #9a7b3f;
    font: inherit;
    font-size: 0.61rem;
    cursor: pointer;
}

.booking-selected__list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.42rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(11, 88, 73, 0.28) transparent;
}

.booking-selected-item {
    min-height: 33px;
    padding: 0.36rem 0.48rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    border-bottom: 1px solid rgba(18, 59, 50, 0.065);
    color: #27332f;
    font-size: 0.69rem;
}

.booking-selected-item:last-child {
    border-bottom: 0;
}

.booking-selected-item button {
    width: 1.4rem;
    height: 1.4rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(151, 75, 64, 0.07);
    color: #8c493f;
    cursor: pointer;
}

.booking-selected__empty {
    padding: 0.95rem 0.55rem;
    margin: 0;
    color: #8a8d87;
    text-align: center;
    font-size: 0.67rem;
    line-height: 1.45;
}

.booking-services__available {
    margin: 0;
    padding: 0.5rem;
}

.booking-services__grid {
    max-height: 206px;
    overflow-y: auto;
    padding-inline-end: 0.25rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(11, 88, 73, 0.28) transparent;
}

.booking-services__grid::-webkit-scrollbar,
.booking-selected__list::-webkit-scrollbar {
    width: 5px;
}

.booking-services__grid::-webkit-scrollbar-thumb,
.booking-selected__list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(11, 88, 73, 0.26);
}

.booking-service-card {
    min-height: 40px;
    padding: 0.45rem 0.55rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(18, 59, 50, 0.11);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.82);
    color: #222e2a;
    font-size: 0.69rem;
    cursor: pointer;
    transition:
        border-color 150ms ease,
        background 150ms ease,
        transform 150ms ease;
}

.booking-service-card:hover {
    border-color: rgba(183, 154, 95, 0.7);
    background: #fffdf8;
    transform: translateY(-1px);
}

.booking-service-card.is-selected {
    border-color: rgba(183, 154, 95, 0.72);
    background: rgba(235, 221, 187, 0.14);
}

.booking-service-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.booking-service-card__check {
    width: 1.22rem;
    height: 1.22rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid #9aa09d;
    border-radius: 3px;
    background: #fff;
    color: transparent;
    font-size: 0.68rem;
}

.booking-service-card.is-selected .booking-service-card__check {
    border-color: #0b5849;
    background: #0b5849;
    color: #fff;
}

.booking-service-card[hidden] {
    display: none !important;
}

.booking-summary {
    margin-top: 0.8rem;
    padding: 0.76rem 0.92rem;
    display: grid;
    grid-template-columns:
        minmax(170px, 0.8fr)
        minmax(210px, 1fr)
        minmax(320px, 1.45fr);
    gap: 0.85rem;
    align-items: center;
    border: 1px solid rgba(183, 154, 95, 0.38);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.72);
}

.booking-summary__services {
    display: grid;
    gap: 0.18rem;
}

.booking-summary__services > span {
    color: var(--color-gold);
    font-size: 0.57rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.booking-summary__services strong {
    color: #111c35;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
}

.booking-summary__datetime {
    padding-inline: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border-inline-start: 1px solid rgba(18, 59, 50, 0.11);
    border-inline-end: 1px solid rgba(18, 59, 50, 0.11);
}

.booking-summary__datetime > span {
    color: #0b5849;
    font-size: 1.18rem;
}

.booking-summary__datetime strong {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    color: #182523;
    font-size: 0.74rem;
}

.booking-summary__action {
    min-width: 0;
    display: grid;
    gap: 0.24rem;
}

.booking-form__submit {
    width: 100%;
    min-height: 43px;
    padding: 0.62rem 0.92rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    border: 1px solid #075444;
    border-radius: 7px;
    background: linear-gradient(135deg, #075444, #0b624f);
    color: #fff;
    font: inherit;
    font-size: 0.67rem;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    cursor: pointer;
}

html[dir="rtl"] .booking-form__submit > span:last-child {
    transform: scaleX(-1);
}

.booking-summary__action small {
    color: #7c7e78;
    text-align: center;
    font-size: 0.57rem;
    line-height: 1.4;
}

.booking-form__security {
    margin: 0.7rem 0;
    display: flex;
    justify-content: flex-start;
}

[dir="rtl"] .booking-form__security {
    justify-content: flex-end;
}

.booking-form__honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.booking-form__errors,
.errorlist {
    margin: 0.3rem 0 0;
    padding: 0;
    color: #9a433c;
    font-size: 0.66rem;
    list-style: none;
}

.booking-form__errors--global {
    margin-top: 1rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(154, 67, 60, 0.24);
    border-radius: 8px;
    background: rgba(154, 67, 60, 0.05);
}

.booking-services__empty {
    margin: 0;
    padding: 1rem;
    color: #7b7f79;
    font-size: 0.7rem;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 1100px) {
    .booking-row {
        grid-template-columns: minmax(185px, 0.62fr) minmax(0, 2.2fr);
    }

    .booking-date-grid {
        grid-template-columns: 1fr;
    }

    .booking-details-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .booking-phone-field {
        grid-column: 1 / -1;
    }

    .booking-services__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .booking-page {
        padding: 1.35rem 0.9rem 6.2rem;
    }

    .booking-page__header {
        margin-bottom: 0.8rem;
        display: grid;
        gap: 0.7rem;
    }

    .booking-page__header h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .booking-form {
        padding: 0 1.1rem 1.2rem;
    }

    .booking-form__notice {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .booking-row {
        grid-template-columns: 1fr;
        gap: 0.78rem;
        padding: 0.95rem 0;
    }

    .booking-form__availability {
        grid-column: 1;
        margin-top: 0;
    }

    .booking-services__workspace {
        grid-template-columns: minmax(150px, 0.75fr) minmax(0, 2fr);
    }

    .booking-summary {
        grid-template-columns: 1fr 1fr;
    }

    .booking-summary__action {
        grid-column: 1 / -1;
    }

    .booking-summary__datetime {
        border-inline-end: 0;
    }
}

@media (max-width: 620px) {
    .booking-page {
        padding-inline: 0.65rem;
    }

    .booking-page__card {
        border-radius: 13px;
    }

    .booking-form {
        padding-inline: 0.85rem;
    }

    .booking-row__intro {
        grid-template-columns: 2.4rem 1fr;
    }

    .booking-step {
        width: 2.1rem;
        height: 2.1rem;
        font-size: 1.02rem;
    }

    .booking-details-grid {
        grid-template-columns: 1fr;
    }

    .booking-phone-field {
        grid-column: auto;
    }

    .booking-calendar {
        grid-template-columns: 0.72fr 1.28fr 0.92fr;
    }

    .booking-phone {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .booking-services__categories {
        margin-inline: -0.15rem;
        padding-inline: 0.15rem;
    }

    .booking-services__workspace {
        grid-template-columns: 1fr;
    }

    .booking-selected {
        order: 0;
        height: 190px;
        min-height: 190px;
        max-height: 190px;
    }

    .booking-services__available {
        order: 1;
    }

    .booking-services__grid {
        max-height: 260px;
        grid-template-columns: 1fr;
    }

    .booking-summary {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .booking-summary__datetime {
        padding: 0;
        border: 0;
    }

    .booking-summary__action {
        grid-column: auto;
    }
}


/* ---------------------------------------------------------
   Successful public booking request
   --------------------------------------------------------- */

body.has-booking-success-modal {
    overflow: hidden;
}

.booking-success-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    padding: 1.25rem;
    display: grid;
    place-items: center;
    background: rgba(10, 24, 20, 0.22);
    backdrop-filter: blur(8px) saturate(0.92);
    -webkit-backdrop-filter: blur(8px) saturate(0.92);
    animation: booking-success-backdrop-in 220ms ease both;
}

.booking-success-modal__card {
    width: min(100%, 520px);
    padding: clamp(1.7rem, 4vw, 2.45rem);
    border: 1px solid rgba(183, 154, 95, 0.58);
    border-radius: 18px;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(219, 198, 150, 0.13),
            transparent 42%
        ),
        rgba(255, 253, 248, 0.98);
    box-shadow:
        0 32px 90px rgba(11, 35, 29, 0.22),
        0 3px 12px rgba(11, 35, 29, 0.07);
    text-align: center;
    animation: booking-success-card-in 260ms ease both;
}

.booking-success-modal__icon {
    width: 3.2rem;
    height: 3.2rem;
    margin: 0 auto 0.9rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #0b5b4a, #073f35);
    color: #fff;
    font-size: 1.45rem;
    box-shadow: 0 9px 24px rgba(8, 77, 63, 0.16);
}

.booking-success-modal__eyebrow {
    margin: 0 0 0.42rem;
    color: var(--color-gold);
    font-size: 0.64rem;
    font-weight: 750;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.booking-success-modal__card h2 {
    margin: 0;
    color: #101b35;
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    font-weight: 500;
    line-height: 1.12;
}

html[dir="rtl"] .booking-success-modal__card h2 {
    line-height: 1.4;
}

.booking-success-modal__message {
    max-width: 410px;
    margin: 0.9rem auto 0;
    color: #626a65;
    font-size: 0.82rem;
    line-height: 1.7;
}

.booking-success-modal__notice {
    margin-top: 1.2rem;
    padding: 0.72rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 1px solid rgba(183, 154, 95, 0.25);
    border-radius: 9px;
    background: rgba(236, 224, 195, 0.15);
}

.booking-success-modal__notice > span {
    flex: 0 0 auto;
    color: var(--color-gold);
}

.booking-success-modal__notice p {
    margin: 0;
    color: #6d6b62;
    font-size: 0.7rem;
    line-height: 1.55;
}

.booking-success-modal__home {
    min-height: 46px;
    margin-top: 1.2rem;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    border: 1px solid #075444;
    border-radius: 8px;
    background: linear-gradient(135deg, #075444, #0b624f);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        transform 150ms ease,
        box-shadow 150ms ease;
}

.booking-success-modal__home:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(7, 84, 68, 0.17);
}

html[dir="rtl"] .booking-success-modal__home > span:last-child {
    transform: scaleX(-1);
}

.booking-success-modal__countdown {
    margin: 0.65rem 0 0;
    color: #888b84;
    font-size: 0.62rem;
}

@keyframes booking-success-backdrop-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes booking-success-card-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 620px) {
    .booking-success-modal {
        padding: 0.85rem;
    }

    .booking-success-modal__card {
        padding: 1.5rem 1.1rem;
        border-radius: 15px;
    }

    .booking-success-modal__notice {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .booking-success-modal,
    .booking-success-modal__card {
        animation: none;
    }
}
