:root {
    --booking-primary: #2563eb;
    --booking-primary-dark: #1d4ed8;
    --booking-accent: #0f766e;
    --booking-success: #059669;
    --booking-warning: #d97706;
    --booking-danger: #dc2626;
    --booking-text: #0f172a;
    --booking-muted: #64748b;
    --booking-border: #e2e8f0;
    --booking-surface: #ffffff;
    --booking-background: #f8fafc;
    --booking-radius-sm: 10px;
    --booking-radius: 16px;
    --booking-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

html { color-scheme: light; scroll-behavior: smooth; }
body { color: var(--booking-text); background: var(--booking-background); }
a, button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.28);
    outline-offset: 3px;
}

.step-progress { border-bottom-color: var(--booking-border) !important; box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05) !important; }
.step-progress-inner { max-width: 900px !important; }
.step-item.active { color: var(--booking-primary) !important; }
.step-item.active .step-number { background: var(--booking-primary) !important; }
.step-item.completed { color: var(--booking-success) !important; }
.step-item.completed .step-number { background: var(--booking-success) !important; }
.step-connector-done, .step-item.completed + .step-connector { background: var(--booking-success) !important; }

.btn, .btn-next, .btn-service, .alert-btn-primary, .ctrl-btn-primary {
    min-height: 48px;
    border-radius: 12px !important;
}
.btn-primary, .btn-next {
    background: var(--booking-primary) !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22) !important;
}
.btn-primary:hover, .btn-next:hover { background: var(--booking-primary-dark) !important; }

input:not([type="radio"]):not([type="checkbox"]), select, textarea {
    border-color: var(--booking-border);
}
input:not([type="radio"]):not([type="checkbox"]):focus, select:focus, textarea:focus {
    border-color: var(--booking-primary) !important;
}

.panel, .service-card, .center-card .card-inner, .laboratory-info, .summary-card, .summary-exams {
    border-color: var(--booking-border) !important;
    box-shadow: var(--booking-shadow);
}

.alert-footer-column { flex-direction: column; }
.butterfly-notice-body { text-align: left !important; }
.butterfly-notice-body ul { padding-left: 20px; margin: 12px 0 18px; color: #374151; font-size: 15px; line-height: 1.7; }
.estimated-total { margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--booking-border); color: var(--booking-text); font-weight: 700; }
.flow-alert { margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.flow-alert-error { color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; }
.payment-status-banner { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; padding: 16px 18px; border-radius: 12px; }
.payment-status-cancelled { color: #92400e; background: #fffbeb; border: 1px solid #fcd34d; }
.payment-status-banner span { color: #78350f; font-size: 0.9rem; }
.toggle-switch input:focus-visible + .toggle-slider { outline: 3px solid rgba(37, 99, 235, 0.32); outline-offset: 3px; }

@media (max-width: 720px) {
    .step-progress { padding: 10px 12px !important; }
    .step-progress-inner { justify-content: stretch !important; gap: 4px !important; }
    .step-item { flex: 1; justify-content: center; min-width: 0; }
    .step-item > span:last-child { display: none; }
    .step-number { width: 28px !important; height: 28px !important; flex: 0 0 28px; }
    .step-connector { width: auto !important; flex: 1; min-width: 8px; }
    .page-hero h1 { font-size: clamp(1.65rem, 8vw, 2.15rem); }
    .actions { flex-direction: column; }
    .actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
