* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1f2937;
    background:
        radial-gradient(circle at top left, rgba(25, 118, 210, 0.16), transparent 32%),
        linear-gradient(135deg, #f7f9fc 0%, #eef3f8 100%);
}

.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
}

.booking-card {
    width: 100%;
    max-width: 860px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.75);
    border-radius: 32px;
    padding: 46px;
    box-shadow: 0 24px 70px rgba(31, 41, 55, 0.14);
    overflow: hidden;
}

.logo {
    display: block;
    width: min(340px, 86%);
    height: auto;
    margin: 0 auto 34px auto;
}

.eyebrow,
.step-label {
    text-align: center;
    color: #1976d2;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

h1,
h2 {
    margin: 0;
    text-align: center;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.03em;
}

.subtitle {
    max-width: 620px;
    margin: 16px auto 38px auto;
    text-align: center;
    color: #667085;
    font-size: 19px;
    line-height: 1.5;
}

.step-subtitle {
    margin: 12px 0 30px 0;
    text-align: center;
    color: #1976d2;
    font-size: 22px;
    font-weight: 700;
}

.progress {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    margin: 0 auto 28px auto;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #1976d2;
    border-radius: 999px;
}

.progress-fill.step-2 {
    width: 50%;
}

.progress-fill.step-3 {
    width: 75%;
}

.progress-fill.step-4 {
    width: 100%;
}

.options {
    display: grid;
    gap: 18px;
}

.option-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 22px;
    text-align: left;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    background: white;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(31, 41, 55, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.option-card:hover {
    transform: translateY(-3px);
    border-color: #1976d2;
    box-shadow: 0 18px 42px rgba(31, 41, 55, 0.13);
}

.icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #eef6ff;
    font-size: 30px;
}

.option-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.option-content strong {
    font-size: 23px;
}

.option-content small {
    color: #667085;
    font-size: 16px;
    line-height: 1.4;
}

.wizard-step {
    display: none;
    opacity: 0;
    transform: translateX(24px);
}

.wizard-step.active {
    display: block;
    animation: slideIn 0.32s ease forwards;
}

.wizard-step.leaving-left {
    display: block;
    animation: slideOutLeft 0.24s ease forwards;
}

.wizard-step.leaving-right {
    display: block;
    animation: slideOutRight 0.24s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-24px);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(24px);
    }
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 26px 0 18px 0;
}

.month-title {
    flex: 1;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
}

.month-button {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid #d0d5dd;
    background: white;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.calendar-weekdays {
    margin-bottom: 12px;
    color: #667085;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.calendar-day {
    min-height: 76px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: white;
    padding: 12px;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 6px 16px rgba(31, 41, 55, 0.05);
}

.calendar-day:hover {
    border-color: #1976d2;
}

.calendar-day.selected {
    border-color: #1976d2;
    box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.12);
}

.calendar-day.disabled {
    cursor: not-allowed;
    opacity: 0.45;
    background: #f3f4f6;
}

.day-number {
    display: block;
    font-size: 20px;
    font-weight: 800;
}

.day-count {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
}

.day-green {
    border-color: #12b76a;
}

.day-green .day-count {
    color: #027a48;
}

.day-orange {
    border-color: #f79009;
}

.day-orange .day-count {
    color: #b54708;
}

.day-red {
    border-color: #f04438;
    background: #fff8f7;
}

.day-red .day-count {
    color: #b42318;
}

.slot-panel {
    margin-top: 28px;
    padding: 22px;
    border-radius: 24px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.slot-panel h3 {
    margin: 0 0 20px 0;
    text-align: center;
    font-size: 22px;
}

.slot-section {
    margin-top: 18px;
}

.slot-section h4 {
    margin: 0 0 10px 0;
    color: #667085;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.slot-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.slot-button {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #d0d5dd;
    background: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.slot-button:hover {
    border-color: #1976d2;
    box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.10);
}

.reservation-box,
.summary-box {
    margin: 26px 0;
    padding: 20px;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    display: grid;
    gap: 8px;
    text-align: center;
}

.reservation-box strong {
    font-size: 18px;
}

.reservation-box span {
    color: #1976d2;
    font-size: 21px;
    font-weight: 800;
}

.reservation-box small {
    color: #b54708;
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.input-field {
    width: 100%;
    padding: 18px 20px;
    font-size: 18px;
    border: 1px solid #d0d5dd;
    border-radius: 16px;
    background: white;
}

.input-field:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.12);
}

.full-width {
    grid-column: span 2;
}

.form-error {
    margin-top: 16px;
    color: #b42318;
    font-size: 16px;
    text-align: center;
    min-height: 22px;
}

.input-field.invalid {
    border-color: #d92d20;
    box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.10);
}

.button-row {
    display: flex;
    gap: 14px;
    margin-top: 26px;
}

.continue-button,
.back-button {
    padding: 18px 24px;
    border-radius: 16px;
    font-size: 18px;
    cursor: pointer;
}

.continue-button {
    flex: 1;
    border: none;
    background: #1976d2;
    color: white;
}

.back-button {
    border: 1px solid #d0d5dd;
    background: white;
    color: #344054;
}

.hidden {
    display: none;
}

@media (max-width: 640px) {
    .page {
        padding: 20px 12px;
        align-items: flex-start;
    }

    .booking-card {
        padding: 28px 18px;
        border-radius: 24px;
    }

    .logo {
        width: min(300px, 88%);
        margin-bottom: 28px;
    }

    .option-card {
        padding: 18px;
        gap: 16px;
    }

    .icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        font-size: 25px;
    }

    .option-content strong {
        font-size: 20px;
    }

    .calendar-weekdays,
    .calendar-grid {
        gap: 8px;
    }

    .calendar-day {
        min-height: 68px;
        padding: 10px;
    }

    .slot-list,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: span 1;
    }

    .button-row {
        flex-direction: column-reverse;
    }
}
.countdown-warning {
    color: #b42318 !important;
}
.loading-box {
    width: 100%;
    padding: 48px 24px;
    margin-top: 24px;
    border-radius: 24px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;

    text-align: center;
}

.loading-box strong {
    font-size: 22px;
    color: #1f2937;
}

.loading-box small {
    color: #667085;
    font-size: 16px;
}

.spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #dbe5f0;
    border-top: 4px solid #1976d2;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.loading-box {
    grid-column: 1 / -1;
}
/* --------------------------------------------------
   SUCCESS SCREEN
-------------------------------------------------- */

.booking-success {
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 24px;
    padding: 4px 0 10px;
}

.booking-success h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(36px, 4.5vw, 54px);
    line-height: 1.05;
}

.success-intro {
    margin: 0;
    max-width: 760px;
    color: #667085;
    font-size: 20px;
    line-height: 1.5;
}

.success-appointment {
    width: 100%;
    max-width: 620px;
    padding: 22px 26px;
    border-radius: 24px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.success-appointment-label {
    color: #667085;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 8px;
}

.success-appointment-date {
    color: #1976d2;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 850;
    line-height: 1.25;
}

.success-mail-hint {
    margin: 0;
    color: #475467;
    font-size: 18px;
    line-height: 1.45;
}

.anamnesis-teaser.compact {
    width: 100%;
    max-width: 720px;
    text-align: left;
    padding: 26px 30px;
    border-radius: 24px;
    background: #eef6ff;
    border: 1px solid #d6eaff;
}

.anamnesis-teaser.compact h2 {
    margin: 0 0 10px;
    text-align: left;
    font-size: 30px;
}

.anamnesis-teaser.compact p {
    margin: 0 0 16px;
    color: #475467;
    font-size: 18px;
    line-height: 1.45;
}

.anamnesis-teaser.compact ul {
    margin: 0;
    padding-left: 22px;
    color: #475467;
    font-size: 17px;
    line-height: 1.6;
}

.success-actions {
    width: 100%;
    max-width: 560px;
    display: grid;
    gap: 16px;
}

.later-link {
    border: none;
    background: transparent;
    color: #1976d2;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    padding: 8px;
}

.later-link:hover {
    text-decoration: underline;
}

/* --------------------------------------------------
   CALENDAR EXTRAS
-------------------------------------------------- */

.calendar-spacer {
    min-height: 76px;
}

.calendar-day {
    position: relative;
}

.today-badge {
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #027a48;
    font-size: 12px;
    font-weight: 800;
}

.month-button.disabled,
.month-button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.checkbox-row {
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    font-size: 16px;
    line-height: 1.5;

    color: #475467;
}

.checkbox-label input {
    margin-top: 3px;
    transform: scale(1.2);
}
.checkbox-label input:disabled {
    cursor: not-allowed;
}

.checkbox-label:has(input:disabled) {
    opacity: 0.55;
}
