/* Onboarding Wizard Page Styles */

/* ── Layout ─────────────────────────────────────────────── */
.onboarding-container {
    max-width: 560px;
    margin: 3rem auto;
    padding: 1rem 1.5rem;
}

.wizard-step-content {
    background: white;
    border-radius: 0.625rem;
    padding: 2.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
}

/* ── Step header ─────────────────────────────────────────── */
.wizard-step-header {
    margin-bottom: 2rem;
}

.wizard-step-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.375rem;
}

.wizard-step-header p {
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 0;
}

/* ── Form: local grid + spacing utilities ────────────────── */
/* Replaces Bootstrap row/col/mb classes that aren't loaded  */
.wizard-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}

@media (max-width: 520px) {
    .wizard-row { grid-template-columns: 1fr; }
}

.wizard-field {
    margin-bottom: 1.25rem;
}

/* ── Labels ──────────────────────────────────────────────── */
.wizard-step-content label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.375rem;
}

/* ── Inputs ──────────────────────────────────────────────── */
.wizard-step-content .form-control {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    font-family: inherit;
    color: #111827;
    background: #fff;
    border: 1.5px solid #d1d5db;
    border-radius: 0.5rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    line-height: 1.5;
}

.wizard-step-content .form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.wizard-step-content .form-control::placeholder {
    color: #9ca3af;
}

/* ── Field helper text ───────────────────────────────────── */
.field-hint {
    font-size: 0.8125rem;
    color: #9ca3af;
    margin-top: 0.3rem;
    line-height: 1.4;
}

/* ── Form section dividers ───────────────────────────────── */
.form-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    margin: 1.75rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.form-section-label:first-child {
    margin-top: 0;
}

/* ── Alert ───────────────────────────────────────────────── */
.wizard-step-content .alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.wizard-step-content .alert ul {
    margin: 0;
    padding-left: 1.25rem;
}

.wizard-step-content .alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* ── Primary button ──────────────────────────────────────── */
.wizard-step-content .btn,
.wizard-btn-group .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.375rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 0.5rem;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s, box-shadow 0.15s;
    line-height: 1.5;
}

.wizard-step-content .btn-primary,
.wizard-btn-group .btn-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.wizard-step-content .btn-primary:hover,
.wizard-btn-group .btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* ── Footer ──────────────────────────────────────────────── */
.wizard-step-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wizard-btn-group {
    display: flex;
    gap: 0.75rem;
    margin-left: auto;
}

.skip-link {
    font-size: 0.9rem;
    color: #9ca3af;
    text-decoration: none;
}

.skip-link:hover {
    color: #374151;
    text-decoration: underline;
}

/* ── Data source cards (step 2) ──────────────────────────── */
.data-source-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.data-source-card {
    border: 2px solid #e5e7eb;
    border-radius: 0.625rem;
    padding: 1.25rem 1rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    text-align: center;
    position: relative;
}

.data-source-card:hover {
    border-color: #2563eb;
    background: #f5f8ff;
}

.data-source-card.selected {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.data-source-card i {
    font-size: 2rem;
    color: #2563eb;
    margin-bottom: 0.625rem;
}

.data-source-card h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.2rem;
}

.data-source-card p {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0;
}

.data-source-card--hero {
    border-color: #2563eb;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 1.75rem 1.5rem;
    text-align: center;
}

.data-source-card--hero:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.18);
}

.data-source-card--hero.selected {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.data-source-card--hero i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.data-source-card--hero h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1d4ed8;
    margin-bottom: 0.375rem;
}

.data-source-card--hero p {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.5;
}

.demo-badge {
    position: absolute;
    top: -0.55rem;
    right: 1rem;
    background: #2563eb;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.175rem 0.55rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.data-source-divider {
    text-align: center;
    color: #d1d5db;
    font-size: 0.8125rem;
    margin: 1.25rem 0 0;
}

.data-source-options--compact {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
}

.data-source-options--compact .data-source-card {
    padding: 0.875rem 0.75rem;
}

.data-source-options--compact .data-source-card i {
    font-size: 1.5rem;
    margin-bottom: 0.375rem;
}

/* ── Completion step (step 3) ────────────────────────────── */
.wizard-completion {
    text-align: center;
    padding: 2rem 1rem 1rem;
}

.wizard-completion-icon {
    font-size: 3.5rem;
    color: #16a34a;
    margin-bottom: 1rem;
}

.wizard-completion-title {
    font-size: 1.625rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.wizard-completion-text {
    color: #6b7280;
    margin-bottom: 2rem;
}

.wizard-completion-btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.15s, box-shadow 0.15s;
}

.wizard-completion-btn:hover {
    background: #1d4ed8;
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* ── Pending approval ────────────────────────────────────── */
.pending-approval-content {
    text-align: center;
    padding: 3rem 2rem;
}

.pending-approval-icon {
    font-size: 3rem;
    color: #2563eb;
    margin-bottom: 1.25rem;
}

.pending-approval-text {
    font-size: 1rem;
    margin-top: 0.75rem;
    color: #4b5563;
}

.pending-approval-subtext {
    margin-top: 0.5rem;
    color: #9ca3af;
    font-size: 0.9rem;
}

.pending-approval-btn {
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background 0.15s;
}

.pending-approval-btn:hover {
    background: #1d4ed8;
    color: #fff;
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 600px) {
    .onboarding-container {
        padding: 0.75rem;
        margin: 1rem auto;
    }

    .wizard-step-content {
        padding: 1.5rem 1.25rem;
    }

    .wizard-step-footer {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 0.75rem;
    }

    .wizard-btn-group {
        flex-direction: column;
        margin-left: 0;
    }

    .wizard-btn-group .btn {
        width: 100%;
        justify-content: center;
    }

    .data-source-options--compact {
        grid-template-columns: 1fr;
    }
}
