/* apply.coach — wizard start.php */

.wizard {
    padding: 60px 0 100px;
    min-height: calc(100vh - 70px);
}

.wizard-inner {
    max-width: 720px;
}

.wiz-progress {
    margin-bottom: 36px;
}

.wiz-progress-bar {
    height: 4px;
    background: var(--surface);
    border-radius: 999px;
    overflow: hidden;
}

.wiz-progress-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #8b5cf6);
    transition: width 0.35s ease;
    width: 33%;
}

.wiz-step-label {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--text-muted);
    text-align: right;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wiz-step {
    display: none;
    animation: wiz-fade 0.25s ease;
}

.wiz-step.is-active { display: block; }

@keyframes wiz-fade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wiz-step h1 {
    font-size: clamp(28px, 4vw, 36px);
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    font-weight: 700;
}

.wiz-lead {
    color: var(--text-muted);
    font-size: 16.5px;
    margin: 0 0 36px;
    max-width: 580px;
}

/* ─── Form ──────────────────────────────────────────────────────────────── */
.wiz-form { width: 100%; }

.wiz-field {
    display: block;
    margin-bottom: 22px;
}

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

.wiz-label small {
    display: inline;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 6px;
}

.wiz-form input[type="text"],
.wiz-form input[type="email"],
.wiz-form input[type="url"],
.wiz-form textarea {
    width: 100%;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 15.5px;
    padding: 13px 15px;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.wiz-form input:focus,
.wiz-form textarea:focus {
    border-color: var(--accent);
    background: #0f1420;
}

.wiz-form textarea {
    resize: vertical;
    min-height: 200px;
    line-height: 1.5;
}

.wiz-hint {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 8px;
}

.btn-block { width: 100%; }

.wiz-sep {
    text-align: center;
    margin: 22px 0;
    position: relative;
    color: var(--text-muted);
    font-size: 13px;
}

.wiz-sep::before,
.wiz-sep::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 24px);
    height: 1px;
    background: var(--border);
}
.wiz-sep::before { left: 0; }
.wiz-sep::after  { right: 0; }

.wiz-sep span {
    background: var(--bg);
    padding: 0 12px;
    position: relative;
}

#btn-google {
    margin-top: 0;
}

/* ─── Tabs ──────────────────────────────────────────────────────────────── */
.wiz-tabs {
    display: flex;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
    width: fit-content;
}

.wiz-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, color 0.15s ease;
}

.wiz-tab:hover:not(.is-active) { color: var(--text); }
.wiz-tab.is-active {
    background: var(--bg);
    color: var(--text);
}

.wiz-tab-panel { display: none; }
.wiz-tab-panel.is-active { display: block; }

/* ─── Actions row ───────────────────────────────────────────────────────── */
.wiz-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 32px;
}

/* ─── Inline error banner (Step 2) ──────────────────────────────────────── */
.wiz-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin: 8px 0 18px;
    font-size: 14px;
    line-height: 1.5;
}

/* ─── Spinner inside the submit button ──────────────────────────────────── */
.s2-submit-loading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.spinner {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: white;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

/* ─── Recap panel (Step 3, on top of personas) ──────────────────────────── */
.wiz-recap {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 32px;
}

.wiz-recap-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.wiz-recap-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.wiz-recap-redo {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    text-align: right;
    padding: 0;
    line-height: 1.4;
}
.wiz-recap-redo:hover { color: var(--text); }
.wiz-recap-redo strong {
    display: block;
    color: var(--accent);
    font-weight: 600;
}
.wiz-recap-redo:hover strong { color: var(--accent-hover); }

.wiz-recap-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0;
}

.wiz-recap-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    padding: 8px 0;
    border-top: 1px solid var(--border);
}
.wiz-recap-row:first-child { border-top: none; padding-top: 0; }

.wiz-recap-row dt {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}

.wiz-recap-row dd {
    color: var(--text);
    font-size: 14.5px;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .wiz-recap-row { grid-template-columns: 1fr; gap: 4px; }
    .wiz-recap-header { flex-direction: column; }
}

/* ─── Persona pick (Step 3) ─────────────────────────────────────────────── */
.wiz-personas {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.persona-pick {
    position: relative;
    cursor: pointer;
    display: block;
}

.persona-pick input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.persona-pick:has(input:checked) {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.persona-pick .persona-name,
.persona-pick .persona-desc {
    display: block;
}
