/* ============================================
   Admission Form (form app) - matches Apply-form-screen designs
   Scoped under .form-shell so srm app is unaffected.
   ============================================ */

/* ---- Title ---- */
.form-shell .form-title {
    font-family: inherit;
    font-size: 26px;
    color: var(--accent-orange);
    font-weight: 700;
    line-height: 1.25;
    margin: 4px 0 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.form-shell .header-brand-link {
    color: inherit;
    text-decoration: none;
}

.form-shell .header-brand-link:focus-visible {
    outline: 2px solid var(--accent-orange);
    outline-offset: 4px;
    border-radius: 4px;
}

.form-shell .form-window {
    padding: 14px 16px 18px;
}

/* ---- Step indicator (inside form content) ---- */
.form-progress {
    background: rgba(255, 140, 0, 0.08);
    border: 1px solid rgba(255, 140, 0, 0.25);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 14px;
    padding: 10px 12px;
}
.form-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.form-progress-label {
    color: var(--accent-orange);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.form-progress-percent {
    color: var(--accent-orange);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
    opacity: 0.85;
}
.form-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 140, 0, 0.18);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}
.form-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff8c00 0%, #ffb347 100%);
    border-radius: 999px;
    box-shadow: 0 0 8px rgba(255, 140, 0, 0.45);
    transition: width 350ms ease;
    min-width: 2px;
}

/* ---- Card (the dark navy section) ---- */
.wizard-card,
.auth-form {
    background: var(--bg-secondary);
    border: 1px solid rgba(255,140,0,0.25);
    border-radius: 12px;
    padding: 20px 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.wizard-section-title {
    color: var(--accent-orange);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,140,0,0.35);
    padding-bottom: 10px;
    margin-bottom: 4px;
}

/* ---- Form fields (underline-only style) ---- */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-field.is-hidden {
    display: none;
}
.scholarship-desc {
    margin: 2px 0 4px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 3px solid var(--accent-orange);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.55;
    color: #e9e9e9;
}
.scholarship-desc.is-hidden {
    display: none;
}
.scholarship-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 4px 0 6px;
}
.scholarship-option {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.scholarship-option:hover {
    border-color: rgba(245, 130, 32, 0.5);
}
.scholarship-option input[type="radio"],
.scholarship-option input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--accent-orange);
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
}
.scholarship-note {
    margin: 2px 0 10px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #9aa3b2;
}
.scholarship-option:has(input:checked) {
    border-color: var(--accent-orange);
    background: linear-gradient(135deg, rgba(245, 130, 32, 0.12), rgba(255, 255, 255, 0.03));
}
.scholarship-option-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.scholarship-option-title {
    font-weight: 700;
    color: #fff;
    font-size: 14.5px;
}
.scholarship-option-desc {
    font-size: 12.5px;
    line-height: 1.5;
    color: #c2c9d6;
}
.scholarship-fee {
    margin: 14px 0 4px;
    padding: 15px 17px;
    border: 1px solid rgba(245, 130, 32, 0.35);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(245, 130, 32, 0.10), rgba(255, 255, 255, 0.03));
}
.scholarship-fee-title {
    font-weight: 700;
    color: var(--accent-orange);
    letter-spacing: .3px;
    font-size: 13px;
    margin-bottom: 11px;
}
.scholarship-fee-rows {
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 14px;
}
.scholarship-fee-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}
.scholarship-fee-row span:first-child {
    color: #c2c9d6;
}
.scholarship-fee-row span:last-child {
    color: #fff;
    font-weight: 600;
}
.scholarship-fee-row span.strong {
    font-weight: 700;
    color: var(--accent-orange);
}
.form-label {
    color: var(--accent-orange);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

/* Use !important so cached generic input rules can't re-box these */
.form-shell .form-field input[type="text"],
.form-shell .form-field input[type="email"],
.form-shell .form-field input[type="password"],
.form-shell .form-field input[type="tel"],
.form-shell .form-field input[type="number"],
.form-shell .form-field input[type="date"],
.form-shell .form-field select {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.45) !important;
    border-radius: 0 !important;
    color: #fff !important;
    font-size: 14px !important;
    padding: 6px 2px 8px !important;
    outline: none !important;
    font-family: inherit !important;
    width: 100% !important;
    box-shadow: none !important;
    min-height: 0 !important;
}
/* Password show/hide eye toggle (signup / login / reset password) */
.pw-toggle-wrap { position: relative; display: block; }
.pw-toggle-wrap input[type="password"],
.pw-toggle-wrap input[type="text"] { padding-right: 42px !important; }
.pw-toggle {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    background: none; border: none; padding: 4px; margin: 0; cursor: pointer;
    color: rgba(255,255,255,0.55); display: inline-flex; align-items: center; line-height: 0;
}
.pw-toggle:hover { color: #fff; }
.pw-toggle .pw-eye-off { display: none; }
.pw-toggle.is-showing .pw-eye { display: none; }
.pw-toggle.is-showing .pw-eye-off { display: inline-flex; }
/* "(optional)" hint tag next to a field label (e.g. Upload Documents step) */
.form-label .optional-tag {
    color: rgba(255,255,255,0.5);
    font-weight: 400;
    font-size: 0.82em;
    font-style: italic;
    letter-spacing: 0.2px;
    margin-left: 5px;
    text-transform: none;
}
/* Read-only display value (e.g. the selected diploma shown at the top of the
   diploma single-step form). */
.form-shell .form-field .form-display-value {
    color: #f58220;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 6px 2px 8px;
    border-bottom: 1px solid rgba(245,130,32,0.4);
}
.change-program-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f58220;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(245,130,32,0.5);
}
.change-program-link:hover { color: #ffa64d; }

/* ── Inline "Change Program" picker (program / diploma step) ── */
.change-program-block { margin: 14px 0 4px; }
.cp-selected {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 10px;
}
.cp-selected-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #f58220;
}
.cp-selected-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.2px;
}
.change-program-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #f58220;
    background: linear-gradient(135deg, rgba(245,130,32,0.14), rgba(245,130,32,0.05));
    border: 1.5px solid rgba(245,130,32,0.55);
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.1s;
}
.change-program-btn:hover {
    background: linear-gradient(135deg, rgba(245,130,32,0.22), rgba(245,130,32,0.08));
    border-color: #f58220;
}
.change-program-btn:active { transform: scale(0.99); }
.change-program-btn svg { flex: 0 0 auto; }

.change-program-panel {
    margin-top: 14px;
    padding: 18px;
    border: 1px solid rgba(245,130,32,0.3);
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.change-program-panel[hidden] { display: none; }
.change-program-panel .cp-field { display: flex; flex-direction: column; gap: 6px; }
.change-program-panel select {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    color: #fff;
    background: rgba(20,26,46,0.9);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
}
.change-program-panel select:focus {
    outline: none;
    border-color: var(--accent-orange);
}
.change-program-panel .cp-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}
.change-program-panel .cp-save { flex: 1; }
.cp-panel-error {
    margin: 0;
    color: #ff8a8a;
    font-size: 13.5px;
}
.cp-panel-error[hidden] { display: none; }
.form-shell .form-field input::placeholder {
    color: rgba(255,255,255,0.32);
    letter-spacing: 0.5px;
}
.form-shell .form-field input:focus,
.form-shell .form-field select:focus {
    border-bottom-color: var(--accent-orange) !important;
}
.form-shell .form-field input:-webkit-autofill {
    -webkit-text-fill-color: #fff !important;
    -webkit-box-shadow: 0 0 0 1000px var(--bg-secondary) inset !important;
    transition: background-color 9999s ease-in-out 0s;
}

.form-shell .form-field input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(60%) sepia(80%) saturate(2000%) hue-rotate(360deg);
    opacity: 0.7;
    cursor: pointer;
}

.form-shell .form-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='%23FF8C00' d='M6 8 0 0h12z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 4px center !important;
    background-size: 10px 7px !important;
    padding-right: 22px !important;
}
.form-shell .form-field select option {
    background: var(--bg-secondary);
    color: #fff;
}

/* ---- Radios (gender) ---- */
.radio-row {
    display: flex;
    gap: 28px;
    padding: 4px 0 2px;
}
.radio-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #fff;
}
.radio-pill input[type="radio"] {
    accent-color: var(--accent-orange);
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

/* ---- Checkbox row ---- */
.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    cursor: pointer;
    color: #fff;
}
.checkbox-row input[type="checkbox"] {
    accent-color: var(--accent-orange);
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

/* ---- Buttons ---- */
.primary-cta {
    background: var(--accent-orange);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 22px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: opacity 0.15s, transform 0.05s;
    text-transform: uppercase;
    width: 100%;
    text-decoration: none;
}
.primary-cta:hover { opacity: 0.92; }
.primary-cta:active { transform: scale(0.99); }
.cta-arrow {
    font-size: 22px;
    line-height: 1;
    font-weight: 400;
}

.btn-secondary {
    background: transparent;
    color: var(--accent-orange);
    border: 1px solid var(--accent-orange);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-secondary:hover { background: rgba(255,140,0,0.1); }

.wizard-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
}
.wizard-actions .btn-secondary { flex: 0 0 auto; min-width: 90px; }
.wizard-actions .primary-cta { flex: 1; }

/* Diploma final step: stack the buttons full-width with SUBMIT on top and
   Logout below it (column-reverse keeps the submit button first visually). */
.wizard-actions.actions-stacked {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 12px;
}
.wizard-actions.actions-stacked .primary-cta,
.wizard-actions.actions-stacked .btn-secondary {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    text-align: center;
}

/* ---- Auth screens (login / signup) ---- */
.auth-form .primary-cta { margin-top: 4px; }

.form-row-end {
    display: flex;
    justify-content: flex-end;
    margin-top: -8px;
}
.link-muted {
    color: var(--text-gray);
    font-size: 12px;
    text-decoration: none;
}
.link-muted:hover { color: var(--accent-orange); }

.auth-switch {
    text-align: center;
    color: var(--text-gray);
    font-size: 13px;
    margin-top: 14px;
}
.auth-switch a {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 700;
    margin-left: 4px;
}

/* ---- Errors ---- */
.form-error {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #ff8a95;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
}
.form-success {
    background: rgba(37, 179, 104, 0.16);
    border: 1px solid rgba(37, 179, 104, 0.5);
    color: #8ff0bd;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
}
.auth-intro {
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}
.field-error {
    color: #ff8a95;
    font-size: 11px;
    margin-top: 2px;
}
/* Inline "please fill this field" helper text (client-side validation). */
.field-help-text {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ff8a95;
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
}
.field-help-text::before {
    content: "\26a0";  /* ⚠ */
    font-size: 12px;
}
.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea,
.form-field.is-invalid .pcb-input {
    border-color: #ff5a6a !important;
    border-bottom-color: #ff5a6a !important;
}
.form-field.is-invalid .radio-row {
    outline: 1px solid rgba(255,90,106,0.5);
    outline-offset: 4px;
    border-radius: 8px;
}
.form-messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}
.form-message {
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    padding: 9px 12px;
}
.form-message.error {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #ff8a95;
}
.form-message.success {
    background: rgba(37, 179, 104, 0.16);
    border: 1px solid rgba(37, 179, 104, 0.5);
    color: #8ff0bd;
}

/* ---- Review grid (step 5) ---- */
.review-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.review-grid > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.08);
}
.review-key {
    color: var(--accent-orange);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    flex-shrink: 0;
}
.review-val {
    color: #fff;
    font-size: 13px;
    text-align: right;
}

/* ── Audio narration buttons ── */
.form-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.audio-btn {
    background: #ff7a00; color: #fff; border: none; border-radius: 50%;
    width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; padding: 0; flex-shrink: 0;
}
.audio-btn:hover { background: #e66e00; }
.audio-btn-lg { width: 28px; height: 28px; vertical-align: middle; margin-left: 6px; }

/* ── Section intro text + headers ── */
.wizard-section-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.wizard-section-title { font-family: 'Caveat', cursive; font-size: 26px; color: var(--accent-orange); margin: 0; }
.section-intro-text { font-size: 13px; color: #555; line-height: 1.45; margin: 0 0 18px; }

/* ── Field tweaks for new types ── */
.form-field textarea {
    width: 100%; border: none !important; border-bottom: 1px solid #c9c9c9 !important;
    background: transparent; padding: 6px 0; font-size: 14px; resize: vertical;
    font-family: inherit; outline: none;
}
.form-field textarea:focus { border-bottom-color: #6a3aff !important; }
.form-field input[type="file"] {
    border: 1px dashed #c9c9c9 !important; padding: 8px; font-size: 12px; width: 100%;
    background: #fafafa; border-radius: 6px;
}
.checkbox-row { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.checkbox-row input { width: auto !important; margin-top: 3px; }

/* ── Dark-theme parity for partner-form field types ──
   The partner / franchise wizard renders raw Django widgets (textarea,
   RadioSelect yes/no, file). Scope dark overrides to .form-shell so these
   match the Apply Now form's underline-style fields exactly. */
.form-shell .form-field textarea {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.45) !important;
    border-radius: 0 !important;
    color: #fff !important;
    font-size: 14px !important;
    padding: 6px 2px 8px !important;
    outline: none !important;
    font-family: inherit !important;
    width: 100% !important;
    box-shadow: none !important;
    resize: vertical;
}
.form-shell .form-field textarea:focus {
    border-bottom-color: var(--accent-orange) !important;
}
.form-shell .form-field textarea::placeholder {
    color: rgba(255,255,255,0.32);
    letter-spacing: 0.5px;
}
/* Django RadioSelect (e.g. partner Yes/No questions) renders a <div id="id_…">
   wrapper with one <div><label><input type=radio>…</label></div> per option.
   Lay the options out horizontally and style them like the gender radios. */
.form-shell .form-field > div[id^="id_"] {
    display: flex;
    gap: 28px;
    padding: 4px 0 2px;
    flex-wrap: wrap;
}
.form-shell .form-field > div[id^="id_"] label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #fff;
    font-weight: 400;
    margin: 0;
}
.form-shell .form-field input[type="radio"] {
    accent-color: var(--accent-orange);
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}
.form-shell .form-field input[type="file"] {
    border: 1px dashed rgba(255, 140, 0, 0.5) !important;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    padding: 10px;
    font-size: 12px;
    width: 100%;
    border-radius: 6px;
}
.checkbox-text { font-size: 13px; color: #333; line-height: 1.4; }
.field-help { display: block; font-size: 11px; color: #888; margin-top: 3px; }
.file-current { display: block; font-size: 11px; color: #6a3aff; margin-top: 4px; }

/* ── Linear progress bar (compact) ── */
.form-progress-bar { height: 5px; }
.form-progress-label, .form-progress-percent { font-size: 10px; }

/* ── Searchable program combobox ── */
.pcb-wrap { position: relative; }
.pcb-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    color: #fff;
    background: rgba(20,26,46,0.9);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f58220' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
    padding-left: 38px;
}
.pcb-input:focus { outline: none; border-color: var(--accent-orange); }
.pcb-input::placeholder { color: rgba(255,255,255,0.4); }
.pcb-panel {
    position: absolute;
    z-index: 40;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    max-height: 280px;
    overflow-y: auto;
    background: #141a2e;
    border: 1px solid rgba(245,130,32,0.4);
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.5);
    padding: 6px;
}
.pcb-group {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #f58220;
    padding: 8px 10px 4px;
}
.pcb-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 6px 4px; }
.pcb-item {
    padding: 10px 12px;
    font-size: 14.5px;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
}
.pcb-item:hover, .pcb-item.is-active { background: rgba(245,130,32,0.18); }
.pcb-item.is-disabled { color: rgba(255,255,255,0.35); cursor: not-allowed; }
.pcb-empty { padding: 14px 12px; font-size: 14px; color: rgba(255,255,255,0.5); }

/* ── Wizard actions row ── */
.wizard-actions { display: flex; gap: 12px; margin-top: 18px; align-items: center; }
.btn-secondary {
    flex: 0 0 auto; padding: 10px 18px; border-radius: 999px;
    background: #f1eefd; color: #6a3aff; text-decoration: none; font-weight: 600; font-size: 13px;
    border: 1px solid #d8cffb;
}
.wizard-actions .primary-cta { flex: 1; }

/* ── Auth helpers ── */
.form-error { background: #ffe8e8; color: #b00020; padding: 8px 12px; border-radius: 6px; font-size: 12px; margin-bottom: 12px; }
.field-error { color: #b00020; font-size: 11px; display: block; margin-top: 3px; }

/* ── Additions: audio narration layout ───────────────────── */
.form-shell .form-title-row {
    display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.form-shell .form-title-row .form-title { margin: 0; }

.form-shell .wizard-section-row {
    display: flex; align-items: center; gap: 10px;
    border-bottom: 1px solid rgba(255,140,0,0.35);
    padding-bottom: 10px; margin-bottom: 4px;
}
.form-shell .wizard-section-row .wizard-section-title {
    font-family: inherit; color: var(--accent-orange);
    font-size: 13px; font-weight: 700; letter-spacing: 1.4px;
    text-transform: uppercase;
    border: none; padding: 0; margin: 0;
}
.form-shell .audio-btn-section {
    width: 28px; height: 28px;
}
.form-shell .audio-btn-inline {
    margin-left: 8px;
    vertical-align: middle;
}

.form-shell .review-block {
    border-top: 1px dashed rgba(255,255,255,0.1);
    padding-top: 10px;
}
.form-shell .review-block:first-of-type { border-top: none; padding-top: 0; }
.form-shell .review-block-title {
    color: var(--accent-orange);
    font-size: 12px; font-weight: 700; letter-spacing: 1.2px;
    text-transform: uppercase;
    display: flex; justify-content: space-between; align-items: center;
    margin: 0 0 6px;
}
.form-shell .review-edit {
    color: #fff; background: rgba(255,140,0,0.18);
    border: 1px solid var(--accent-orange);
    border-radius: 4px; padding: 2px 8px;
    font-size: 10px; text-decoration: none; letter-spacing: 0.5px;
}
.form-shell .review-edit:hover { background: var(--accent-orange); }

.form-shell .file-existing {
    color: rgba(255,255,255,0.6); font-size: 11px; margin-top: 2px;
    word-break: break-all;
}
.form-shell .form-field input[type="file"] {
    color: #fff !important; background: transparent !important;
    border: 1px dashed rgba(255,140,0,0.45) !important;
    border-radius: 6px !important;
    padding: 8px !important; font-size: 12px !important; width: 100% !important;
}

/* Field narration intentionally has no avatar ring/outline. */
.avatar-speaking {
    box-shadow: none !important;
    outline: none !important;
}

/* ============================================
   Mobile responsiveness (phones ≤ 480px)
   ============================================ */
@media (max-width: 480px) {
    /* 16px inputs stop iOS Safari from auto-zooming the page on focus. */
    .form-shell .form-field input[type="text"],
    .form-shell .form-field input[type="email"],
    .form-shell .form-field input[type="password"],
    .form-shell .form-field input[type="tel"],
    .form-shell .form-field input[type="number"],
    .form-shell .form-field input[type="date"],
    .form-shell .form-field select {
        font-size: 16px !important;
        padding: 8px 2px 9px !important;
    }
    .form-shell .form-title { font-size: 22px; letter-spacing: 0.8px; }
    .form-shell .form-window { padding: 12px 12px 16px; }
    .wizard-card,
    .auth-form { padding: 16px 14px 18px; gap: 16px; }

    /* Stack the action buttons full-width and tap-friendly. */
    .wizard-actions { flex-wrap: wrap; gap: 10px; }
    .wizard-actions .btn-secondary,
    .wizard-actions .primary-cta { width: 100%; flex: 1 1 100%; min-width: 0; }

    /* Gender / Yes-No radios wrap instead of overflowing the row. */
    .radio-row { gap: 14px 22px; flex-wrap: wrap; }

    /* Compact the Change Program control so it doesn't dominate on mobile. */
    .change-program-block { margin: 8px 0 2px; }
    .cp-selected-label { font-size: 11px; }
    .cp-selected-name { font-size: 14.5px; }
    .change-program-btn {
        padding: 9px 12px;
        font-size: 13px;
        gap: 7px;
        border-radius: 11px;
    }
    .change-program-btn svg { width: 15px; height: 15px; }
    .change-program-panel { padding: 14px; gap: 13px; }
    .change-program-panel .cp-actions { flex-wrap: wrap; }
    .change-program-panel .cp-actions .btn-secondary,
    .change-program-panel .cp-save { width: 100%; flex: 1 1 100%; }

    /* Combobox: 16px input (no iOS zoom) and a taller touch list. */
    .pcb-input { font-size: 16px !important; padding-left: 38px !important; }
    .pcb-panel { max-height: 60vh; }
    .pcb-item { padding: 12px; font-size: 15px; }

    /* Review rows stack the key above the value on narrow screens. */
    .review-grid > div { flex-direction: column; gap: 2px; }
    .review-val { text-align: left; }

    .form-shell .form-field input[type="file"] { font-size: 13px !important; }
}
