/**
 * LLC Wizard - Three-Column Layout
 * A sophisticated, conversion-focused wizard experience
 *
 * Structure:
 * - Left Rail (280px): Step navigation with progress
 * - Center (flex): Main form content
 * - Right Rail (340px): Order summary, trust badges
 */

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
    /* Typography */
    --wizard-font-display: 'Instrument Sans', 'Inter', system-ui, sans-serif;
    --wizard-font-body: 'Inter', system-ui, sans-serif;

    /* Colors - Refined palette */
    --wizard-bg: #f8f9fb;
    --wizard-bg-subtle: #f1f4f9;
    --wizard-surface: #ffffff;
    --wizard-surface-elevated: #ffffff;

    --wizard-border: #e5e9f0;
    --wizard-border-subtle: #eef1f6;
    --wizard-border-focus: #0c4a6e;

    --wizard-text-primary: #0f1419;
    --wizard-text-secondary: #536471;
    --wizard-text-muted: #8899a6;
    --wizard-text-inverse: #ffffff;

    --wizard-brand: #0c4a6e;
    --wizard-brand-light: #1e6a9e;
    --wizard-brand-subtle: #e8f4fc;
    --wizard-brand-glow: rgba(12, 74, 110, 0.08);

    --wizard-success: #059669;
    --wizard-success-light: #10b981;
    --wizard-success-subtle: #ecfdf5;

    --wizard-accent: #7c3aed;
    --wizard-accent-subtle: #f5f3ff;

    /* CTA Colors - used by package/state selectors */
    --wizard-cta: #059669;
    --wizard-cta-light: #10b981;
    --wizard-bg-dark: #1e293b;
    --wizard-accent-glow: rgba(12, 74, 110, 0.15);
    --wizard-primary: #0c4a6e;

    /* Spacing */
    --wizard-rail-left: 280px;
    --wizard-rail-right: 340px;
    --wizard-gap: 32px;
    --wizard-radius: 16px;
    --wizard-radius-sm: 10px;
    --wizard-radius-xs: 6px;

    /* Shadows */
    --wizard-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --wizard-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --wizard-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
    --wizard-shadow-glow: 0 0 0 3px var(--wizard-brand-glow);

    /* Transitions */
    --wizard-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --wizard-transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   BASE LAYOUT
   ============================================ */
.wizard-layout {
    display: flex;
    min-height: 100vh;
    background: var(--wizard-bg);
}

.wizard-layout-inner {
    display: flex;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
}

/* ============================================
   LEFT RAIL - Step Navigation
   ============================================ */
.wizard-left-rail {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--wizard-rail-left);
    background: var(--wizard-surface);
    border-right: 1px solid var(--wizard-border);
    display: flex;
    flex-direction: column;
    z-index: 40;
    overflow-y: auto;
}

.wizard-left-rail-header {
    padding: 20px 20px;
    border-bottom: 1px solid var(--wizard-border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wizard-left-rail-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.wizard-left-rail-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--wizard-brand) 0%, var(--wizard-brand-light) 100%);
    border-radius: var(--wizard-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--wizard-shadow-md);
}

.wizard-left-rail-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.wizard-left-rail-title h2 {
    font-family: var(--wizard-font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--wizard-text-primary);
    letter-spacing: -0.01em;
    margin: 0;
}

.wizard-left-rail-title p {
    font-size: 12px;
    color: var(--wizard-text-muted);
    margin: 2px 0 0;
}

/* Steps Navigation */
.wizard-steps-nav {
    flex: 1;
    padding: 24px 20px;
    overflow-y: auto;
}

.wizard-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wizard-step-item {
    position: relative;
    margin-bottom: 4px;
}

.wizard-step-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--wizard-radius-sm);
    text-decoration: none;
    color: inherit;
    transition: var(--wizard-transition);
    cursor: default;
}

a.wizard-step-link {
    cursor: pointer;
}

a.wizard-step-link:hover {
    background: var(--wizard-bg-subtle);
}

/* Step Indicator */
.wizard-step-indicator {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--wizard-bg-subtle);
    border: 2px solid var(--wizard-border);
    transition: var(--wizard-transition);
}

.wizard-step-icon,
.wizard-step-check {
    width: 18px;
    height: 18px;
    color: var(--wizard-text-muted);
    transition: var(--wizard-transition);
}

/* Step Content */
.wizard-step-content {
    flex: 1;
    min-width: 0;
}

.wizard-step-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--wizard-text-secondary);
    transition: var(--wizard-transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wizard-step-subtitle {
    display: block;
    font-size: 12px;
    color: var(--wizard-text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wizard-step-arrow {
    width: 16px;
    height: 16px;
    color: var(--wizard-brand);
    opacity: 0;
    transform: translateX(-4px);
    transition: var(--wizard-transition);
}

/* Step Connector Line */
.wizard-step-connector {
    position: absolute;
    left: 35px;
    top: 56px;
    width: 2px;
    height: 20px;
    background: var(--wizard-border);
    border-radius: 1px;
    transition: var(--wizard-transition);
}

.wizard-step-connector.completed {
    background: var(--wizard-success);
}

/* Step States */
.wizard-step-item.completed .wizard-step-indicator {
    background: var(--wizard-success-subtle);
    border-color: var(--wizard-success);
}

.wizard-step-item.completed .wizard-step-check {
    color: var(--wizard-success);
}

.wizard-step-item.completed .wizard-step-title {
    color: var(--wizard-success);
}

.wizard-step-item.current .wizard-step-link {
    background: var(--wizard-brand-subtle);
}

.wizard-step-item.current .wizard-step-indicator {
    background: var(--wizard-brand);
    border-color: var(--wizard-brand);
    box-shadow: 0 0 0 4px var(--wizard-brand-glow);
}

.wizard-step-item.current .wizard-step-icon {
    color: white;
}

.wizard-step-item.current .wizard-step-title {
    color: var(--wizard-brand);
    font-weight: 700;
}

.wizard-step-item.current .wizard-step-arrow {
    opacity: 1;
    transform: translateX(0);
}

.wizard-step-item.upcoming .wizard-step-indicator {
    background: var(--wizard-bg);
    border-color: var(--wizard-border-subtle);
}

.wizard-step-item.upcoming .wizard-step-icon {
    color: var(--wizard-text-muted);
    opacity: 0.5;
}

.wizard-step-item.upcoming .wizard-step-title {
    color: var(--wizard-text-muted);
}

/* Left Rail Footer */
.wizard-left-rail-footer {
    padding: 20px;
    border-top: 1px solid var(--wizard-border-subtle);
    margin-top: auto;
}

.wizard-help-card {
    background: var(--wizard-bg-subtle);
    border: 1px solid var(--wizard-border-subtle);
    border-radius: var(--wizard-radius-sm);
    padding: 14px;
}

.wizard-help-icon {
    width: 32px;
    height: 32px;
    background: var(--wizard-brand-subtle);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.wizard-help-icon svg {
    width: 16px;
    height: 16px;
    color: var(--wizard-brand);
}

.wizard-help-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--wizard-text-primary);
    margin-bottom: 2px;
}

.wizard-help-text {
    display: block;
    font-size: 12px;
    color: var(--wizard-text-muted);
    margin-top: 2px;
}

.wizard-help-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--wizard-brand);
    text-decoration: none;
    transition: var(--wizard-transition);
}

.wizard-help-link:hover {
    color: var(--wizard-brand-light);
    text-decoration: underline;
}

/* Logo Image */
.wizard-left-rail-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wizard-logo-img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: contain;
}

/* Save & Exit Button */
.wizard-save-exit-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--wizard-border);
    border-radius: 50%;
    color: var(--wizard-text-muted);
    cursor: pointer;
    transition: var(--wizard-transition);
    flex-shrink: 0;
}

.wizard-save-exit-btn:hover {
    background: var(--wizard-bg-subtle);
    color: var(--wizard-text-primary);
    border-color: var(--wizard-border);
}

.wizard-save-exit-btn svg {
    width: 14px;
    height: 14px;
}

/* Contact Links */
.wizard-help-contacts {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.wizard-help-contact {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--wizard-text-secondary);
    text-decoration: none;
    transition: var(--wizard-transition);
    letter-spacing: -0.01em;
}

.wizard-help-contact:hover {
    color: var(--wizard-brand);
}

.wizard-help-contact svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    opacity: 0.7;
}

.wizard-help-whatsapp {
    color: #22c55e;
}

.wizard-help-whatsapp:hover {
    color: #16a34a;
}

/* Exit Modal */
.wizard-exit-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.wizard-exit-modal.hidden {
    display: none;
}

.wizard-exit-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.wizard-exit-dialog {
    position: relative;
    background: white;
    border-radius: var(--wizard-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 360px;
    width: 100%;
    padding: 28px;
    animation: wizard-fade-in 0.25s ease-out;
}

.wizard-exit-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--wizard-text-muted);
    cursor: pointer;
    transition: var(--wizard-transition);
}

.wizard-exit-close:hover {
    background: var(--wizard-bg-subtle);
    color: var(--wizard-text-primary);
}

.wizard-exit-close svg {
    width: 20px;
    height: 20px;
}

.wizard-exit-content {
    text-align: center;
    margin-bottom: 20px;
}

.wizard-exit-icon {
    width: 48px;
    height: 48px;
    background: var(--wizard-brand-subtle);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.wizard-exit-icon svg {
    width: 24px;
    height: 24px;
    color: var(--wizard-brand);
}

.wizard-exit-content h3 {
    font-family: var(--wizard-font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--wizard-text-primary);
    margin: 0 0 6px;
}

.wizard-exit-content p {
    font-size: 13px;
    color: var(--wizard-text-secondary);
    margin: 0;
    line-height: 1.4;
}

.wizard-exit-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wizard-exit-btn-primary {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    background: var(--wizard-brand);
    border: none;
    border-radius: var(--wizard-radius-sm);
    cursor: pointer;
    transition: var(--wizard-transition);
}

.wizard-exit-btn-primary:hover {
    background: var(--wizard-brand-light);
}

.wizard-exit-btn-secondary {
    width: 100%;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--wizard-text-secondary);
    background: transparent;
    border: 1px solid var(--wizard-border);
    border-radius: var(--wizard-radius-sm);
    cursor: pointer;
    transition: var(--wizard-transition);
}

.wizard-exit-btn-secondary:hover {
    background: var(--wizard-bg-subtle);
    color: var(--wizard-text-primary);
}

.wizard-exit-btn-text {
    width: 100%;
    padding: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--wizard-text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--wizard-transition);
}

.wizard-exit-btn-text:hover {
    color: var(--wizard-text-secondary);
}

/* ============================================
   CENTER - Main Content Area
   ============================================ */
.wizard-main {
    flex: 1;
    margin-left: var(--wizard-rail-left);
    margin-right: var(--wizard-rail-right);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Area */
.wizard-header {
    background: linear-gradient(135deg, var(--wizard-brand) 0%, #0a3d5c 100%);
    padding: 48px 48px 56px;
    position: relative;
    overflow: hidden;
}

.wizard-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.12) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.wizard-header-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.wizard-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.wizard-header-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--wizard-success-light);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.wizard-header-badge span {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.02em;
}

.wizard-header h1 {
    font-family: var(--wizard-font-display);
    font-size: 32px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0 0 12px;
}

.wizard-header p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
}

/* Progress Indicator */
.wizard-progress {
    display: flex;
    gap: 6px;
    margin-top: 32px;
}

.wizard-progress-segment {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    transition: var(--wizard-transition);
}

.wizard-progress-segment.completed {
    background: var(--wizard-success-light);
}

.wizard-progress-segment.current {
    background: white;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Form Area */
.wizard-form-area {
    flex: 1;
    padding: 40px 48px 60px;
}

.wizard-form-card {
    background: var(--wizard-surface);
    border-radius: var(--wizard-radius);
    border: 1px solid var(--wizard-border);
    box-shadow: var(--wizard-shadow-sm);
    overflow: hidden;
}

.wizard-form-card-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--wizard-border-subtle);
    background: var(--wizard-bg-subtle);
}

.wizard-form-card-header h2 {
    font-family: var(--wizard-font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--wizard-text-primary);
    margin: 0;
}

.wizard-form-card-header p {
    font-size: 14px;
    color: var(--wizard-text-secondary);
    margin: 4px 0 0;
}

.wizard-form-card-body {
    padding: 32px;
}

.wizard-form-card-footer {
    padding: 24px 32px;
    border-top: 1px solid var(--wizard-border-subtle);
    background: var(--wizard-bg-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Form Fields */
.wizard-field-group {
    margin-bottom: 24px;
}

.wizard-field-group:last-child {
    margin-bottom: 0;
}

.wizard-field-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--wizard-text-primary);
    margin-bottom: 8px;
}

.wizard-field-label .required {
    color: #ef4444;
    margin-left: 2px;
}

.wizard-field-hint {
    font-size: 13px;
    color: var(--wizard-text-muted);
    margin-top: 6px;
}

/* Buttons */
.wizard-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    background: var(--wizard-success);
    border: none;
    border-radius: var(--wizard-radius-sm);
    cursor: pointer;
    transition: var(--wizard-transition);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.wizard-btn-primary:hover {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.wizard-btn-primary:active {
    transform: translateY(0);
}

.wizard-btn-primary:disabled {
    background: var(--wizard-text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wizard-btn-primary svg {
    width: 18px;
    height: 18px;
    transition: transform var(--wizard-transition);
}

.wizard-btn-primary:hover svg {
    transform: translateX(3px);
}

.wizard-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--wizard-text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--wizard-transition);
}

.wizard-btn-secondary:hover {
    color: var(--wizard-text-primary);
}

.wizard-btn-secondary svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   RIGHT RAIL - Order Summary
   ============================================ */
.wizard-right-rail {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: var(--wizard-rail-right);
    background: var(--wizard-bg-subtle);
    border-left: 1px solid var(--wizard-border);
    z-index: 40;
    overflow-y: auto;
}

.wizard-right-rail-inner {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 100%;
}

/* Summary Card */
.wizard-summary-card {
    background: var(--wizard-surface);
    border-radius: var(--wizard-radius);
    border: 1px solid var(--wizard-border);
    box-shadow: var(--wizard-shadow-md);
    overflow: hidden;
}

.wizard-summary-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--wizard-border-subtle);
    background: linear-gradient(135deg, var(--wizard-brand) 0%, #0a3d5c 100%);
}

.wizard-summary-header h3 {
    font-family: var(--wizard-font-display);
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wizard-summary-header h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--wizard-success-light);
    border-radius: 50%;
}

.wizard-summary-body {
    padding: 20px 24px;
}

/* State Section */
.wizard-summary-state {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--wizard-border-subtle);
}

.wizard-summary-state-icon {
    width: 48px;
    height: 48px;
    background: var(--wizard-bg-subtle);
    border-radius: var(--wizard-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--wizard-border);
    overflow: hidden;
}

.wizard-summary-state-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.wizard-summary-state-info {
    flex: 1;
}

.wizard-summary-state-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--wizard-text-primary);
}

.wizard-summary-state-label {
    display: block;
    font-size: 12px;
    color: var(--wizard-text-muted);
    margin-top: 2px;
}

.wizard-summary-edit {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--wizard-text-muted);
    transition: var(--wizard-transition);
}

.wizard-summary-edit:hover {
    background: var(--wizard-bg-subtle);
    color: var(--wizard-brand);
}

.wizard-summary-edit svg {
    width: 14px;
    height: 14px;
}

/* Package Section */
.wizard-summary-package {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--wizard-border-subtle);
}

.wizard-summary-package-badge .badge-popular {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wizard-brand);
    background: var(--wizard-brand-subtle);
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 10px;
}

.wizard-summary-package-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wizard-summary-package-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--wizard-text-primary);
}

.wizard-summary-package-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--wizard-brand);
}

.wizard-summary-package-price .price-original {
    font-size: 14px;
    color: var(--wizard-text-muted);
    text-decoration: line-through;
    margin-right: 6px;
    font-weight: 400;
}

.wizard-summary-package-price .price-sale {
    color: var(--wizard-success);
}

/* Promo Section */
.wizard-summary-promo {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--wizard-success-subtle);
    border: 1px solid #a7f3d0;
    border-radius: var(--wizard-radius-sm);
    padding: 12px 14px;
    margin-bottom: 16px;
}

.wizard-summary-promo .promo-icon {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wizard-summary-promo .promo-icon svg {
    width: 16px;
    height: 16px;
    color: var(--wizard-success);
}

.wizard-summary-promo .promo-info {
    flex: 1;
}

.wizard-summary-promo .promo-code {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #065f46;
    text-transform: uppercase;
}

.wizard-summary-promo .promo-discount {
    display: block;
    font-size: 12px;
    color: #047857;
}

.wizard-summary-promo .promo-remove {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    transition: var(--wizard-transition);
}

.wizard-summary-promo .promo-remove:hover {
    color: #ef4444;
}

.wizard-summary-promo .promo-remove svg {
    width: 14px;
    height: 14px;
}

/* Sale Badge */
.wizard-summary-sale {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fcd34d;
    border-radius: var(--wizard-radius-sm);
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #92400e;
}

.wizard-summary-sale svg {
    width: 16px;
    height: 16px;
    color: #d97706;
}

/* Line Items */
.wizard-summary-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--wizard-border-subtle);
    margin-bottom: 16px;
}

.wizard-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wizard-summary-item .item-label {
    font-size: 14px;
    color: var(--wizard-text-secondary);
}

.wizard-summary-item .item-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--wizard-text-primary);
}

/* Total */
.wizard-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    background: var(--wizard-brand-subtle);
    margin: 0 -24px -20px;
    padding: 16px 24px;
}

.wizard-summary-total .total-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--wizard-text-primary);
}

.wizard-summary-total .total-value {
    font-family: var(--wizard-font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--wizard-brand);
    letter-spacing: -0.02em;
}

/* Empty State */
.wizard-summary-empty {
    text-align: center;
    padding: 32px 16px;
}

.wizard-summary-empty .empty-icon {
    width: 56px;
    height: 56px;
    background: var(--wizard-bg-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.wizard-summary-empty .empty-icon svg {
    width: 28px;
    height: 28px;
    color: var(--wizard-text-muted);
    opacity: 0.5;
}

.wizard-summary-empty .empty-text {
    font-size: 14px;
    color: var(--wizard-text-muted);
    line-height: 1.5;
}

/* Trust Card */
.wizard-trust-card {
    background: var(--wizard-surface);
    border-radius: var(--wizard-radius-sm);
    border: 1px solid var(--wizard-border);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wizard-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wizard-trust-item .trust-icon {
    width: 32px;
    height: 32px;
    background: var(--wizard-success-subtle);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wizard-trust-item .trust-icon svg {
    width: 16px;
    height: 16px;
    color: var(--wizard-success);
}

.wizard-trust-item .trust-icon img {
    width: 20px;
    height: auto;
    object-fit: contain;
}

.wizard-trust-item .trust-icon-bbb {
    background: #fff;
    border: 1px solid var(--wizard-border-subtle);
}

.wizard-trust-item .trust-icon-brand {
    background: var(--wizard-brand-subtle);
}

.wizard-trust-item .trust-icon-brand svg {
    color: var(--wizard-brand);
}

.wizard-trust-item .trust-content {
    flex: 1;
    min-width: 0;
}

.wizard-trust-item .trust-title {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--wizard-text-primary);
    line-height: 1.3;
}

.wizard-trust-item .trust-text {
    display: block;
    font-size: 11px;
    color: var(--wizard-text-muted);
    margin-top: 1px;
}

/* Payment Methods */
.wizard-payment-methods {
    text-align: center;
    margin-top: auto;
    padding-top: 16px;
}

.wizard-payment-methods .payment-label {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: var(--wizard-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.wizard-payment-methods .payment-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.wizard-payment-methods .payment-icons img {
    height: 10px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    opacity: 0.5;
    transition: var(--wizard-transition);
}

.wizard-payment-methods .payment-icons img:hover {
    opacity: 0.8;
}

/* ============================================
   MOBILE BOTTOM BAR
   ============================================ */
.wizard-mobile-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--wizard-surface);
    border-top: 1px solid var(--wizard-border);
    padding: 16px 20px;
    z-index: 50;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.wizard-mobile-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wizard-mobile-bar-price {
    display: flex;
    flex-direction: column;
}

.wizard-mobile-bar-price .price-label {
    font-size: 12px;
    color: var(--wizard-text-muted);
}

.wizard-mobile-bar-price .price-value {
    font-family: var(--wizard-font-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--wizard-brand);
}

.wizard-mobile-view-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--wizard-brand);
    background: var(--wizard-brand-subtle);
    border: none;
    border-radius: var(--wizard-radius-sm);
    cursor: pointer;
    transition: var(--wizard-transition);
}

.wizard-mobile-view-btn:hover {
    background: var(--wizard-brand);
    color: white;
}

.wizard-mobile-view-btn svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   MOBILE STEP PILLS
   ============================================ */
.wizard-mobile-steps {
    display: none;
    padding: 16px 20px;
    background: var(--wizard-surface);
    border-bottom: 1px solid var(--wizard-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.wizard-mobile-steps-list {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: max-content;
}

.wizard-mobile-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--wizard-bg-subtle);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--wizard-text-muted);
    white-space: nowrap;
    transition: var(--wizard-transition);
}

.wizard-mobile-step.completed {
    background: var(--wizard-success-subtle);
    color: var(--wizard-success);
}

.wizard-mobile-step.current {
    background: var(--wizard-brand);
    color: white;
    box-shadow: var(--wizard-shadow-md);
}

.wizard-mobile-step-num {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

.wizard-mobile-step.completed .wizard-mobile-step-num {
    background: var(--wizard-success);
    color: white;
}

.wizard-mobile-step.current .wizard-mobile-step-num {
    background: white;
    color: var(--wizard-brand);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Large screens - hide mobile elements */
@media (min-width: 1280px) {
    .wizard-mobile-bar,
    .wizard-mobile-steps {
        display: none !important;
    }
}

/* Medium screens - tablet */
@media (max-width: 1279px) and (min-width: 1024px) {
    :root {
        --wizard-rail-left: 240px;
        --wizard-rail-right: 300px;
    }

    .wizard-header {
        padding: 36px 36px 44px;
    }

    .wizard-form-area {
        padding: 32px 36px 48px;
    }

    .wizard-step-subtitle {
        display: none;
    }
}

/* Tablet - hide right rail */
@media (max-width: 1023px) {
    .wizard-right-rail {
        display: none;
    }

    .wizard-main {
        margin-right: 0;
    }

    .wizard-mobile-bar {
        display: block;
    }

    :root {
        --wizard-rail-left: 240px;
    }

    .wizard-step-subtitle {
        display: none;
    }
}

/* Small tablet - collapse left rail */
@media (max-width: 900px) {
    .wizard-left-rail {
        width: 72px;
    }

    .wizard-main {
        margin-left: 72px;
    }

    .wizard-left-rail-header {
        padding: 20px 12px;
    }

    .wizard-left-rail-title {
        justify-content: center;
    }

    .wizard-left-rail-title > div {
        display: none;
    }

    .wizard-left-rail-icon {
        width: 40px;
        height: 40px;
    }

    .wizard-steps-nav {
        padding: 20px 12px;
    }

    .wizard-step-link {
        justify-content: center;
        padding: 12px;
    }

    .wizard-step-content,
    .wizard-step-arrow,
    .wizard-step-connector {
        display: none;
    }

    .wizard-step-indicator {
        width: 42px;
        height: 42px;
    }

    .wizard-left-rail-footer {
        display: none;
    }

    .wizard-header {
        padding: 32px 24px 40px;
    }

    .wizard-header h1 {
        font-size: 26px;
    }

    .wizard-form-area {
        padding: 24px;
    }

    .wizard-form-card-body {
        padding: 24px;
    }

    .wizard-form-card-header,
    .wizard-form-card-footer {
        padding: 20px 24px;
    }
}

/* Mobile - full width */
@media (max-width: 640px) {
    .wizard-left-rail {
        display: none;
    }

    .wizard-main {
        margin-left: 0;
        padding-bottom: 80px; /* Space for mobile bar */
    }

    .wizard-mobile-steps {
        display: block;
    }

    .wizard-header {
        padding: 24px 16px 32px;
    }

    .wizard-header h1 {
        font-size: 22px;
    }

    .wizard-header p {
        font-size: 14px;
    }

    .wizard-header-badge {
        padding: 6px 12px;
        margin-bottom: 16px;
    }

    .wizard-header-badge span {
        font-size: 12px;
    }

    .wizard-progress {
        margin-top: 24px;
    }

    .wizard-form-area {
        padding: 20px 16px 32px;
    }

    .wizard-form-card {
        border-radius: var(--wizard-radius-sm);
    }

    .wizard-form-card-header {
        padding: 16px 20px;
    }

    .wizard-form-card-header h2 {
        font-size: 16px;
    }

    .wizard-form-card-body {
        padding: 20px;
    }

    .wizard-form-card-footer {
        padding: 16px 20px;
        flex-direction: column;
    }

    .wizard-btn-primary {
        width: 100%;
        padding: 16px 24px;
    }

    .wizard-btn-secondary {
        order: 1;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes wizard-fade-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-animate-in {
    animation: wizard-fade-in 0.4s ease-out forwards;
}

.wizard-form-card {
    animation: wizard-fade-in 0.5s ease-out forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

/* Staggered animation for form fields */
.wizard-field-group {
    animation: wizard-fade-in 0.4s ease-out forwards;
    opacity: 0;
}

.wizard-field-group:nth-child(1) { animation-delay: 0.15s; }
.wizard-field-group:nth-child(2) { animation-delay: 0.2s; }
.wizard-field-group:nth-child(3) { animation-delay: 0.25s; }
.wizard-field-group:nth-child(4) { animation-delay: 0.3s; }
.wizard-field-group:nth-child(5) { animation-delay: 0.35s; }
.wizard-field-group:nth-child(6) { animation-delay: 0.4s; }

/* ============================================
   P0 FIXES - Payment Button & Progress Badge
   ============================================ */

/* Payment Button - Enhanced prominence with pulse */
.wizard-btn-payment {
    background: linear-gradient(135deg, var(--wizard-success) 0%, #047857 100%);
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.35);
    font-size: 18px;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
}

.wizard-btn-payment:not(:disabled) {
    animation: payment-btn-pulse 2s ease-in-out infinite;
}

.wizard-btn-payment:hover:not(:disabled) {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    box-shadow: 0 12px 32px rgba(5, 150, 105, 0.45);
    transform: translateY(-2px);
}

.wizard-btn-payment:disabled {
    background: #9ca3af;
    box-shadow: none;
    animation: none;
}

@keyframes payment-btn-pulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(5, 150, 105, 0.35);
    }
    50% {
        box-shadow: 0 8px 32px rgba(5, 150, 105, 0.55), 0 0 0 4px rgba(5, 150, 105, 0.15);
    }
}

/* Progress Badge - Percentage styling */
.wizard-header-badge-divider {
    opacity: 0.4;
    margin: 0 6px;
}

.wizard-header-badge-percent {
    font-weight: 700;
    color: var(--wizard-success-light);
}

/* Mobile form area - prevent bottom bar overlap */
@media (max-width: 1023px) {
    .wizard-form-area {
        padding-bottom: 100px;
    }
}

@media (max-width: 640px) {
    .wizard-form-area {
        padding-bottom: 120px;
    }

    .wizard-form-card-footer {
        padding-bottom: 24px;
    }
}

/* ============================================
   P1 FIXES - Accessibility & Validation
   ============================================ */

/* Focus-visible styles for selection cards (keyboard navigation) */
.state-card-wrapper:focus-visible,
.package-card-wrapper:focus-visible {
    outline: none;
}

.state-card-wrapper:focus-visible .wizard-selection-card,
.package-card-wrapper:focus-visible .wizard-selection-card {
    outline: 3px solid var(--wizard-brand);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px var(--wizard-brand-glow), var(--wizard-shadow-lg);
}

/* Focus state for interactive elements */
.state-card-wrapper:focus,
.package-card-wrapper:focus {
    outline: none;
}

.state-card-wrapper:focus .wizard-selection-card,
.package-card-wrapper:focus .wizard-selection-card {
    border-color: var(--wizard-brand);
}

/* Input validation states */
.wizard-input.is-valid {
    border-color: var(--wizard-success);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2310b981'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M5 13l4 4L19 7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 20px;
    padding-right: 48px;
}

/* Exclude validation icon from narrow inputs (e.g., country code) */
.wizard-input.no-validate-icon.is-valid {
    background-image: none;
    padding-right: 14px;
}

.wizard-input.is-invalid {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.wizard-input.is-invalid:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

/* Validation message animations */
.field-error {
    animation: shake 0.4s ease-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

/* Live validation success indicator */
.validation-success {
    color: var(--wizard-success);
    font-size: 13px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: fadeIn 0.3s ease-out;
}

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