/* ==========================================================================
   Serenitykha — online booking (loaded on /reserver pages)
   ========================================================================== */
.btn-pill--solid { background: var(--ink); color: var(--cream-alt); }
.btn-pill--solid:hover { background: #3a332b; border-color: #3a332b; }
.btn-pill:disabled { opacity: .4; cursor: not-allowed; }
.btn-pill:disabled:hover { background: var(--ink); color: var(--cream-alt); }

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

.book-intro {
    max-width: 720px;
    margin: 0 auto;
    padding: 72px 24px 40px;
    text-align: center;
}

.book-intro__copy { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.8; }

.booking {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 40px 96px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 40px;
    align-items: start;
}

.booking__main { display: grid; gap: 24px; min-width: 0; }

.booking__aside { position: sticky; top: 100px; }

.book-alert {
    padding: 16px 20px;
    border-radius: 10px;
    background: #f7e4de;
    color: #8c3825;
    font-size: 14px;
}
.book-alert ul { margin: 6px 0 0; padding-left: 18px; }

/* Steps */
.book-step {
    position: relative;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fffdf9;
}

.book-step__head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }

.book-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--cream-alt);
    font-family: var(--font-serif);
    font-size: 15px;
}

.book-step__title {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 22px;
}

.book-step__locked { display: none; margin: 0; color: var(--ink-soft); font-size: 14px; }
.book-step.is-locked .book-step__locked { display: block; }
.book-step.is-locked .book-when { display: none; }
.book-step.is-locked .book-step__num { background: var(--line); color: var(--ink-soft); }

/* Treatment options */
.book-group + .book-group { margin-top: 24px; }

.book-group__title {
    margin: 0 0 12px;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.book-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.book-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--cream-alt);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.book-option:hover { border-color: var(--ink-soft); }

.book-option input { position: absolute; opacity: 0; pointer-events: none; }

.book-option__body { flex: 1; min-width: 0; }
.book-option__name { display: block; font-size: 15px; font-weight: 500; }
.book-option__meta { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-soft); }
.book-option__meta s { color: #a59b8c; margin-right: 2px; }

.book-option__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: transparent;
    transition: all .2s ease;
}

.book-option:has(input:checked) {
    border-color: var(--ink);
    background: #fff;
    box-shadow: 0 0 0 1px var(--ink);
}

.book-option:has(input:checked) .book-option__check { background: var(--ink); border-color: var(--ink); color: #fff; }
.book-option:has(input:focus-visible) { outline: 2px solid #b08f6a; outline-offset: 2px; }

.book-empty { margin: 0; color: var(--ink-soft); }

/* Calendar + slots */
.book-when { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }

.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }

.cal__month {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 18px;
    text-transform: capitalize;
}

.cal__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}
.cal__nav:hover:not(:disabled) { border-color: var(--ink); }
.cal__nav:disabled { opacity: .3; cursor: default; }

.cal__weekdays, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }

.cal__weekdays span {
    padding: 6px 0;
    text-align: center;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.cal__grid.is-loading { opacity: .5; }

.cal__day {
    position: relative;
    aspect-ratio: 1;
    border: 0;
    border-radius: 50%;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 14px;
    color: #b7ad9f;
    cursor: default;
}

.cal__day.is-available { color: var(--ink); font-weight: 500; cursor: pointer; }
.cal__day.is-available::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    border-radius: 50%;
    background: #b08f6a;
}
.cal__day.is-available:hover { background: var(--cream); }
.cal__day.is-today { box-shadow: inset 0 0 0 1px var(--line); }
.cal__day.is-selected, .cal__day.is-selected:hover { background: var(--ink); color: var(--cream-alt); }
.cal__day.is-selected::after { background: var(--cream-alt); }

.cal__legend {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 0;
    font-size: 12px;
    color: var(--ink-soft);
}
.cal__dot { width: 6px; height: 6px; border-radius: 50%; background: #b08f6a; }

.slots { padding-left: 28px; border-left: 1px solid var(--line); }

.slots__title {
    margin: 6px 0 18px;
    font-family: var(--font-serif);
    font-size: 18px;
}
.slots__title::first-letter { text-transform: uppercase; }

.slots__hint { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }

.slots__group {
    margin: 0 0 8px;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.slots__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }

.slot {
    padding: 10px 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--cream-alt);
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--ink);
    cursor: pointer;
    transition: all .15s ease;
}
.slot:hover { border-color: var(--ink); }
.slot.is-selected { background: var(--ink); border-color: var(--ink); color: var(--cream-alt); }

/* Contact fields */
.book-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.book-field { display: grid; gap: 8px; }
.book-field--full { grid-column: 1 / -1; }

.book-field label {
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.book-field label span { text-transform: none; letter-spacing: 0; color: #a59b8c; }

.book-field input,
.book-field textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.book-field input:focus,
.book-field textarea:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(176,143,106,.2);
}

.book-field .is-invalid { border-color: #a4452f; }
.book-field__error { margin: 0; font-size: 13px; color: #a4452f; }

/* Summary */
.book-summary {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fffdf9;
    box-shadow: 0 20px 40px -28px rgba(36,31,26,.35);
}

.book-summary__image { height: 170px; }
.book-summary__image img { width: 100%; height: 100%; object-fit: cover; }
.book-summary__image[hidden] { display: none; }

.book-summary__body { padding: 26px 26px 24px; }

.book-summary__name {
    margin: 0 0 18px;
    font-family: var(--font-serif);
    font-size: 21px;
    line-height: 1.3;
}

.book-summary__list { margin: 0 0 22px; }

.book-summary__list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.book-summary__list dt { color: var(--ink-soft); }
.book-summary__list dd { margin: 0; text-align: right; }
.book-summary__list dd::first-letter { text-transform: uppercase; }

.book-summary__list .book-summary__total { border-bottom: 0; font-size: 16px; }
.book-summary__total dd { font-family: var(--font-serif); font-size: 19px; }

.book-summary__cta { display: block; width: 100%; }

.book-summary__note { margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--ink-soft); }

/* Confirmation page */
.book-done {
    max-width: 620px;
    margin: 0 auto;
    padding: 80px 24px 96px;
    text-align: center;
}

.book-done__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    border-radius: 50%;
    background: #e6efe3;
    color: #3f6b47;
}
.book-done__icon.is-cancelled { background: #f7e4de; color: #a4452f; }

.book-done__copy { margin: 0 auto 36px; max-width: 460px; color: var(--ink-soft); font-size: 15px; line-height: 1.8; }

.book-ticket {
    margin: 0 0 32px;
    padding: 8px 28px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fffdf9;
    text-align: left;
}

.book-ticket__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
.book-ticket__row:last-child { border-bottom: 0; }
.book-ticket__row span { color: var(--ink-soft); }
.book-ticket__row strong { font-weight: 500; text-align: right; }
.book-ticket__row small { font-weight: 400; color: var(--ink-soft); }
.book-ticket__ref strong { font-family: var(--font-serif); font-size: 17px; letter-spacing: .08em; }

.book-done__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.book-done__note { margin: 28px auto 0; max-width: 440px; font-size: 13px; color: var(--ink-soft); line-height: 1.7; }

@media (max-width: 900px) {
    .booking { grid-template-columns: 1fr; padding: 0 16px 64px; gap: 24px; }
    .booking__aside { position: static; }
    .book-intro { padding: 48px 16px 28px; }
    .book-step { padding: 24px 18px; }
    .book-options, .book-fields { grid-template-columns: 1fr; }
    .book-when { grid-template-columns: 1fr; }
    .slots { padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--line); }
    .slots__grid { grid-template-columns: repeat(4, 1fr); }
    .book-summary__image { height: 130px; }
}

@media (max-width: 420px) {
    .slots__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   Gift cards (bon cadeau)
   ========================================================================== */
.gift-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 24px;
    border: 1px solid var(--line);
    border-radius: 999px;
}
.gift-tab { position: relative; cursor: pointer; }
.gift-tab input, .gift-amount input { position: absolute; opacity: 0; pointer-events: none; }
.gift-tab span {
    display: block;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: background .2s ease, color .2s ease;
}
.gift-tab input:checked + span { background: var(--ink); color: #fff; }
.gift-tab input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.gift-panel[hidden] { display: none; }

.gift-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.gift-amount { cursor: pointer; }
.gift-amount span {
    display: block;
    padding: 16px 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    text-align: center;
    font-family: var(--font-serif);
    font-size: 18px;
    transition: border-color .2s ease, background .2s ease;
}
.gift-amount:hover span { border-color: var(--ink-soft); }
.gift-amount input:checked + span { border-color: var(--ink); background: var(--cream); }
.gift-amount input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.gift-custom { max-width: 260px; }
.gift-custom__input { position: relative; }
.gift-custom__input input { width: 100%; padding-right: 36px; }
.gift-custom__input span {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: var(--ink-soft);
}

@media (max-width: 560px) {
    .gift-amounts { grid-template-columns: repeat(2, 1fr); }
    .gift-tabs { display: flex; }
    .gift-tab { flex: 1; text-align: center; }
    .gift-custom { max-width: none; }
}

/* Arabic: right-to-left */
[dir="rtl"] .book-alert ul { padding-left: 0; padding-right: 18px; }
[dir="rtl"] .book-option__meta s { margin-right: 0; margin-left: 2px; }
[dir="rtl"] .slots { padding-left: 0; padding-right: 28px; border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .book-summary__list dd,
[dir="rtl"] .book-ticket__row strong { text-align: left; }
[dir="rtl"] .book-ticket { text-align: right; }
[dir="rtl"] .gift-custom__input input { padding-right: 14px; padding-left: 36px; }
[dir="rtl"] .gift-custom__input span { right: auto; left: 14px; }
@media (max-width: 900px) {
    [dir="rtl"] .slots { padding: 22px 0 0; border-right: 0; }
}
.gift-hint { margin: 0 0 18px; font-size: 13.5px; color: var(--ink-soft); }

/* "No time suits you? Contact us" under the calendar (hidden until a treatment is chosen) */
.book-contact-note {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--ink-soft);
}
.book-contact-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.book-step.is-locked .book-contact-note { display: none; }

/* Card guarantee (Stripe) */
.book-terms { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; font-size: 12.5px; line-height: 1.55; color: var(--ink-soft); cursor: pointer; }
.book-terms input { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; accent-color: var(--ink); }
.book-done__guarantee { max-width: 520px; margin: 0 auto 28px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }

/* Confirmation page: keep the code / how to cancel */
.book-keep {
    max-width: 520px;
    margin: 0 auto 28px;
    padding: 22px 22px 20px;
    background: #fff;
    border: 1px solid var(--ink);
    text-align: center;
}
.book-keep__title { margin: 0; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.book-keep__code { margin: 8px 0 12px; font-family: var(--font-serif); font-size: 26px; letter-spacing: .12em; }
.book-keep__text { margin: 0 0 16px; font-size: 13.5px; line-height: 1.65; color: var(--ink-soft); }
.book-keep__actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
