/* ── Form inputs ──────────────────────────────────────────────────── */
.form-input {
    width: 100%;
    padding: 0.6rem 0.875rem;
    border: 1.5px solid var(--border-med);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-family: var(--font);
    color: var(--text-1);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: border-color .15s, box-shadow .15s;
    appearance: none;
}
.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}
.form-input::placeholder { color: var(--text-3); }
.form-input.error        { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.08); }
textarea.form-input      { resize: vertical; min-height: 80px; }
select.form-input {
    background-color: var(--surface);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23a09ec0' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.2em;
    padding-right: 2.5rem;
}

/* ── Toggle switch ────────────────────────────────────────────────── */
.toggle-switch { position: relative; display: inline-flex; align-items: center; cursor: pointer; gap: 10px; }
.toggle-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-track {
    width: 40px; height: 22px;
    background: var(--surface-4);
    border: 1px solid var(--border-med);
    border-radius: 9999px;
    transition: background .2s, border-color .2s;
    position: relative;
    flex-shrink: 0;
}
.toggle-track::after {
    content: '';
    position: absolute; top: 2px; left: 2px;
    width: 16px; height: 16px;
    background: var(--text-3);
    border-radius: 50%;
    transition: transform .2s, background .2s;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.toggle-switch input:checked + .toggle-track { background: var(--primary); border-color: var(--primary); }
.toggle-switch input:checked + .toggle-track::after { transform: translateX(18px); background: #fff; }

/* ── Upload drop zone ─────────────────────────────────────────────── */
.photo-upload-zone {
    border: 2px dashed var(--border-med);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.photo-upload-zone:hover    { border-color: var(--primary); background: var(--primary-soft); }
.photo-upload-zone.has-image { border-color: var(--primary); border-style: solid; }

/* ── Step indicator ───────────────────────────────────────────────── */
.step-dot {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 700;
    transition: all .2s;
    flex-shrink: 0;
}
.step-dot.done    { background: var(--primary); color: #fff; }
.step-dot.active  { background: var(--surface); color: var(--primary); border: 2px solid var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.step-dot.pending { background: var(--surface-3); color: var(--text-3); border: 2px solid var(--border-med); }
.step-line        { flex: 1; height: 2px; background: var(--border-med); transition: background .3s; }
.step-line.done   { background: var(--primary); }

/* ── Cred box ─────────────────────────────────────────────────────── */
.cred-box {
    background: var(--surface-2);
    border: 1.5px solid var(--border-med);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-family: 'Courier New', monospace;
    font-size: .875rem;
    display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
    color: var(--text-2);
}

/* ── Card ─────────────────────────────────────────────────────────── */
.card {
    background: var(--surface);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

/* ── Badge ────────────────────────────────────────────────────────── */
.badge        { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 9999px; font-size: .7rem; font-weight: 600; line-height: 1.6; }
.badge-purple { background: var(--primary-soft);         color: var(--primary); border: 1px solid var(--primary-border); }
.badge-green  { background: rgba(16,185,129,.08);  color: #059669;   border: 1px solid rgba(16,185,129,.15); }
.badge-amber  { background: rgba(245,158,11,.08);  color: #b45309;   border: 1px solid rgba(245,158,11,.15); }
.badge-red    { background: rgba(239,68,68,.08);   color: #dc2626;   border: 1px solid rgba(239,68,68,.15);  }
.badge-cyan   { background: rgba(6,182,212,.08);   color: #0891b2;   border: 1px solid rgba(6,182,212,.15);  }