/**
 * Frontend styles for Orphit Terminbuchung
 * Orphit theme — matches the orphit.de landing page design system.
 *
 * Colors map to the theme tokens (CSS custom properties) with Orphit
 * fallbacks so the booking form blends into the brand even outside the
 * theme. Dark mode is handled automatically through the theme variables.
 */

.orphit-booking-booking-form {
    --rc-primary: var(--primary, #3C8C8C);
    --rc-accent: var(--accent, #F59962);
    --rc-cta: var(--cta, #36787B);
    --rc-link: var(--link, #3B6C73);
    --rc-bg: var(--bg, #FFF8F0);
    --rc-surface: var(--surface, #FAF7F2);
    --rc-surface2: var(--surface2, #E2DDD5);
    --rc-text: var(--text, #25211F);
    --rc-muted: var(--textmuted, var(--textMuted, #5E676B));
    --rc-ring: color-mix(in srgb, var(--rc-primary) 22%, transparent);
    --rc-theme: var(--rc-primary);
    --rc-font-display: var(--font-display, "Signika", system-ui, sans-serif);
    --rc-font-body: var(--font-body, "Golos Text", system-ui, sans-serif);
    --rc-radius-lg: var(--radius-lg, 20px);
    --rc-radius-md: var(--radius-md, 12px);
    --rc-radius-full: var(--radius-full, 999px);

    max-width: 800px;
    margin: 0 auto;
    background: var(--rc-surface);
    border: 1px solid var(--rc-surface2);
    border-radius: var(--rc-radius-lg);
    box-shadow: 0 1px 2px rgba(37, 49, 56, 0.06), 0 10px 36px rgba(37, 49, 56, 0.09);
    overflow: hidden;
    color: var(--rc-text);
    position: relative;
}

/* ============================================================
   Form Header
   ============================================================ */
.orphit-booking-form-header {
    background: var(--rc-bg) !important;
    color: var(--rc-text);
    padding: 38px 30px 30px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--rc-surface2);
}

.orphit-booking-form-header h3 {
    margin: 0 0 22px 0;
    font-family: var(--rc-font-display);
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--rc-text);
}

.orphit-booking-progress-container {
    background: var(--rc-surface2);
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    max-width: 520px;
    margin: 0 auto;
}

.orphit-booking-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--rc-primary) 0%, var(--rc-cta) 100%) !important;
    width: 25%;
    border-radius: var(--rc-radius-full);
    transition: width var(--duration-slow, 400ms) var(--ease-out, ease);
}

/* ============================================================
   Steps Indicator
   ============================================================ */
.orphit-booking-steps-indicator {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 26px 40px;
    background: var(--rc-surface);
    border-bottom: 1px solid var(--rc-surface2);
}

.orphit-booking-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    cursor: default;
}

.orphit-booking-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 17px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: var(--rc-surface2);
    z-index: 1;
}

.orphit-booking-step.active:not(:last-child)::after,
.orphit-booking-step.completed:not(:last-child)::after {
    background: var(--rc-primary) !important;
}

.orphit-booking-step-number {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--rc-surface2);
    color: var(--rc-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.orphit-booking-step.active .orphit-booking-step-number {
    background: linear-gradient(135deg, var(--rc-theme) 0%, color-mix(in srgb, var(--rc-theme) 78%, #0b0f10) 100%) !important;
    color: var(--rc-bg);
    box-shadow: 0 0 0 4px var(--rc-ring);
}

.orphit-booking-step.completed .orphit-booking-step-number {
    background: linear-gradient(135deg, var(--rc-theme) 0%, color-mix(in srgb, var(--rc-theme) 78%, #0b0f10) 100%) !important;
    color: var(--rc-bg);
}

.orphit-booking-step-label {
    font-size: 12px;
    color: var(--rc-muted);
    text-align: center;
    font-weight: 500;
    line-height: 1.3;
}

.orphit-booking-step.active .orphit-booking-step-label {
    color: var(--rc-primary) !important;
    font-weight: 600;
}

/* ============================================================
   Form Steps
   ============================================================ */
.orphit-booking-form {
    position: relative;
}

.orphit-booking-form-step {
    display: none;
    padding: 40px;
    min-height: 420px;
}

.orphit-booking-form-step.active {
    display: block;
}

.orphit-booking-step-content {
    margin-bottom: 44px;
    /* Fallback für scrollIntoView: fixed Header-Stack (Topbar 37 px + Header
       100 px ≈ 136 px) + 16 px Luft – der Step-Inhalt darf nie unter der
       Kopfleiste verschwinden. (updateStepDisplay scrollt per scrollTo mit
       Live-Header-Offset; diese Regel deckt übrige scrollIntoView-Aufrufe.) */
    scroll-margin-top: 152px;
}

.orphit-booking-step-content h4 {
    color: var(--rc-text);
    font-family: var(--rc-font-display);
    font-size: clamp(20px, 2.2vw, 25px);
    font-weight: 700;
    letter-spacing: -0.005em;
    margin: 0 0 26px 0;
    text-align: center;
}

/* ============================================================
   Service Selection
   ============================================================ */
.orphit-booking-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.orphit-booking-service-option {
    cursor: pointer;
    display: block;
}

.orphit-booking-service-option input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
}

.orphit-booking-service-option input[type="radio"]:focus-visible + .orphit-booking-service-card {
    outline: 2px solid var(--rc-cta);
    outline-offset: 2px;
}

.orphit-booking-service-card {
    background: var(--rc-surface);
    border: 1px solid color-mix(in srgb, var(--rc-primary) 22%, var(--rc-surface2));
    border-radius: var(--rc-radius-lg);
    box-sizing: border-box;
    padding: 26px 18px;
    text-align: center;
    transition: background var(--duration-base, 250ms) var(--ease-out, ease),
        border-color var(--duration-base, 250ms) var(--ease-out, ease),
        box-shadow var(--duration-base, 250ms) var(--ease-out, ease),
        transform var(--duration-base, 250ms) var(--ease-out, ease);
    position: relative;
    min-height: 128px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.orphit-booking-service-option:hover .orphit-booking-service-card {
    background: color-mix(in srgb, var(--rc-primary) 7%, var(--rc-surface));
    border-color: color-mix(in srgb, var(--rc-primary) 60%, transparent);
    transform: translateY(-2px);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--rc-primary) 12%, transparent),
        0 12px 28px -12px color-mix(in srgb, var(--rc-cta) 40%, transparent);
}

/* Mehrfachauswahl: gewählter Termintyp bekommt Tint + Ring (Single = kein Auswahl-Look). */
.orphit-booking-service-grid:not(.is-single) .orphit-booking-service-option input:checked + .orphit-booking-service-card {
    background: color-mix(in srgb, var(--rc-primary) 9%, var(--rc-surface));
    border-color: color-mix(in srgb, var(--rc-primary) 55%, transparent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--rc-primary) 45%, transparent);
}

/* Genau ein Termintyp = keine Auswahl noetig: ruhiger Block mit Rahmen.
   Hover-/Scroll-Glow bleiben, es gibt aber keinen „ausgewaehlt"-Zustand. */
.orphit-booking-service-grid.is-single .orphit-booking-service-option {
    cursor: pointer;
}

/* Markiert (vorausgewaehlt bzw. geklickt): Teal-Rahmen bleibt etwas dicker,
   damit der Zustand als "markiert" erkennbar bleibt. */
.orphit-booking-service-grid.is-single .orphit-booking-service-option.is-selected .orphit-booking-service-card {
    border-width: 2px;
    border-color: var(--rc-primary);
    background: color-mix(in srgb, var(--rc-primary) 8%, var(--rc-surface));
}

.orphit-booking-service-grid.is-single .orphit-booking-service-option input[type="radio"]:focus-visible + .orphit-booking-service-card {
    outline: none;
}

/* Kurzer Glow-Puls (Rahmen leuchtet auf) – getriggert von frontend.js
   beim Sichtkontakt (IntersectionObserver) und bei Hover. */
@keyframes orphit-booking-card-glow {
    0% {
        border-color: color-mix(in srgb, var(--rc-primary) 22%, var(--rc-surface2));
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--rc-accent) 0%, transparent);
    }

    45% {
        border-color: var(--rc-primary);
        box-shadow: 0 0 0 5px color-mix(in srgb, var(--rc-accent) 22%, transparent),
            0 10px 26px -10px color-mix(in srgb, var(--rc-primary) 45%, transparent);
    }

    100% {
        border-color: color-mix(in srgb, var(--rc-primary) 22%, var(--rc-surface2));
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--rc-accent) 0%, transparent);
    }
}

.orphit-booking-service-card.is-glow {
    animation: orphit-booking-card-glow 1.4s var(--ease-out, ease) 1;
}

.orphit-booking-service-icon {
    font-size: 34px;
    color: var(--rc-primary) !important;
    margin-bottom: 10px;
    line-height: 1;
}

.orphit-booking-service-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--rc-text);
    margin-bottom: 4px;
}

.orphit-booking-service-duration {
    font-size: 13px;
    color: var(--rc-muted);
    font-weight: 500;
}

/* FOMO-Message – nur im ausgewählten Service-Box sichtbar, ohne Box */
.orphit-booking-service-option .orphit-booking-fomo {
    display: none;
    margin-top: 8px;
    color: #F59962;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.orphit-booking-service-option.is-selected .orphit-booking-fomo {
    display: block;
}

/* ============================================================
   Date & Time Selection
   ============================================================ */
.orphit-booking-datetime-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
    margin-top: 20px;
}

@media (min-width: 700px) {
    .orphit-booking-datetime-container {
        grid-template-columns: 1fr 1.5fr;
    }
}

.orphit-booking-date-selection,
.orphit-booking-time-selection {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.orphit-booking-date-selection label,
.orphit-booking-time-selection label {
    font-weight: 600;
    font-size: 14px;
    color: var(--rc-text);
    margin: 0;
    padding: 0;
}

.orphit-booking-date-selection select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--rc-surface2);
    border-radius: 10px;
    font-size: 15px;
    background: var(--rc-surface);
    color: var(--rc-text);
    transition: all 0.22s ease;
    height: 48px;
    box-sizing: border-box;
}

.orphit-booking-date-selection select:focus {
    outline: none;
    border-color: var(--rc-primary);
    box-shadow: 0 0 0 3px var(--rc-ring);
}

/* Always Visible Calendar Picker */
.orphit-booking-calendar-picker.always-visible {
    position: static;
    display: block !important;
    width: 100%;
    box-shadow: none;
    border: 1px solid var(--rc-surface2);
    border-radius: 14px;
    overflow: hidden;
    background: var(--rc-surface);
    animation: orphit_bookingFadeIn 0.35s ease;
}

@keyframes orphit_bookingFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Calendar Picker Dropdown (legacy mode) */
.orphit-booking-calendar-picker {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--rc-surface);
    border: 1px solid var(--rc-surface2);
    border-radius: 14px;
    box-shadow: 0 10px 36px rgba(37, 49, 56, 0.16);
    z-index: 1000;
    display: none;
    overflow: hidden;
    max-height: 500px;
}

.orphit-booking-calendar-picker.active {
    display: block;
    animation: orphit_bookingSlideDown 0.25s ease;
}

@keyframes orphit_bookingSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Calendar Header */
.orphit-booking-calendar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    height: 52px;
    background: var(--rc-primary) !important;
    color: #fff;
    position: relative;
}

.orphit-booking-calendar-nav {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    padding: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

.orphit-booking-prev-month {
    left: 14px;
}

.orphit-booking-next-month {
    right: 14px;
}

.orphit-booking-calendar-nav:hover {
    background: rgba(255, 255, 255, 0.18);
}

.orphit-booking-calendar-month {
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    line-height: 1;
    position: relative;
    top: 0;
    margin: 0;
    padding: 0;
}

.orphit-booking-calendar-nav-icon {
    display: block;
    pointer-events: none;
}

.orphit-booking-calendar-nav.hidden {
    display: none;
}

/* Calendar Grid */
.orphit-booking-calendar-grid {
    padding: 16px;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    box-sizing: border-box;
    background: var(--rc-surface);
}

.orphit-booking-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.orphit-booking-calendar-weekday {
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    color: var(--rc-muted);
    padding: 8px 4px;
}

.orphit-booking-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    flex: 1;
    min-height: 350px;
    margin-bottom: -20px;
}

.orphit-booking-calendar-day {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    color: var(--rc-text);
}

.orphit-booking-calendar-day:hover {
    background: var(--rc-ring);
    color: var(--rc-primary);
}

.orphit-booking-calendar-day.available {
    color: var(--rc-text);
}

.orphit-booking-calendar-day.available:hover {
    background: var(--rc-primary) !important;
    color: #fff !important;
    transform: scale(1.04);
}

.orphit-booking-calendar-day.selected {
    background: var(--rc-primary) !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 2px 10px var(--rc-ring);
}

.orphit-booking-calendar-day.unavailable {
    color: var(--rc-surface2);
    cursor: not-allowed;
    text-decoration: line-through;
}

.orphit-booking-calendar-day.unavailable:hover {
    background: transparent;
    color: var(--rc-surface2);
    transform: none;
}

.orphit-booking-calendar-day.today {
    border: 2px solid var(--rc-primary) !important;
    color: var(--rc-primary) !important;
    font-weight: 600;
}

.orphit-booking-calendar-day.today:hover {
    background: var(--rc-primary);
    color: #fff !important;
}

.orphit-booking-calendar-day.other-month {
    color: var(--rc-surface2);
}

/* Date Range Display (unused, kept hidden) */
.orphit-booking-date-range-info {
    display: none;
}

/* Time Slots */
.orphit-booking-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 10px;
    align-content: start;
    margin: 0;
}

/* Stabile Höhe: reserviert Platz, damit das Nachladen/Wechseln der Zeit-Slots
   per AJAX keinen Layout-Shift (Jump) verursacht – Formular bleibt ruhig.
   120px decken Loading, 0–3 Slots und die kompakte „Keine Slots"-Meldung ab. */
#time-slots-container {
    min-height: 120px;
}

.orphit-booking-time-slot {
    background: var(--rc-surface);
    border: 1.5px solid var(--rc-surface2);
    border-radius: 999px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.22s ease;
    color: var(--rc-text);
    height: 46px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orphit-booking-time-slot:hover {
    border-color: var(--rc-primary);
    background: color-mix(in srgb, var(--rc-primary) 6%, var(--rc-surface));
    transform: translateY(-1px);
}

.orphit-booking-time-slot.selected {
    background: var(--rc-primary) !important;
    border-color: var(--rc-primary) !important;
    color: #fff !important;
}

.orphit-booking-time-slot.unavailable {
    background: var(--rc-surface);
    border-color: var(--rc-surface2);
    color: var(--rc-muted);
    cursor: not-allowed;
    opacity: 0.55;
}

.orphit-booking-no-date-selected {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--rc-muted);
    padding: 14px 10px;
    font-size: 13px;
}

.orphit-booking-no-date-selected .orphit-booking-icon {
    font-size: 20px;
    margin: 0 auto 6px;
    display: block;
    color: var(--rc-primary);
}

.orphit-booking-loading-slots {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--rc-muted);
    padding: 14px 10px;
    font-size: 13px;
}

/* ============================================================
   Personal Information
   ============================================================ */
.orphit-booking-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.orphit-booking-form-group {
    display: flex;
    flex-direction: column;
}

.orphit-booking-form-group-full {
    grid-column: 1 / -1;
}

.orphit-booking-form-group label {
    font-weight: 600;
    color: var(--rc-text);
    margin-bottom: 8px;
    font-size: 14px;
}

.orphit-booking-form-group .required {
    color: var(--rc-accent);
}

.orphit-booking-form-group input,
.orphit-booking-form-group textarea {
    padding: 13px 16px;
    border: 1.5px solid var(--rc-surface2);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.22s ease;
    font-family: inherit;
    background: var(--rc-surface);
    color: var(--rc-text);
    width: 100%;
    box-sizing: border-box;
}

.orphit-booking-form-group input::placeholder,
.orphit-booking-form-group textarea::placeholder {
    color: var(--rc-muted);
    opacity: 0.8;
}

.orphit-booking-form-group input:focus,
.orphit-booking-form-group textarea:focus {
    outline: none;
    border-color: var(--rc-primary);
    box-shadow: 0 0 0 3px var(--rc-ring);
}

.orphit-booking-form-group textarea {
    resize: vertical;
    min-height: 110px;
}

/* ============================================================
   Confirmation
   ============================================================ */
.orphit-booking-confirmation-details {
    display: grid;
    gap: 25px;
}

.orphit-booking-confirmation-card {
    background: var(--rc-surface);
    border: 1px solid var(--rc-surface2);
    border-radius: 14px;
    padding: 25px;
}

.orphit-booking-confirmation-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--rc-surface2);
}

.orphit-booking-confirmation-header .orphit-booking-icon {
    font-size: 20px;
    color: var(--rc-primary);
}

.orphit-booking-confirmation-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--rc-text);
}

.orphit-booking-confirmation-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--rc-surface2);
}

.orphit-booking-confirmation-row:last-child {
    border-bottom: none;
}

.orphit-booking-confirmation-row strong {
    color: var(--rc-text);
    font-weight: 600;
}

.orphit-booking-confirmation-row span {
    color: var(--rc-muted);
    text-align: right;
}

/* ============================================================
   Navigation Buttons
   ============================================================ */
.orphit-booking-step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding-top: 22px;
    border-top: 1px solid var(--rc-surface2);
}

#step-1 .orphit-booking-step-navigation {
    justify-content: flex-end;
}

.orphit-booking-btn {
    min-height: 48px;
    padding: 0 var(--space-6, 1.5rem);
    border: 1.5px solid transparent;
    border-radius: var(--rc-radius-full);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--duration-fast, 150ms) var(--ease-out, ease),
        box-shadow var(--duration-base, 250ms) var(--ease-out, ease),
        background var(--duration-fast, 150ms) var(--ease-out, ease),
        color var(--duration-fast, 150ms) var(--ease-out, ease),
        border-color var(--duration-fast, 150ms) var(--ease-out, ease);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    min-width: 140px;
    font-family: var(--rc-font-body);
    line-height: 1;
}

.orphit-booking-btn-primary {
    background: linear-gradient(135deg, var(--rc-theme) 0%, color-mix(in srgb, var(--rc-theme) 78%, #0b0f10) 100%) !important;
    border-color: transparent !important;
    color: var(--rc-bg) !important;
}

.orphit-booking-btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--rc-accent) 16%, transparent),
        0 10px 28px -6px color-mix(in srgb, var(--rc-accent) 38%, transparent),
        0 4px 14px -6px color-mix(in srgb, var(--rc-theme) 42%, transparent);
}

.orphit-booking-btn-secondary {
    background: transparent;
    border-color: var(--rc-cta);
    color: var(--rc-cta);
}

.orphit-booking-btn-secondary:hover {
    background: var(--rc-cta);
    border-color: var(--rc-cta);
    color: var(--rc-bg);
    transform: translateY(-1px);
}

.orphit-booking-btn:disabled {
    background: var(--rc-surface2) !important;
    border-color: var(--rc-surface2) !important;
    color: var(--rc-muted) !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================================================
   Success State
   ============================================================ */
.orphit-booking-success-content {
    text-align: center;
    padding: 48px 20px;
}

.orphit-booking-success-icon {
    font-size: 64px;
    color: var(--rc-primary) !important;
    margin-bottom: 18px;
}

.orphit-booking-success-content h4 {
    color: var(--rc-primary) !important;
    font-family: var(--rc-font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 14px;
}

.orphit-booking-success-content p {
    color: var(--rc-muted);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
}

.orphit-booking-success-content .orphit-booking-btn {
    margin: 0 auto;
    display: inline-flex;
}

/* ============================================================
   Loading Overlay
   ============================================================ */
.orphit-booking-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: color-mix(in srgb, var(--rc-surface) 94%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.orphit-booking-loading-spinner {
    text-align: center;
}

.orphit-booking-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid var(--rc-surface2);
    border-top: 4px solid var(--rc-primary);
    border-radius: 50%;
    animation: orphit_bookingSpin 1s linear infinite;
    margin: 0 auto 18px;
}

@keyframes orphit_bookingSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.orphit-booking-loading-spinner p {
    color: var(--rc-muted);
    font-weight: 500;
    margin: 0;
}

/* ============================================================
   Branding
   ============================================================ */
.orphit-booking-branding {
    text-align: center;
    padding: 20px;
    background: var(--rc-bg);
    border-top: 1px solid var(--rc-surface2);
    margin-top: 0;
}

.orphit-booking-branding p {
    margin: 0;
    font-size: 13px;
    color: var(--rc-muted);
    line-height: 1.4;
}

.orphit-booking-branding-link {
    color: var(--rc-link) !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
}

.orphit-booking-branding-link:hover {
    color: var(--rc-primary) !important;
    text-decoration: none;
}

.orphit-booking-branding-link:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--rc-primary);
    border-radius: 1px;
}

/* ============================================================
   Responsive Design
   ============================================================ */
@media (max-width: 768px) {
    .orphit-booking-booking-form {
        margin: 0;
        border-radius: 12px;
    }

    .orphit-booking-form-header {
        padding: 28px 18px 22px;
    }

    .orphit-booking-form-header h3 {
        font-size: 18px;
    }

    .orphit-booking-steps-indicator {
        padding: 18px 12px;
    }

    .orphit-booking-step-number {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .orphit-booking-step-label {
        font-size: 10px;
    }

    .orphit-booking-form-step {
        padding: 22px 16px;
        min-height: 0;
    }

    .orphit-booking-service-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .orphit-booking-service-card {
        flex-direction: row;
        text-align: left;
        min-height: 0;
        padding: 16px;
        justify-content: flex-start;
        align-items: center;
    }

    .orphit-booking-service-icon {
        font-size: 26px;
        margin: 0 14px 0 0;
        flex-shrink: 0;
    }

    .orphit-booking-service-content {
        flex: 1;
    }

    .orphit-booking-service-name {
        font-size: 15px;
        margin-bottom: 2px;
    }

    .orphit-booking-service-duration {
        font-size: 12px;
    }

    .orphit-booking-calendar-picker.always-visible {
        border-radius: 10px;
    }

    .orphit-booking-calendar-grid {
        padding: 12px;
        min-height: 320px;
    }

    .orphit-booking-calendar-days {
        min-height: 280px;
    }

    .orphit-booking-calendar-day {
        height: 46px;
        font-size: 14px;
    }

    .orphit-booking-calendar-month {
        font-size: 15px;
    }

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

    .orphit-booking-time-slots {
        grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    }

    .orphit-booking-step-navigation {
        flex-direction: column;
        gap: 12px;
    }

    .orphit-booking-btn {
        width: 100%;
    }

    .orphit-booking-confirmation-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .orphit-booking-confirmation-row span {
        text-align: left;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .orphit-booking-service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .orphit-booking-booking-form {
        margin: 30px auto;
    }

    .orphit-booking-form-step {
        padding: 44px 56px;
    }

    .orphit-booking-form-header {
        padding: 42px 56px 30px;
    }

    .orphit-booking-steps-indicator {
        padding: 28px 56px;
    }
}

@media (max-width: 480px) {
    .orphit-booking-steps-indicator {
        padding: 16px 8px;
    }

    .orphit-booking-step-number {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .orphit-booking-step-label {
        font-size: 11px;
    }

    .orphit-booking-form-step {
        padding: 20px 14px;
    }

    .orphit-booking-form-grid {
        gap: 14px;
    }

    .orphit-booking-form-group label {
        margin-bottom: 6px;
        font-size: 13px;
    }

    .orphit-booking-form-group input,
    .orphit-booking-form-group textarea {
        padding: 12px 14px;
    }

    .orphit-booking-step-content {
        margin-bottom: 28px;
    }

    .orphit-booking-step-content h4 {
        margin-bottom: 20px;
    }

    .orphit-booking-service-card {
        padding: 14px;
    }

    .orphit-booking-confirmation-card {
        padding: 20px;
    }

    .orphit-booking-step-navigation {
        gap: 8px;
    }

    /* Weitere Kompaktierung – senkt die Formular-Höhe auf Mobile deutlich
       (Header, Steps-Indicator, Kalender, Zeit-Slots, Navigation, Buttons).
       Messung (390×844): Formular-Höhe Schritt 2 = ~865 px. */
    .orphit-booking-form-header {
        padding: 18px 14px 12px;
    }

    .orphit-booking-form-header h3 {
        margin: 0 0 12px 0;
    }

    .orphit-booking-steps-indicator {
        padding: 10px 6px;
    }

    .orphit-booking-step-number {
        margin-bottom: 3px;
    }

    .orphit-booking-step-content {
        margin-bottom: 16px;
    }

    .orphit-booking-step-content h4 {
        margin-bottom: 10px;
    }

    .orphit-booking-time-slots {
        gap: 6px;
    }

    .orphit-booking-time-slot {
        height: 34px;
        padding: 6px 6px;
        font-size: 13px;
    }

    .orphit-booking-step-navigation {
        padding-top: 10px;
    }

    .orphit-booking-btn {
        padding: 12px 20px;
    }

    .orphit-booking-calendar-grid {
        padding: 6px;
        min-height: 210px;
    }

    .orphit-booking-calendar-days {
        gap: 2px;
        min-height: 195px;
    }

    .orphit-booking-calendar-day {
        height: 32px;
        font-size: 13px;
        border-radius: 8px;
    }

    .orphit-booking-calendar-weekday {
        padding: 3px 2px;
        font-size: 11px;
    }

    .orphit-booking-calendar-header {
        height: 42px;
    }
}

/* ============================================================
   Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .orphit-booking-booking-form *,
    .orphit-booking-booking-form *::before,
    .orphit-booking-booking-form *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
