/* ============================================================================
   APPOINTMENT WIZARD - FULL SCREEN MODERN DESIGN
   ============================================================================
   Version: 2.0.0
   Date: 2026-02-17
   Author: AI MINDLOOP SRL
   
   Full-screen takeover wizard with:
   - Vertical stepper (desktop) / Horizontal stepper (mobile)
   - Toggle header for patient-first vs service-first flow
   - Slide transitions between steps
   - Centered content with generous whitespace
   ============================================================================ */

/* ============================================
   FULL SCREEN OVERLAY
   ============================================ */
.wz-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    animation: wzFadeIn 0.25s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

/* ============================================
   HEADER
   ============================================ */
.wz-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.wz-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wz-header-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wz-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wz-mobile-flow-btn {
    display: none;
}

.wz-header-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #64748b;
    transition: all 0.2s;
}

.wz-header-close:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

/* Flow toggle in header */
.wz-flow-toggle {
    display: flex;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
}

.wz-flow-btn {
    padding: 6px 14px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #64748b;
    background: transparent;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.wz-flow-btn.active {
    background: white;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.wz-flow-btn:hover:not(.active) {
    color: #475569;
    background: rgba(255,255,255,0.5);
}

/* ============================================
   BODY LAYOUT: SIDEBAR + CONTENT
   ============================================ */
.wz-body {
    flex: 1;
    display: flex;
    min-height: 0;
    overflow: hidden;
}

/* ============================================
   SIDEBAR STEPPER (desktop)
   ============================================ */
.wz-sidebar {
    width: 260px;
    background: white;
    border-right: 1px solid #e2e8f0;
    padding: 32px 20px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.wz-sidebar-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.wz-sidebar-step:hover {
    background: #f8fafc;
}

.wz-sidebar-step.active {
    background: #eff6ff;
}

/* Vertical line connecting steps */
.wz-sidebar-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 30px;
    top: 48px;
    width: 2px;
    height: calc(100% - 20px);
    background: #e2e8f0;
    border-radius: 1px;
}

.wz-sidebar-step.completed:not(:last-child)::after {
    background: #10b981;
}

.wz-sidebar-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.wz-sidebar-step.active .wz-sidebar-icon {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.wz-sidebar-step.completed .wz-sidebar-icon {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.wz-sidebar-text {
    display: flex;
    flex-direction: column;
    padding-top: 2px;
}

.wz-sidebar-label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.wz-sidebar-step.active .wz-sidebar-label {
    color: #1d4ed8;
}

.wz-sidebar-step.completed .wz-sidebar-label {
    color: #059669;
}

.wz-sidebar-desc {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.wz-sidebar-step.active .wz-sidebar-desc {
    color: #60a5fa;
}

.wz-sidebar-step.completed .wz-sidebar-desc {
    color: #6ee7b7;
}

/* ============================================
   MOBILE STEPPER (horizontal)
   ============================================ */
.wz-mobile-stepper {
    display: none;
    padding: 16px 20px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.wz-mobile-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.wz-mobile-step {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wz-mobile-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.3s;
    cursor: pointer;
}

.wz-mobile-step.active .wz-mobile-dot {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.35);
}

.wz-mobile-step.completed .wz-mobile-dot {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.wz-mobile-line {
    width: 28px;
    height: 2px;
    background: #e2e8f0;
    border-radius: 1px;
}

.wz-mobile-step.completed + .wz-mobile-line,
.wz-mobile-line.done {
    background: #10b981;
}

.wz-mobile-step-label {
    display: none;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.wz-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.wz-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 28px 32px;
    -webkit-overflow-scrolling: touch;
}

.wz-panel {
    max-width: 100%;
    width: 100%;
    animation: wzSlideIn 0.3s ease;
}

@keyframes wzSlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ============================================
   PRESELECTION BANNER
   ============================================ */
.wz-preselection {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #93c5fd;
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.wz-preselection-icon {
    font-size: 28px;
}

.wz-preselection-info {
    flex: 1;
}

.wz-preselection-title {
    font-weight: 600;
    color: #1e40af;
    font-size: 14px;
}

.wz-preselection-detail {
    color: #3b82f6;
    font-size: 13px;
}

.wz-preselection-close {
    background: none;
    border: none;
    color: #93c5fd;
    cursor: pointer;
    font-size: 20px;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s;
}

.wz-preselection-close:hover {
    background: rgba(59,130,246,0.1);
    color: #3b82f6;
}

/* ============================================
   STEP TITLE
   ============================================ */
.wz-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.wz-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 28px;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.wz-field {
    margin-bottom: 20px;
}

.wz-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.wz-input {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s;
    background: white;
    color: #1e293b;
    box-sizing: border-box;
}

.wz-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.wz-input::placeholder {
    color: #94a3b8;
}

.wz-textarea {
    resize: vertical;
    min-height: 72px;
    font-family: inherit;
}

.wz-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8.825L.175 3 1.05 2.125 6 7.075 10.95 2.125 11.825 3z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.wz-grid {
    display: grid;
    gap: 14px;
}

.wz-grid-2 { grid-template-columns: repeat(2, 1fr); }
.wz-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ============================================
   SEARCH
   ============================================ */
.wz-search-wrap {
    position: relative;
}

.wz-search-input {
    font-size: 16px;
    padding-left: 16px;
}

.wz-search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.wz-search-item {
    padding: 14px 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.wz-search-item:last-child {
    border-bottom: none;
}

.wz-search-item:hover {
    background: #f8fafc;
}

.wz-search-item-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.wz-search-item-detail {
    font-size: 13px;
    color: #64748b;
}

.wz-search-no-results {
    padding: 24px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

/* ============================================
   SELECTED ITEM
   ============================================ */
.wz-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #10b981;
    border-radius: 14px;
}

.wz-selected-info {
    display: flex;
    flex-direction: column;
}

.wz-selected-name {
    font-weight: 700;
    color: #065f46;
    font-size: 16px;
}

.wz-selected-detail {
    font-size: 13px;
    color: #047857;
    margin-top: 2px;
}

.wz-selected-clear {
    background: white;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    color: #64748b;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wz-selected-clear:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* ============================================
   DIVIDER
   ============================================ */
.wz-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
}

.wz-divider::before,
.wz-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.wz-divider span {
    padding: 0 18px;
}

/* ============================================
   TYPE SELECTOR CARDS
   ============================================ */
.wz-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 28px;
    max-width: 480px;
}

.wz-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.wz-type-card:hover {
    border-color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59,130,246,0.08);
}

.wz-type-card.active {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow: 0 4px 14px rgba(59,130,246,0.15);
}

.wz-type-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.wz-type-label {
    font-weight: 700;
    color: #1e293b;
    font-size: 15px;
}

.wz-type-desc {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

/* ============================================
   DOCTOR / EQUIPMENT GRID
   ============================================ */
.wz-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
    padding: 2px;
}

.wz-doctor-card,
.wz-equip-card {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.wz-doctor-card:hover,
.wz-equip-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 12px rgba(59,130,246,0.08);
}

.wz-doctor-card.selected,
.wz-equip-card.selected {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.wz-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    margin-right: 14px;
    flex-shrink: 0;
}

.wz-card-info {
    flex: 1;
    min-width: 0;
}

.wz-card-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wz-card-sub {
    font-size: 12px;
    color: #64748b;
}

.wz-equip-icon {
    font-size: 28px;
    margin-right: 14px;
}

.wz-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* ============================================
   CONSULTATION TYPES / PROCEDURES
   ============================================ */
.wz-ct-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wz-ct-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.wz-ct-card:hover {
    border-color: #93c5fd;
}

.wz-ct-card.selected {
    border-color: #10b981;
    background: #ecfdf5;
}

.wz-ct-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.wz-ct-details {
    font-size: 13px;
    color: #64748b;
}

/* ============================================
   DATE SELECTOR (Step 3)
   ============================================ */
.wz-date-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.wz-date-nav {
    width: 40px;
    height: 40px;
    border: none;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    color: #64748b;
    transition: all 0.2s;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wz-date-nav:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

.wz-dates-row {
    display: flex;
    gap: 8px;
    flex: 1;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
}

.wz-dates-row::-webkit-scrollbar {
    display: none;
}

.wz-date-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 72px;
    flex-shrink: 0;
}

.wz-date-pill:hover {
    border-color: #93c5fd;
    background: #f8fafc;
}

.wz-date-pill.selected {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(59,130,246,0.3);
}

.wz-date-pill.today:not(.selected) {
    border-color: #f59e0b;
}

.wz-date-day {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.7;
    letter-spacing: 0.03em;
}

.wz-date-num {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.wz-date-month {
    font-size: 11px;
    opacity: 0.7;
}

/* ============================================
   TIME SLOTS
   ============================================ */
.wz-slots-area {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    min-height: 200px;
}

.wz-slots-section {
    margin-bottom: 20px;
}

.wz-slots-section:last-child {
    margin-bottom: 0;
}

.wz-slots-header {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wz-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}

.wz-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.wz-slot:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    transform: translateY(-1px);
}

.wz-slot.selected {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    box-shadow: 0 4px 12px rgba(16,185,129,0.15);
}

.wz-slot-time {
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
}

.wz-slot-end {
    font-size: 11px;
    color: #64748b;
}

.wz-slot-type {
    font-size: 10px;
    margin-top: 2px;
    font-weight: 600;
}

.wz-no-slots {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 20px;
    text-align: center;
}

.wz-no-slots-icon {
    font-size: 52px;
    margin-bottom: 14px;
}

.wz-no-slots-text {
    font-size: 16px;
    font-weight: 600;
    color: #475569;
}

.wz-no-slots-hint {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 6px;
}

/* Bypass checkbox */
.wz-bypass {
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #fefce8;
    border-radius: 12px;
    border: 1px solid #fde047;
}

.wz-bypass label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #854d0e;
    font-weight: 600;
}

.wz-bypass input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #f59e0b;
}

.wz-bypass-detail {
    font-size: 11px;
    color: #a16207;
    margin-top: 4px;
    margin-left: 28px;
}

/* Schedule info box */
.wz-schedule-info {
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #f0f9ff;
    border-radius: 12px;
    border-left: 3px solid #3b82f6;
}

.wz-schedule-title {
    font-size: 12px;
    color: #1e40af;
    font-weight: 700;
    margin-bottom: 8px;
}

.wz-schedule-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wz-schedule-tag {
    background: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    color: #334155;
}

/* ============================================
   SUMMARY (Confirm Step)
   ============================================ */
.wz-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.wz-summary-card {
    display: flex;
    align-items: flex-start;
    padding: 18px 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    gap: 16px;
}

.wz-summary-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.wz-summary-content {
    display: flex;
    flex-direction: column;
}

.wz-summary-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.wz-summary-value {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 2px;
}

.wz-summary-detail {
    font-size: 13px;
    color: #64748b;
    margin-top: 2px;
}

/* ============================================
   FOOTER / NAVIGATION
   ============================================ */
.wz-footer {
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.wz-btn {
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wz-btn-back {
    background: #f1f5f9;
    color: #475569;
}

.wz-btn-back:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.wz-btn-next {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(59,130,246,0.3);
}

.wz-btn-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59,130,246,0.4);
}

.wz-btn-confirm {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(16,185,129,0.3);
}

.wz-btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16,185,129,0.4);
}

/* ============================================
   INFO & LOADING STATES
   ============================================ */
.wz-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    color: #64748b;
    font-size: 15px;
}

.wz-error {
    padding: 20px;
    text-align: center;
    color: #dc2626;
    background: #fef2f2;
    border-radius: 12px;
    font-weight: 500;
}

.wz-warning {
    background: #fef3c7;
    padding: 14px 16px;
    border-radius: 12px;
    border-left: 3px solid #f59e0b;
    margin-top: 16px;
    font-size: 14px;
    color: #92400e;
}

.wz-warning-sub {
    display: block;
    font-size: 12px;
    color: #a16207;
    margin-top: 4px;
}

.wz-info-msg {
    color: #64748b;
    padding: 12px;
    font-size: 14px;
}

/* ============================================
   RESPONSIVE: TABLET
   ============================================ */
@media (max-width: 1024px) {
    .wz-sidebar {
        width: 200px;
        padding: 24px 14px;
    }

    .wz-scroll {
        padding: 24px 24px;
    }

    .wz-footer {
        padding: 14px 24px;
    }
}

/* ============================================
   RESPONSIVE: MOBILE (< 768px)
   ============================================ */
@media (max-width: 768px) {
    .wz-sidebar {
        display: none;
    }

    .wz-mobile-stepper {
        display: block;
    }

    .wz-header {
        padding: 0 16px;
        height: 56px;
    }

    .wz-header-title {
        font-size: 16px;
    }

    .wz-flow-toggle {
        display: none;
    }

    .wz-mobile-flow-btn {
        display: flex;
        width: 36px;
        height: 36px;
        border-radius: 10px;
        border: 1px solid #e2e8f0;
        background: white;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        transition: all 0.2s;
    }

    .wz-mobile-flow-btn:hover {
        background: #f1f5f9;
    }

    .wz-scroll {
        padding: 20px 16px;
        padding-bottom: 100px;
    }

    .wz-panel {
        max-width: 100%;
    }

    .wz-title {
        font-size: 20px;
    }

    .wz-grid-3 { grid-template-columns: 1fr; }
    .wz-grid-2 { grid-template-columns: 1fr; }

    .wz-type-grid {
        grid-template-columns: 1fr;
    }

    .wz-card-grid {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .wz-slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .wz-date-pill {
        min-width: 62px;
        padding: 8px 12px;
    }

    .wz-date-num {
        font-size: 18px;
    }

    .wz-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 12px 16px;
        background: white;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
        z-index: 10;
    }

    .wz-btn {
        padding: 14px 20px;
        font-size: 14px;
        flex: 1;
    }

    .wz-btn-back {
        flex: 0;
    }
}

/* ============================================
   RESPONSIVE: SMALL PHONE (< 420px)
   ============================================ */
@media (max-width: 420px) {
    .wz-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wz-date-pill {
        min-width: 54px;
        padding: 8px 8px;
    }

    .wz-date-num {
        font-size: 16px;
    }

    .wz-input {
        font-size: 16px; /* Prevent iOS zoom */
    }
}

/* ============================================
   ANIMATION: Pulse for required fields
   ============================================ */
@keyframes pulse-required {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
}
