/* TalentP.AI — Onboarding Wizard v1.6.0 */

/* ===== ONBOARDING ===== */
.onboarding-page {
    flex: 1;
    background: linear-gradient(135deg, var(--tp-dark) 0%, var(--tp-navy) 50%, var(--tp-navy-2) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 16px 16px 20px;
    position: relative;
    overflow-x: hidden;
    margin-top: 56px;
}

.onboarding-page::before {
    content: '';
    position: fixed;
    top: -20%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26,188,156,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.onboarding-page::after {
    content: '';
    position: fixed;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(52,152,219,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.onboarding-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
}

/* ── Tagline ── */
.brand-tagline {
    text-align: center;
    margin-bottom: 1.25rem;
    padding: 0 0.5rem;
}
.brand-tagline h2 {
    font-family: 'Varela Round', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
    margin: 0;
}
.brand-tagline h2 span { color: var(--tp-primary); }

/* ── Feature Pills ── */
.features-strip {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}
.feature-pill {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    font-weight: 600;
    font-family: 'Raleway', sans-serif;
}
.feature-pill .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tp-primary);
    opacity: 0.6;
}

/* ── Kart ── */
.onboarding-card {
    background: var(--tp-surface-2);
    border-radius: 20px;
    box-shadow:
        0 1px 2px rgba(26,20,48,0.04),
        0 4px 12px rgba(26,20,48,0.06),
        0 20px 48px rgba(26,188,156,0.1);
    overflow: hidden;
}

/* ── Progress ── */
.progress-track {
    height: 4px;
    background: var(--tp-border);
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--tp-gradient-mixed);
    width: 25%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 2px 2px 0;
}

.card-body-inner { padding: 1.5rem 2rem 1.5rem; }

/* ── Adım Panelleri ── */
.step-panel { display: none; animation: fadeSlideIn 0.4s ease forwards; }
.step-panel.active { display: block; }

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.step-indicator {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tp-primary);
    margin-bottom: 0.75rem;
    font-family: 'Raleway', sans-serif;
}
.step-question {
    font-family: 'Varela Round', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--tp-text);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}
.step-subtitle {
    color: var(--tp-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-family: 'Raleway', sans-serif;
}

/* ── Seçim Kartları ── */
.choice-grid { display: flex; flex-direction: column; gap: 0.5rem; }
.choice-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    border: 2px solid var(--tp-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: transparent;
    position: relative;
}
.choice-card:hover {
    border-color: var(--tp-primary);
    background: rgba(26,188,156,0.03);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(26,188,156,0.12);
}
.choice-card.selected {
    border-color: var(--tp-primary);
    background: rgba(26,188,156,0.05);
    box-shadow: 0 0 0 3px rgba(26,188,156,0.15);
}
.choice-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.choice-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.choice-icon.highschool   { background: var(--tp-tint-highschool); }
.choice-icon.university   { background: var(--tp-tint-university); }
.choice-icon.professional { background: var(--tp-tint-professional); }
.choice-text h3 { font-size: 0.95rem; font-weight: 700; margin: 0 0 0.15rem; color: var(--tp-text); font-family: 'Raleway', sans-serif; }
.choice-text p  { font-size: 0.78rem; color: var(--tp-text-muted); margin: 0; line-height: 1.4; font-family: 'Raleway', sans-serif; }
.choice-check {
    margin-left: auto; width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid var(--tp-border);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s ease; flex-shrink: 0;
}
.choice-card.selected .choice-check { background: var(--tp-primary); border-color: var(--tp-primary); }
.choice-check svg { width: 12px; height: 12px; opacity: 0; transition: opacity 0.2s ease; }
.choice-card.selected .choice-check svg { opacity: 1; }

/* ── Form Alanları ── */
.form-field {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.form-field label {
    display: block; font-size: 0.85rem; font-weight: 700;
    color: var(--tp-text); margin-bottom: 0;
    font-family: 'Raleway', sans-serif;
    min-width: 100px;
    flex-shrink: 0;
}
.form-field input, .form-field select {
    flex: 1; min-width: 0; padding: 0.55rem 0.85rem;
    border: 2px solid var(--tp-border); border-radius: 10px;
    font-family: 'Raleway', sans-serif; font-size: 0.9rem;
    color: var(--tp-text); background: #FAFAFA;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    outline: none;
}
.form-field .field-error {
    width: 100%;
    margin-left: calc(100px + 0.75rem);
}
.form-field input::placeholder { color: var(--tp-text-light); }
.form-field input:focus, .form-field select:focus {
    border-color: var(--tp-primary);
    box-shadow: 0 0 0 3px rgba(26,188,156,0.12);
    background: #fff;
}
.form-field .field-error {
    font-size: 0.72rem; color: #e74c3c;
    margin-top: 0.15rem; display: none;
    font-family: 'Raleway', sans-serif;
}
.form-field.has-error input { border-color: #e74c3c; }
.form-field.has-error .field-error { display: block; }
.age-declaration-box { text-align: left; }
#fieldAge { margin-bottom: 0.25rem; }
.age-declaration-box.has-error > div { border-color: #e74c3c; background: #fff5f5; }

/* ── Butonlar ── */
.step-nav {
    display: flex; justify-content: space-between;
    align-items: center; margin-top: 1.25rem; gap: 0.75rem;
}
.btn-back {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.6rem 1.1rem; border: 2px solid var(--tp-border);
    border-radius: 12px; background: transparent; color: var(--tp-text-muted);
    font-family: 'Raleway', sans-serif; font-size: 0.85rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s ease;
}
.btn-back:hover { border-color: var(--tp-text-muted); color: var(--tp-text); }
.btn-next, .btn-start {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.65rem 1.75rem; border: none; border-radius: 10px;
    font-family: 'Raleway', sans-serif; font-size: 0.9rem; font-weight: 700;
    cursor: pointer; transition: all 0.3s ease; color: #fff;
    background: var(--tp-gradient-mixed);
    box-shadow: 0 4px 16px rgba(26,188,156,0.3);
    margin-left: auto;
}
.btn-next:hover, .btn-start:hover {
    transform: translateY(-1px); box-shadow: 0 6px 24px rgba(26,188,156,0.4);
}
.btn-next:active, .btn-start:active { transform: translateY(0); }
.btn-next:disabled, .btn-start:disabled {
    opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none;
}
.btn-start {
    width: 100%; padding: 0.75rem; font-size: 0.95rem;
    border-radius: 14px; letter-spacing: 0.02em;
}

/* ── Özet ── */
.summary-row {
    display: flex; justify-content: space-between;
    padding: 0.4rem 0; border-bottom: 1px solid var(--tp-border);
    font-size: 0.82rem; font-family: 'Raleway', sans-serif;
}
.summary-row:last-of-type { border-bottom: none; }
.summary-label { color: var(--tp-text-muted); }
.summary-value { color: var(--tp-text); font-weight: 700; text-align: right; max-width: 60%; word-break: break-word; }
.summary-box {
    background: var(--tp-bg-onboarding); border: 1px solid rgba(26,188,156,0.2);
    border-radius: 14px; padding: 0.75rem 1.25rem; margin-bottom: 1rem;
    max-height: calc(100vh - 340px);
    overflow-y: auto;
}

.trust-note {
    text-align: center; margin-top: 0.5rem; font-size: 0.72rem;
    color: var(--tp-text-muted); display: flex; align-items: center;
    justify-content: center; gap: 0.35rem;
    font-family: 'Raleway', sans-serif;
}
.trust-note svg { width: 14px; height: 14px; color: var(--tp-success); }

/* Onboarding → Test geçiş loading overlay */
.onboarding-loading-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(26, 26, 46, 0.92);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
}
.onboarding-loader { text-align: center; color: #fff; }
.onboarding-loader h3 {
    font-family: 'Raleway', sans-serif; font-weight: 700;
    font-size: 1.4rem; margin: 1.5rem 0 0.5rem; color: #fff;
}
.onboarding-loader p {
    font-family: 'Raleway', sans-serif; font-size: 0.95rem;
    color: rgba(255,255,255,0.7); margin: 0;
}
.onboarding-spinner {
    width: 56px; height: 56px; margin: 0 auto;
    border: 5px solid rgba(255,255,255,0.15);
    border-top-color: var(--tp-primary);
    border-radius: 50%;
    animation: onb-spin 0.9s linear infinite;
}
@keyframes onb-spin { to { transform: rotate(360deg); } }

/* ── Step Tabs ── */
.onboarding-step-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 0.75rem;
}
.onboarding-step-tab {
    padding: 7px 20px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: default;
    font-family: 'Raleway', sans-serif;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
}
.onboarding-step-tab:first-child { border-radius: 10px 0 0 10px; }
.onboarding-step-tab:last-child  { border-radius: 0 10px 10px 0; }
.onboarding-step-tab + .onboarding-step-tab { border-left: none; }
.onboarding-step-tab.active {
    background: var(--tp-primary);
    color: #fff;
    border-color: var(--tp-primary);
}

/* ── Split Layout ── */
.onboarding-wrapper--split {
    max-width: 1060px;
}
.onboarding-split {
    display: flex;
    gap: 2rem;
    align-items: stretch;
}
.onboarding-split__left {
    flex: 2;
    min-width: 0;
    display: flex;
    align-items: flex-start;
}
.onboarding-split__right {
    flex: 3;
    display: flex;
    align-items: stretch;
}
.onboarding-split__right > form {
    width: 100%;
}

/* ── Info Panel ── */
.onboarding-info-panel {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
}
.onboarding-info {
    display: none;
}
.onboarding-info h3 {
    font-family: 'Varela Round', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1rem;
}
.onboarding-info p {
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin: 0;
}

/* Show info panel based on active step */
[data-active-step="1"] .onboarding-info[data-info-step="1"],
[data-active-step="2"] .onboarding-info[data-info-step="2"],
[data-active-step="3"] .onboarding-info[data-info-step="3"],
[data-active-step="4"] .onboarding-info[data-info-step="4"] {
    display: block;
}

.page-footer {
    text-align: center; margin-top: 1.5rem;
    font-size: 0.74rem; color: var(--tp-text-muted);
    font-family: 'Raleway', sans-serif;
}
.page-footer a { color: var(--tp-primary); text-decoration: none; }
.page-footer a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .onboarding-split {
        flex-direction: column;
    }
    .onboarding-split__left {
        order: -1;
    }
    .onboarding-info-panel {
        padding: 1rem;
    }
    .onboarding-step-tabs {
        flex-wrap: wrap;
        gap: 4px;
    }
    .onboarding-step-tab {
        padding: 8px 16px;
        font-size: 12px;
    }
    .onboarding-step-tab:first-child { border-radius: 8px 0 0 8px; }
    .onboarding-step-tab:last-child  { border-radius: 0 8px 8px 0; }
}

@media (max-width: 576px) {
    .onboarding-page { padding: 24px 12px; }
    .card-body-inner { padding: 1.75rem 1.5rem 1.5rem; }
    .step-question { font-size: 1.2rem; }
    .choice-card { padding: 0.85rem 1rem; }
}
