﻿.booking-page {
    width: 100vw;
    min-height: calc(100vh - 80px);
    margin-left: calc(50% - 50vw);
    padding: var(--space-6) var(--space-4) var(--space-8);
    background: var(--color-background);
    color: var(--color-text);
}

.booking-hero {
    max-width: 720px;
    margin: 0 auto var(--space-7);
    text-align: center;
}

    .booking-hero__eyebrow {
        display: inline-flex;
        padding: 0.55rem 0.9rem;
        border: 1px solid rgba(28, 26, 23, 0.16);
        border-radius: var(--radius-pill);
        background: rgba(250, 248, 243, 0.72);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.11em;
        text-transform: uppercase;
    }

    .booking-hero h1 {
        margin: var(--space-4) 0 var(--space-3);
        font-family: var(--font-serif);
        font-size: clamp(2.5rem, 5vw, 3.75rem);
        font-weight: 400;
        letter-spacing: -0.04em;
        line-height: 1.05;
    }

    .booking-hero p {
        max-width: 620px;
        margin: 0 auto;
        color: var(--color-text-muted);
        font-size: 1.05rem;
        line-height: 1.7;
    }

/* Bevestigingspagina */
.confirmation-card {
    width: min(100%, 520px);
    margin: 0 auto var(--space-5);
    padding: var(--space-6) var(--space-5);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-large);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}

.confirmation-card__title {
    margin: 0 0 var(--space-4);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.confirmation-details {
    display: grid;
    gap: var(--space-3);
    margin: 0 0 var(--space-4);
}

.confirmation-details > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-3);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-border-soft);
}

.confirmation-details dt {
    color: var(--color-text-muted);
    font-size: var(--font-size-small);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.confirmation-details dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
}

.confirmation-card__note {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

    .confirmation-card__note a {
        color: var(--color-text);
        font-weight: 600;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

.confirmation-prep {
    width: min(100%, 520px);
    margin: 0 auto var(--space-5);
    padding: var(--space-6) var(--space-5);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-large);
    background: var(--beige);
}

.confirmation-prep ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 19px;
    color: var(--ink-2);
    line-height: 1.5;
}

.confirmation-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
}

.confirmation-actions__primary,
.confirmation-actions__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 var(--space-5);
    border-radius: var(--radius-pill);
    font-size: 0.92rem;
    font-weight: 700;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.confirmation-actions__primary {
    background: var(--color-primary);
    color: var(--color-primary-text);
}

    .confirmation-actions__primary:hover {
        background: var(--color-primary-hover);
        color: var(--color-primary-text);
        transform: translateY(-2px);
    }

.confirmation-actions__secondary {
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
}

    .confirmation-actions__secondary:hover {
        background: var(--color-background-soft);
        color: var(--color-text);
    }

.booking-layout,
.book {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 20px;
    align-items: start;
    width: min(100%, var(--container-booking));
    margin: 0 auto;
}

.book-main {
    display: grid;
    gap: 16px;
}

/* Genummerde stapkaart */
.book-card {
    min-height: 0;
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-large);
    background: var(--paper);
    box-shadow: var(--shadow-card);
    scroll-margin-top: calc(var(--header-height) + 16px);
}

#booking-date-state {
    scroll-margin-top: calc(var(--header-height) + 16px);
}

.booking-card--details {
    display: block;
    align-items: initial;
    justify-content: initial;
}

/* Samenvatting-zijbalk */
.book-side {
    display: grid;
    gap: 16px;
    position: sticky;
    top: calc(var(--header-height) + 16px);
    align-self: start;
}

.sum {
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-large);
    background: var(--paper);
    box-shadow: var(--shadow-card-hover);
}

.sum-top {
    padding: 26px 28px 22px;
    border-bottom: 1px solid var(--line-soft);
}

.sum-top h2 {
    font-size: 1.5rem;
}

.sum-top p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.sum-body {
    margin: 0;
    padding: 4px 28px;
}

.srow {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
}

.srow:last-child {
    border-bottom: 0;
}

.srow dt {
    flex: none;
    color: var(--muted);
    font-size: 13px;
}

.srow dd {
    margin: 0;
    text-align: right;
    font-size: 15px;
    font-weight: 500;
}

.srow dd.wait {
    color: #bcb3a7;
    font-weight: 400;
    font-style: italic;
}

.sum-pay {
    padding: 22px 28px 26px;
    background: var(--cream);
}

.pline {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--ink-2);
    font-size: 14.5px;
}

.pline span:last-child {
    font-weight: 600;
}

.pnote {
    margin-top: 16px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.55;
}

.ideal {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ink-2);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.prep {
    padding: 26px 28px;
    border-radius: var(--radius-large);
    background: var(--beige);
}

.prep h3 {
    margin-bottom: 14px;
    font-size: 1.15rem;
}

.prep ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 19px;
    color: var(--ink-2);
    font-size: 14.5px;
    line-height: 1.5;
}

.booking-step + .booking-step {
    margin-top: var(--space-6);
}

.booking-step__title {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 22px;
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.booking-step__number {
    display: inline-flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    flex: 0 0 26px;
    border-radius: 50%;
    background: var(--ink);
    color: #fbf9f5;
    font-size: 12px;
    font-weight: 600;
}

.booking-select {
    width: 100%;
    min-height: 48px;
    padding: 0 var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    background: var(--color-surface);
    color: var(--color-text);
    font: inherit;
    cursor: pointer;
}

    .booking-select:focus {
        outline: 2px solid var(--color-text);
        outline-offset: 2px;
    }

.calendar-navigation {
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    align-items: center;
    margin-bottom: var(--space-4);
}

.calendar-navigation__title {
    margin: 0;
    text-align: center;
    font-size: var(--font-size-heading-small);
    font-weight: 700;
    text-transform: capitalize;
}

.calendar-navigation__button {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-background);
    color: var(--color-text);
    font-size: 1.5rem;
    line-height: 1;
    text-decoration: none;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

    .calendar-navigation__button:hover {
        background: var(--color-calendar-available);
        color: var(--color-text);
        transform: translateY(-1px);
    }

.calendar-navigation__button--disabled {
    color: var(--color-text-faded);
    cursor: default;
    pointer-events: none;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: var(--space-2);
}

.calendar-grid--header {
    margin-bottom: var(--space-2);
    color: var(--color-text-muted);
    font-size: var(--font-size-small);
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.calendar-cell {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
}

.calendar-day {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    font: inherit;
    font-weight: 600;
}

button.calendar-day {
    cursor: pointer;
}

.calendar-day--available {
    position: relative;
    border: 1px solid var(--line-soft);
    background: var(--cream);
    color: var(--color-text);
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

    .calendar-day--available::after {
        content: "";
        position: absolute;
        bottom: 6px;
        left: 50%;
        width: 3.5px;
        height: 3.5px;
        border-radius: 50%;
        background: var(--muted);
        opacity: 0.6;
        transform: translateX(-50%);
    }

    .calendar-day--available:hover:not(:disabled) {
        border-color: var(--ink);
        background: #fff;
        transform: translateY(-2px);
    }

    .calendar-day--available:disabled {
        cursor: default;
    }

.calendar-day--selected {
    position: relative;
    background: var(--color-calendar-selected);
    color: var(--color-calendar-selected-text);
}

    .calendar-day--selected::after {
        content: "";
        position: absolute;
        bottom: 6px;
        left: 50%;
        width: 3.5px;
        height: 3.5px;
        border-radius: 50%;
        background: #fbf9f5;
        transform: translateX(-50%);
    }

.calendar-day--unavailable {
    background: transparent;
    color: var(--color-text-faded);
}

.calendar-legend {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
    color: var(--color-text-muted);
    font-size: var(--font-size-small);
}

.calendar-legend__item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

.calendar-legend__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.calendar-legend__dot--available {
    border: 1px solid var(--color-border);
    background: var(--color-calendar-available);
}

.calendar-legend__dot--selected {
    background: var(--color-calendar-selected);
}

/* Secties die verschijnen vouwen soepel uit, zodat de footer
   niet abrupt verspringt maar vloeiend meebeweegt. */
#booking-empty-state,
#booking-date-state,
#booking-customer-type-step {
    overflow: hidden;
    max-height: 1500px;
    opacity: 1;
    transition: max-height 0.45s ease, opacity 0.3s ease;
}

    #booking-empty-state[hidden],
    #booking-date-state[hidden],
    #booking-customer-type-step[hidden] {
        display: block !important;
        max-height: 0;
        opacity: 0;
        pointer-events: none;
    }

@media (prefers-reduced-motion: reduce) {
    #booking-empty-state,
    #booking-date-state,
    #booking-customer-type-step {
        transition: none;
    }
}

.booking-empty-state {
    max-width: 340px;
    color: var(--color-text-muted);
    line-height: 1.6;
    text-align: center;
}

    .booking-empty-state p {
        margin: 0;
    }

    .booking-empty-state strong {
        color: var(--color-text);
    }

.booking-date-state {
    width: 100%;
    align-self: flex-start;
}

    .booking-date-state h2 {
        margin: 0 0 var(--space-5);
        font-size: var(--font-size-heading-small);
        text-transform: capitalize;
    }

.booking-date-state__message {
    color: var(--color-text-muted);
}

@media (max-width: 980px) {
    .booking-layout,
    .book {
        grid-template-columns: 1fr;
    }

    .book-side {
        position: static;
    }

    .booking-card {
        min-height: auto;
    }
}

@media (max-width: 520px) {
    .booking-page {
        padding-inline: var(--space-3);
    }

    .booking-card {
        padding: var(--space-4);
        border-radius: var(--radius-medium);
    }

    .calendar-grid {
        gap: var(--space-1);
    }

    .calendar-cell {
        min-height: 42px;
    }

    .calendar-day {
        width: 40px;
        height: 40px;
    }
}

.booking-time-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.booking-time-button {
    min-width: 92px;
    padding: 0.55rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: var(--color-surface);
    color: var(--color-text);
    font-weight: 600;
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

    .booking-time-button:hover,
    .booking-time-button--selected {
        border-color: var(--color-primary);
        background: var(--color-primary);
        color: var(--color-primary-text);
    }

.treatment-price-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-3);
}

    .treatment-price-options[hidden] {
        display: none;
    }

.treatment-price-card {
    display: flex;
    min-height: 100px;
    padding: 0.9rem 1rem;
    border: 1px solid var(--color-text-muted);
    border-radius: var(--radius-medium);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background: var(--color-surface);
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

    .treatment-price-card:hover:not(:disabled) {
        border-color: var(--color-text);
        transform: translateY(-1px);
    }

.treatment-price-card--selected {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--color-primary-text);
}

.treatment-price-card:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.treatment-price-card__header {
    display: flex;
    width: 100%;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-2);
}

.treatment-price-card__title {
    font-size: 0.9rem;
    font-weight: 700;
}

.treatment-price-card__description {
    font-size: 0.78rem;
    opacity: 0.8;
}

.treatment-price-card__discount {
    color: #a3532b;
    font-size: 0.75rem;
}

.treatment-price-card--selected
.treatment-price-card__discount {
    color: inherit;
}

.treatment-price-card__price-row {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
}

.treatment-price-card__regular-price {
    font-size: 0.8rem;
    opacity: 0.65;
}

.treatment-price-card__price {
    font-size: 1.05rem;
    font-weight: 700;
}

@media (max-width: 480px) {
    .treatment-price-options {
        grid-template-columns: 1fr;
    }
}

.treatment-price-options--empty
.treatment-price-card {
    border-color: var(--color-border);
    background: transparent;
    color: transparent;
    cursor: default;
    opacity: 1;
    pointer-events: none;
}

    .treatment-price-options--empty
    .treatment-price-card:disabled {
        border-color: var(--color-border-soft);
        background: rgba(255, 255, 255, 0.22);
        opacity: 1;
    }

    .treatment-price-options--empty
    .treatment-price-card:hover {
        border-color: var(--color-border-soft);
        transform: none;
    }

.calendar-stage {
    opacity: 1;
    transform: none;
}

.calendar-stage--locked .calendar-day--idle {
    background: transparent;
    color: var(--color-text);
    opacity: 0.72;
}

.calendar-day--idle {
    cursor: default;
    user-select: none;
}

.calendar-stage--loading .calendar-days {
    opacity: 0.45;
    transition: opacity 180ms ease;
}

.calendar-loading {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    pointer-events: none;
}

    .calendar-loading[hidden] {
        display: none;
    }

.calendar-grid-wrapper {
    position: relative;
    min-height: 326px;
}

.calendar-day--entering {
    animation: calendar-day-wave-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--calendar-delay, 0ms);
}

@keyframes calendar-day-wave-in {
    0% {
        opacity: 0;
        transform: scale(0.15);
    }

    65% {
        opacity: 1;
        transform: scale(1.12);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .calendar-day--entering {
        animation: none;
    }
}

.booking-customer-type-step {
    margin-top: var(--space-5);
    opacity: 0;
    transform: translateY(14px) scale(0.98);
    transform-origin: top center;
    transition: opacity 260ms ease, transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

    .booking-customer-type-step[hidden] {
        display: none;
    }

.booking-customer-type-step--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.booking-customer-type-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
}

.booking-customer-type-button {
    min-height: 54px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    background: var(--color-surface);
    color: var(--color-text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

    .booking-customer-type-button:hover {
        border-color: var(--color-primary);
        transform: translateY(-2px);
    }

.booking-customer-type-button--selected {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--color-primary-text);
}

@media (prefers-reduced-motion: reduce) {
    .booking-customer-type-step {
        transition: none;
        transform: none;
    }
}

body.booking-auth-open {
    overflow: hidden;
}

.booking-customer-type-message {
    margin: var(--space-3) 0 0;
    color: var(--color-text-muted);
    font-size: var(--font-size-small);
    line-height: 1.5;
}

.booking-auth-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: flex;
    padding: var(--space-4);
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 220ms ease;
}

    .booking-auth-modal[hidden] {
        display: none;
    }

.booking-auth-modal--visible {
    opacity: 1;
}

.booking-auth-dialog {
    position: relative;
    width: min(100%, 520px);
    max-height: calc(100vh - 2rem);
    padding: var(--space-6);
    overflow-y: auto;
    border-radius: var(--radius-large);
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: var(--shadow-card);
    transform: translateY(18px) scale(0.97);
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.booking-auth-modal--visible
.booking-auth-dialog {
    transform: translateY(0) scale(1);
}

.booking-auth-close {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    display: inline-flex;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: var(--color-background);
    color: var(--color-text);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.booking-auth-view h2 {
    margin: 0 var(--space-6) var(--space-2) 0;
    font-size: var(--font-size-heading-small);
}

.booking-auth-introduction {
    margin: 0 0 var(--space-5);
    color: var(--color-text-muted);
    line-height: 1.6;
}

.booking-auth-field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
}

.booking-auth-field {
    display: grid;
    gap: var(--space-1);
    margin-bottom: var(--space-3);
}

    .booking-auth-field label {
        font-size: var(--font-size-small);
        font-weight: 700;
    }

    .booking-auth-field input {
        width: 100%;
        min-height: 48px;
        padding: 0 var(--space-3);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-small);
        background: var(--color-surface);
        color: var(--color-text);
        font: inherit;
    }

        .booking-auth-field input:focus {
            outline: 2px solid var(--color-primary);
            outline-offset: 2px;
        }

.booking-auth-submit {
    width: 100%;
    min-height: 50px;
    margin-top: var(--space-2);
    padding: 0 var(--space-4);
    border: 0;
    border-radius: var(--radius-medium);
    background: var(--color-primary);
    color: var(--color-primary-text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

    .booking-auth-submit:disabled,
    .booking-auth-link:disabled {
        opacity: 0.55;
        cursor: wait;
    }

.booking-auth-link {
    display: block;
    margin: var(--space-4) auto 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-text);
    font: inherit;
    font-size: var(--font-size-small);
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.booking-auth-message {
    margin: 0 0 var(--space-4);
    padding: var(--space-3);
    border-radius: var(--radius-small);
    font-size: var(--font-size-small);
    line-height: 1.5;
}

.booking-auth-message--error {
    background: rgba(160, 40, 40, 0.1);
    color: #8b2020;
}

.booking-auth-message--success {
    background: rgba(35, 120, 70, 0.1);
    color: #246b42;
}

.booking-verification-code {
    text-align: center;
    font-size: 1.75rem !important;
    font-weight: 700;
    letter-spacing: 0.45em;
}

@media (max-width: 520px) {
    .booking-auth-dialog {
        padding: var(--space-5) var(--space-4);
    }

    .booking-auth-field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .booking-auth-modal,
    .booking-auth-dialog {
        transition: none;
    }
}
