/**
 * Yatra Setup Wizard - Clean Professional Design
 * Senior Designer - Minimal & Elegant
 */

/* ========================================
   BASE & LAYOUT
   ======================================== */

.yatra-setup {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #fafbfc;
    min-height: 100vh;
    line-height: 1.6;
}

.yatra-setup-wrapper {
    max-width: 880px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

/* ========================================
   LOGO
   ======================================== */

.yatra-setup-logo {
    text-align: center;
    margin: 0 0 48px;
}

.yatra-setup-logo a {
    display: inline-block;
}

.yatra-setup-logo img {
    max-width: 120px;
    height: auto;
}

/* ========================================
   PROGRESS STEPS - HORIZONTAL WITH LINE
   ======================================== */

.yatra-setup-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 20px 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
    gap: 8px 6px;
}

/* Progress line */
.yatra-setup-steps::before {
    content: '';
    position: absolute;
    top: 42px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.yatra-setup-steps li {
    flex: 1 1 68px;
    min-width: 64px;
    max-width: 120px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.yatra-setup-steps li,
.yatra-setup-steps li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Step circle with icon */
.yatra-setup-steps li .step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fff;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.yatra-setup-steps li .step-icon svg {
    display: block;
    stroke: #9ca3af;
    transition: stroke 0.2s ease;
}

/* Active state */
.yatra-setup-steps li.active .step-icon {
    background: #4f46e5;
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.yatra-setup-steps li.active .step-icon svg {
    stroke: #fff;
}

.yatra-setup-steps li.active {
    color: #4f46e5;
    font-weight: 600;
}

/* Done state */
.yatra-setup-steps li.done .step-icon {
    background: #10b981;
    border-color: #10b981;
}

.yatra-setup-steps li.done .step-icon svg {
    stroke: #fff;
}

.yatra-setup-steps li.done,
.yatra-setup-steps li.done a {
    color: #10b981;
    font-weight: 500;
}

.yatra-setup-steps li.done:hover .step-icon {
    transform: scale(1.05);
}

/* ========================================
   MAIN CARD
   ======================================== */

.yatra-setup-content {
    background: transparent;
    margin-bottom: 24px;
}

.wizard-step {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.wizard-header {
    padding: 32px 32px 24px;
    background: #fafbfc;
    border-bottom: 1px solid #e5e7eb;
}

.wizard-header h1 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.wizard-header p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* Task steps: progress + outcome-focused subtitle (no “welcome” tone) */
.wizard-header--task {
    text-align: left;
}

.wizard-header-kicker {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
}

.wizard-header-lead {
    margin: 0;
    font-size: 15px;
    color: #4b5563;
    line-height: 1.55;
    max-width: 42em;
}

.wizard-header--welcome {
    text-align: center;
    background: linear-gradient(180deg, #eef2ff 0%, #fafbfc 55%);
}

.wizard-header--welcome h1 {
    margin-bottom: 12px;
}

.wizard-welcome-sub {
    margin: 0;
    font-size: 17px;
    color: #4b5563;
    font-weight: 400;
    line-height: 1.5;
}

.wizard-content--welcome {
    padding-top: 28px;
}

.wizard-welcome-lead {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
}

.wizard-welcome-checklist {
    margin-bottom: 20px;
}

.wizard-welcome-note {
    margin-top: 8px;
}

.wizard-footer--welcome {
    justify-content: space-between;
}

.wizard-footer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wizard-footer-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wizard-req {
    color: #ef4444;
    font-weight: 600;
}

.wizard-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 22px;
    margin-bottom: 16px;
    background: #fafbfc;
}

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

.wizard-card--highlight {
    border-color: #c7d2fe;
    background: #f5f7ff;
}

.wizard-card-title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.wizard-card-intro {
    margin: 0 0 14px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.wizard-check-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    line-height: 1.45;
}

.wizard-check-row:last-child {
    margin-bottom: 0;
}

.wizard-check-row input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: #4f46e5;
}

.wizard-check-row strong {
    display: block;
    margin-bottom: 4px;
    color: #111827;
}

.wizard-check-desc {
    display: block;
    font-size: 13px;
    color: #6b7280;
    font-weight: 400;
}

.wizard-content {
    padding: 32px;
}

.wizard-footer {
    padding: 20px 32px;
    border-top: 1px solid #e5e7eb;
    background: #fafbfc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

/* ========================================
   INFO BOXES
   ======================================== */

.info-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.info-box p {
    margin: 0 0 16px;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.info-box p:last-child {
    margin-bottom: 0;
}

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

.checklist li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}

.checklist li svg {
    flex-shrink: 0;
    color: #10b981;
    margin-top: 2px;
}

.info-note {
    padding: 12px 16px;
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    border-radius: 6px;
    font-size: 13px;
    color: #92400e;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.info-note svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* ========================================
   FORMS
   ======================================== */

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.form-label input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    cursor: pointer;
    accent-color: #4f46e5;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    transition: all 0.15s ease;
    color: #111827;
    box-sizing: border-box;
}

.form-control:hover {
    border-color: #9ca3af;
}

.form-control:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-help {
    margin: 6px 0 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.5;
}

.btn-primary {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
}

.btn-primary:hover {
    background: #4338ca;
    border-color: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.btn-secondary {
    background: #fff;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #f9fafb;
    color: #374151;
    border-color: #9ca3af;
}

/* ========================================
   THEME CARDS
   ======================================== */

.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.theme-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: all 0.2s ease;
}

.theme-card:hover {
    border-color: #4f46e5;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.theme-card.recommended {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.theme-preview {
    height: 160px;
    background: #f3f4f6;
    overflow: hidden;
}

.theme-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.theme-info {
    padding: 20px;
}

.theme-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #4f46e5;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 12px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.theme-info h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #111827;
    font-weight: 600;
}

.theme-info p {
    margin: 0 0 12px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.theme-features {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.theme-features li {
    padding: 4px 0;
    font-size: 13px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-features li::before {
    content: '•';
    color: #4f46e5;
    font-weight: bold;
}

.checkbox-option {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-top: 12px;
    transition: all 0.15s ease;
    cursor: pointer;
}

.checkbox-option:hover {
    background: #f3f4f6;
    border-color: #4f46e5;
}

.checkbox-option input {
    margin-right: 12px;
    cursor: pointer;
    accent-color: #4f46e5;
}

.checkbox-option span {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

/* ========================================
   COMPLETE STEP
   ======================================== */

.success-icon {
    text-align: center;
    margin-bottom: 24px;
}

.success-icon svg {
    color: #10b981;
    display: inline-block;
}

.next-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.next-step {
    padding: 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.next-step:hover {
    border-color: #4f46e5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.next-step h3 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #111827;
    font-weight: 600;
}

.next-step p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

/* ========================================
   PREMIUM BOX
   ======================================== */

.premium-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 32px;
    border-radius: 12px;
    margin: 24px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.premium-box h3 {
    margin: 0 0 12px;
    font-size: 20px;
    color: #fff;
    font-weight: 600;
}

.premium-box p {
    margin: 0 0 24px;
    font-size: 14px;
    opacity: 0.95;
    line-height: 1.6;
}

.premium-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.premium-feature {
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.premium-feature h4 {
    margin: 0 0 6px;
    font-size: 14px;
    color: #fff;
    font-weight: 600;
}

.premium-feature p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}

.premium-cta {
    text-align: center;
    margin-top: 24px;
}

.premium-cta .btn {
    background: #fff;
    color: #4f46e5;
    font-weight: 600;
    padding: 12px 32px;
}

.premium-cta .btn:hover {
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

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

@media (max-width: 768px) {
    .yatra-setup-wrapper {
        padding: 32px 16px 60px;
    }
    
    .wizard-header {
        padding: 24px 20px 20px;
    }
    
    .wizard-content {
        padding: 24px 20px;
    }
    
    .wizard-footer {
        padding: 16px 20px;
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 12px;
    }

    .wizard-footer-actions {
        width: 100%;
        justify-content: stretch;
    }

    .wizard-footer-actions .btn-skip,
    .wizard-footer-actions .btn-primary {
        flex: 1;
        justify-content: center;
    }
    
    .wizard-header h1 {
        font-size: 20px;
    }
    
    .wizard-header p {
        font-size: 13px;
    }
    
    .yatra-setup-steps {
        padding: 16px 12px;
    }
    
    .yatra-setup-steps::before {
        display: none;
    }
    
    .yatra-setup-steps li,
    .yatra-setup-steps li a {
        font-size: 11px;
    }
    
    .yatra-setup-steps li .step-icon {
        width: 32px;
        height: 32px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .wizard-footer .btn {
        width: 100%;
    }
    
    .theme-grid,
    .next-steps,
    .premium-features {
        grid-template-columns: 1fr;
    }
}
