/*!
 * Career DNA System — Wizard CSS
 */

.cds-wizard-page {
    min-height: 100vh;
    background: var(--cds-bg);
    display: flex;
    flex-direction: column;
}

/* ============================================================
 * HEADER
 * ============================================================ */
.cds-wizard-header {
    background: #fff;
    border-bottom: 1px solid var(--cds-border);
    padding: 16px 24px;
}
.cds-wizard-header-inner {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.cds-wizard-brand img { max-height: 36px; }
.cds-wizard-brand .cds-wordmark {
    font-size: 18px;
    font-weight: 700;
    color: var(--cds-primary);
    letter-spacing: -0.3px;
}
.cds-wizard-user {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
}
.cds-logout-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--cds-muted);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.15s;
}
.cds-logout-link:hover {
    color: var(--cds-error);
    background: #FEF2F2;
}

/* ============================================================
 * SHELL
 * ============================================================ */
.cds-wizard-shell {
    flex: 1;
    padding: 32px 20px 60px;
    display: flex;
    justify-content: center;
}
.cds-wizard-card {
    background: #fff;
    border: 1px solid var(--cds-border);
    border-radius: 16px;
    padding: 40px 44px;
    max-width: 640px;
    width: 100%;
    box-shadow: 0 4px 24px rgba(17, 24, 39, 0.06);
}

.cds-wizard-intro { text-align: center; margin-bottom: 28px; }
.cds-wizard-intro h1 {
    font-size: 26px;
    font-weight: 600;
    color: var(--cds-text);
    margin: 0 0 8px;
    letter-spacing: -0.4px;
}
.cds-wizard-intro p { color: var(--cds-muted); margin: 0; font-size: 14px; }

/* ============================================================
 * PROGRESS BAR
 * ============================================================ */
.cds-progress { margin: 0 0 32px; }
.cds-progress-bar {
    height: 6px;
    background: var(--cds-border);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 14px;
}
.cds-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cds-primary), var(--cds-secondary));
    border-radius: 100px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cds-progress-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.cds-progress-step { text-align: center; }
.cds-progress-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--cds-border);
    color: var(--cds-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
    transition: all 0.2s;
}
.cds-progress-step.is-active .cds-progress-step-dot {
    background: var(--cds-primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.cds-progress-step-label {
    font-size: 11px;
    color: var(--cds-muted);
    font-weight: 500;
}
.cds-progress-step.is-active .cds-progress-step-label {
    color: var(--cds-primary);
    font-weight: 600;
}

/* ============================================================
 * STEP CONTENT
 * ============================================================ */
.cds-wizard-step { animation: cds-fade-in 0.3s ease; }
@keyframes cds-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.cds-step-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--cds-text);
    margin: 0 0 22px;
}

textarea.cds-input { resize: vertical; font-family: inherit; min-height: 80px; }
select.cds-input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B7280' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

/* ============================================================
 * PICTURE CHOOSER (step 1)
 * ============================================================ */
.cds-picture-chooser {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 28px;
}
.cds-picture-preview {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--cds-bg);
    border: 3px solid var(--cds-border);
    overflow: hidden;
}
.cds-picture-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cds-tab-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--cds-border);
}
.cds-tab-btn {
    background: transparent;
    border: none;
    padding: 8px 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--cds-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.cds-tab-btn.is-active { color: var(--cds-primary); border-bottom-color: var(--cds-primary); }

.cds-upload-btn { display: inline-block; }
.cds-upload-btn .cds-btn { cursor: pointer; }

.cds-avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 10px;
}
.cds-avatar-choice {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    background: var(--cds-bg);
    border: 2px solid transparent;
    padding: 2px;
    cursor: pointer;
    transition: all 0.15s;
}
.cds-avatar-choice img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.cds-avatar-choice:hover { transform: scale(1.05); }
.cds-avatar-choice.is-selected { border-color: var(--cds-primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }

/* ============================================================
 * RADIO CARDS
 * ============================================================ */
.cds-radio-row, .cds-radio-col {
    display: grid;
    gap: 10px;
}
.cds-radio-row { grid-template-columns: 1fr 1fr; }
.cds-radio-col { grid-template-columns: 1fr; }

.cds-radio-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--cds-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
    background: #fff;
    font-size: 14px;
    color: var(--cds-text);
}
.cds-radio-card:hover { border-color: var(--cds-secondary); background: #F8FAFC; }
.cds-radio-card input { accent-color: var(--cds-primary); }
.cds-radio-card:has(input:checked) {
    border-color: var(--cds-primary);
    background: #EFF6FF;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

/* ============================================================
 * FOOTER NAV
 * ============================================================ */
.cds-wizard-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--cds-border);
}
.cds-wizard-footer .cds-btn-primary { margin-left: auto; min-width: 160px; }

/* ============================================================
 * Mobile
 * ============================================================ */
@media (max-width: 640px) {
    .cds-wizard-card { padding: 28px 22px; border-radius: 12px; }
    .cds-wizard-intro h1 { font-size: 22px; }
    .cds-progress-step-label { display: none; }
    .cds-picture-chooser { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .cds-picture-preview { width: 140px; height: 140px; }
    .cds-radio-row { grid-template-columns: 1fr; }
    .cds-wizard-footer { flex-direction: column-reverse; }
    .cds-wizard-footer .cds-btn { width: 100%; }
    .cds-wizard-footer .cds-btn-primary { margin-left: 0; }
}
