/*
 * Kunden-Terminbuchung — modernes Formularlayout
 */

.customer-booking-page .public-card {
    width: min(920px, 100%);
    border-radius: 28px;
    padding: clamp(24px, 4vw, 40px);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .08);
}

.customer-booking-page .public-card > h1 {
    margin-top: 0;
    font-size: clamp(1.65rem, 3vw, 2rem);
    letter-spacing: -.02em;
}

.customer-booking-page .public-card > p {
    color: var(--muted);
    line-height: 1.55;
    max-width: 52rem;
}

.customer-booking-form {
    gap: 20px;
    margin-top: 8px;
}

.customer-booking-form label {
    gap: 8px;
}

.customer-booking-form .customer-booking-input,
.customer-booking-form select,
.customer-booking-form textarea {
    padding: 14px 16px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    font: inherit;
    background: #fff;
    color: var(--text);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.customer-booking-form .customer-booking-input:focus,
.customer-booking-form select:focus,
.customer-booking-form textarea:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.customer-booking-datetime {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.customer-booking-field--date,
.customer-booking-field--time {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.customer-booking-label {
    font-weight: 700;
    font-size: .95rem;
}

.customer-booking-input--date,
.customer-booking-input--time {
    min-height: 58px;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: .01em;
}

.customer-booking-input--date::-webkit-calendar-picker-indicator,
.customer-booking-input--time::-webkit-calendar-picker-indicator {
    transform: scale(1.25);
    cursor: pointer;
}

.customer-booking-form button[type="submit"] {
    min-height: 52px;
    padding-inline: 24px;
    font-size: 1rem;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .22);
}

.booking-slot-alternatives {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 4px;
    padding: 18px 0 0;
    border-top: 1px solid #e8edf4;
}

.booking-slot-message {
    margin: 0;
    font-weight: 600;
    color: #9a3412;
    line-height: 1.5;
}

.booking-slot-choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.booking-slot-choice {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.booking-slot-choice:hover {
    border-color: #93c5fd;
    background: #f8fbff;
}

.booking-slot-choice:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
}

.booking-slot-choice input[type="radio"] {
    margin: 0;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.booking-slot-choice span {
    flex: 1 1 auto;
}

.booking-slot-hint {
    margin: 0;
    font-weight: 600;
    color: var(--muted);
}

.customer-booking-page.fst-embed-page .public-card > p {
    font-size: .98rem;
}

.customer-booking-page.fst-embed-page .customer-booking-form textarea {
    min-height: 96px;
}

@media (max-width: 720px) {
    .customer-booking-datetime {
        grid-template-columns: 1fr;
    }
}

.customer-booking-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.customer-booking-step {
    position: relative;
    padding-left: 28px;
    color: var(--muted);
    font-weight: 600;
    font-size: .92rem;
}

.customer-booking-step::before {
    content: counter(step);
    counter-increment: step;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #e8edf4;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.customer-booking-steps {
    counter-reset: step;
}

.customer-booking-step.is-active {
    color: var(--text);
}

.customer-booking-step.is-active::before {
    background: var(--blue);
    color: #fff;
}

.customer-booking-step.is-done {
    color: #166534;
}

.customer-booking-step.is-done::before {
    background: #dcfce7;
    color: #166534;
    content: "✓";
    font-size: .7rem;
}

.customer-booking-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.customer-booking-actions--split {
    justify-content: space-between;
}

.customer-booking-summary {
    padding: 14px 16px;
    border-radius: 14px;
    background: #f8fbff;
    border: 1px solid #dbeafe;
}

.customer-booking-summary-label {
    margin: 0 0 4px;
    font-size: .85rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.customer-booking-summary-value {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.customer-booking-wizard-viewport {
    overflow: hidden;
    width: 100%;
}

.customer-booking-wizard-track {
    display: flex;
    width: 100%;
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

.customer-booking-panel {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.customer-booking-step.is-skipped {
    color: var(--muted);
    opacity: .65;
}

.customer-booking-step.is-skipped::before {
    content: "–";
    background: #f1f5f9;
    color: var(--muted);
}

.customer-booking-form .customer-booking-wizard-viewport {
    margin-top: 4px;
}

