/* ============================================================
   Arise Medical Academy — Registration App v2
   Modern, professional redesign (2025)
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
    --primary: #0F4C81;
    --primary-light: #1A6BB5;
    --primary-dark: #0A3660;
    --accent: #00A878;
    --accent-light: #E6F9F3;
    --warning: #E8913A;
    --warning-light: #FFF5EB;
    --error: #DC3545;
    --error-light: #FEF2F2;
    --surface: #FFFFFF;
    --bg: #F0F4F8;
    --bg-subtle: #F8FAFC;
    --text-primary: #1A1D23;
    --text-secondary: #5A6478;
    --text-muted: #94A3B8;
    --border: #E2E8F0;
    --border-strong: #CBD5E1;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.10);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Courier New', monospace;
    --transition: 200ms ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Page Progress Bar ---------- */
.page-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    transition: width 500ms cubic-bezier(.4,0,.2,1);
    z-index: 1100;
}

/* ---------- Top Bar ---------- */
.top-bar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar__logo { height: 48px; width: auto; }

.top-bar__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.top-bar__title span { color: #FFFFFF; font-weight: 700; }

/* ---------- Step Indicator ---------- */
.stepper {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 24px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: sticky;
    top: 72px;
    z-index: 999;
}

.stepper__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    min-width: 80px;
}

.stepper__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-muted);
    transition: all 350ms ease;
}

.stepper__label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color var(--transition);
}

.stepper__connector {
    flex: 1;
    height: 2px;
    background: var(--border);
    min-width: 40px;
    max-width: 100px;
    margin-bottom: 28px; /* align with icon center */
    transition: background 350ms ease;
}

/* Step states */
.stepper__step.active .stepper__icon {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(15,76,129,0.15);
    animation: stepPulse 2s ease-in-out infinite;
}
.stepper__step.active .stepper__label { color: var(--primary); font-weight: 600; }

.stepper__step.completed .stepper__icon {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}
.stepper__step.completed .stepper__label { color: var(--accent); }

.stepper__connector.completed { background: var(--accent); }

@keyframes stepPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(15,76,129,0.15); }
    50% { box-shadow: 0 0 0 8px rgba(15,76,129,0.08); }
}

/* Mobile stepper */
.stepper-mobile {
    display: none;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    position: sticky;
    top: 72px;
    z-index: 999;
}
.stepper-mobile__text {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.stepper-mobile__bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}
.stepper-mobile__fill {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    transition: width 500ms cubic-bezier(.4,0,.2,1);
}

/* ---------- Main Container ---------- */
.reg-container {
    max-width: 720px;
    margin: 32px auto;
    padding: 0 16px;
}

.reg-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
}

/* ---------- Form Sections ---------- */
.form-section {
    padding: 40px;
    display: none;
}

.form-section.active {
    display: block;
    animation: fadeInUp 350ms ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-align: center;
}

.section-subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
}

/* ---------- Form Elements ---------- */
.form-group { margin-bottom: 24px; }

.form-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.required-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--error);
    display: inline-block;
    flex-shrink: 0;
}

.form-control,
.form-select {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 11px 16px;
    font-size: 0.9375rem;
    font-family: var(--font);
    color: var(--text-primary);
    background: var(--surface);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-control::placeholder { color: var(--text-muted); }

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15,76,129,0.1);
}

.form-control.error,
.form-select.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(220,53,69,0.1);
    animation: fieldShake 300ms ease;
}

@keyframes fieldShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

.error-message {
    color: var(--error);
    font-size: 0.8125rem;
    margin-top: 4px;
    display: none;
}
.error-message.show { display: block; }

.helper-text {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 4px;
}

select option { color: var(--text-primary); background: white; }

/* ---------- Radio & Checkbox ---------- */
.radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    flex: 1;
    min-width: 120px;
}

.radio-item:hover { border-color: var(--primary); background: rgba(15,76,129,0.03); }

.radio-item input[type="radio"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-item.selected {
    border-color: var(--primary);
    background: rgba(15,76,129,0.06);
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
}

.checkbox-item:hover { border-color: var(--primary); }

.checkbox-item input[type="checkbox"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

/* ---------- Alert / Info Cards ---------- */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 0.9375rem;
    font-weight: 400;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}
.alert i { margin-top: 2px; flex-shrink: 0; }

.alert-info {
    background: rgba(15,76,129,0.06);
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

.alert-success {
    background: var(--accent-light);
    color: #047857;
    border-left: 3px solid var(--accent);
}

.alert-danger {
    background: var(--error-light);
    color: var(--error);
    border-left: 3px solid var(--error);
}

.alert-warning {
    background: var(--warning-light);
    color: #92400E;
    border-left: 3px solid var(--warning);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    font-family: var(--font);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    min-height: 44px;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
}
.btn-secondary:hover {
    background: var(--bg);
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 500;
    padding: 8px 16px;
    cursor: pointer;
}
.btn-link:hover { text-decoration: underline; }

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

.btn .spinner-sm {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    gap: 16px;
}

/* ---------- CAPTCHA ---------- */
.captcha-wrapper {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
}

.captcha-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

#captchaCanvas {
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid var(--border);
}

.captcha-refresh {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 1rem;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.captcha-refresh:hover { background: rgba(15,76,129,0.08); transform: rotate(180deg); }

.captcha-input-group {
    position: relative;
}
.captcha-input-group i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.875rem;
}
.captcha-input-group .form-control { padding-left: 38px; }

/* ---------- OTP Input ---------- */
.otp-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 24px 0 16px;
}

.otp-box {
    width: 52px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--transition);
    color: var(--text-primary);
}
.otp-box:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15,76,129,0.1);
}

/* ---------- File Upload Zone ---------- */
.upload-zone {
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg-subtle);
    position: relative;
}
.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(15,76,129,0.03);
}

.upload-zone__icon {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.upload-zone__text {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.upload-zone__text span { color: var(--primary); font-weight: 600; }

.upload-zone__hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-preview {
    display: none;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-top: 12px;
}
.upload-preview.show { display: flex; }

.upload-preview img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.upload-preview__info { flex: 1; text-align: left; }
.upload-preview__name { font-size: 0.875rem; font-weight: 500; color: var(--text-primary); }
.upload-preview__size { font-size: 0.75rem; color: var(--text-muted); }

.upload-preview__remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 1rem;
    transition: color var(--transition);
}
.upload-preview__remove:hover { color: var(--error); }

/* ---------- Collapsible Sub-Sections ---------- */
.sub-section {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
}

.sub-section__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-subtle);
    cursor: pointer;
    user-select: none;
    transition: background var(--transition);
}
.sub-section__header:hover { background: var(--bg); }

.sub-section__icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(15,76,129,0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.sub-section__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.sub-section__badge {
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--bg);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.sub-section__chevron {
    color: var(--text-muted);
    transition: transform 300ms ease;
}
.sub-section.open .sub-section__chevron { transform: rotate(180deg); }

.sub-section__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 400ms ease;
}
.sub-section.open .sub-section__body { max-height: 2000px; }

.sub-section__content { padding: 20px; }

/* ---------- Fee Summary ---------- */
.fee-summary {
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    margin: 24px 0;
}

.fee-summary h4 {
    padding: 16px 20px;
    background: var(--bg-subtle);
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}
.fee-row:nth-child(even) { background: var(--bg-subtle); }

.fee-row:last-child {
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--primary);
    border-top: 2px solid var(--border);
    background: rgba(15,76,129,0.04);
    padding: 16px 20px;
}

/* ---------- Payment Section ---------- */
.payment-summary {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.payment-summary__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
}

.payment-summary__item {
    font-size: 0.9375rem;
}
.payment-summary__item strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 2px;
}
.payment-summary__amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

/* Payment Option Rows */
.payment-options { margin: 24px 0; }
.payment-options h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    margin-bottom: 8px;
}
.payment-option:hover { border-color: var(--primary-light); background: rgba(15,76,129,0.02); }

.payment-option.selected {
    border-color: var(--primary);
    border-left: 4px solid var(--primary);
    background: rgba(15,76,129,0.04);
}

.payment-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.payment-option__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}
.payment-option__icon.green { background: var(--accent-light); color: var(--accent); }
.payment-option__icon.amber { background: var(--warning-light); color: var(--warning); }
.payment-option__icon.gray  { background: var(--bg); color: var(--text-muted); }
.payment-option__icon.blue  { background: rgba(15,76,129,0.08); color: var(--primary); }

.payment-option__info { flex: 1; }
.payment-option__title { font-weight: 600; font-size: 0.9375rem; color: var(--text-primary); }
.payment-option__desc { font-size: 0.8125rem; color: var(--text-secondary); }

.payment-option__radio {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

.coming-soon-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--warning-light);
    color: var(--warning);
}

/* ---------- Bank Details ---------- */
.bank-details-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 24px;
}

.bank-details-card__header {
    padding: 12px 20px;
    background: var(--bg-subtle);
    font-weight: 600;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bank-details-card__body { padding: 20px; }

.bank-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ---------- QR Code ---------- */
.qr-code-section {
    text-align: center;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
}

.qr-code-section h6 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qr-code-image {
    max-width: 180px;
    height: auto;
    border-radius: var(--radius-md);
    border: 2px solid var(--accent);
    padding: 8px;
    background: white;
}

/* ---------- Student Info Card ---------- */
.student-info-card {
    background: var(--accent-light);
    border: 1px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 24px 0;
}
.student-info-card h4 {
    color: #047857;
    font-size: 1rem;
    margin-bottom: 12px;
}

/* ---------- Loading Overlay ---------- */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    display: none;
    gap: 16px;
    backdrop-filter: blur(2px);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.loading-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

/* ---------- Toastr Overrides ---------- */
.toast-success { background-color: #047857 !important; }
.toast-error   { background-color: var(--error) !important; }
.toast-info    { background-color: var(--primary) !important; }
.toast-warning { background-color: var(--warning) !important; }

#toast-container > div {
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-md) !important;
    font-family: var(--font) !important;
    opacity: 1 !important;
}

/* ---------- Badge ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
}
.bg-success { background: var(--accent) !important; color: white; }
.bg-warning { background: var(--warning) !important; color: white; }
.bg-secondary { background: var(--text-muted) !important; color: white; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-primary { color: var(--primary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--accent) !important; }
.text-warning { color: var(--warning) !important; }
.fw-bold { font-weight: 700; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.d-block { display: block; }
.small { font-size: 0.8125rem; }

.row { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.col-md-4, .col-md-6, .col-md-8, .col-4, .col-8 { padding: 0 8px; width: 100%; }
.g-2 { gap: 8px; }

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
    .col-md-4 { width: 33.333%; }
    .col-md-6 { width: 50%; }
    .col-md-8 { width: 66.666%; }

    .form-section { padding: 40px 48px; }
}

@media (max-width: 767px) {
    .stepper { display: none; }
    .stepper-mobile { display: block; }

    .top-bar { padding: 0 16px; height: 60px; }
    .top-bar__logo { height: 36px; }
    .top-bar__title { font-size: 0.9375rem; }

    .form-section { padding: 24px 20px; }

    .section-title { font-size: 1.25rem; }
    .section-subtitle { font-size: 0.875rem; margin-bottom: 24px; }

    .form-actions { flex-direction: column-reverse; }
    .form-actions .btn { width: 100%; }

    .radio-group { flex-direction: column; gap: 8px; }
    .radio-item { min-width: unset; }

    .payment-summary__grid { grid-template-columns: 1fr; }
    .bank-details-grid { grid-template-columns: 1fr; }

    .otp-container { gap: 8px; }
    .otp-box { width: 44px; height: 52px; font-size: 1.25rem; }

    .reg-container { margin: 16px auto; }
}

@media (max-width: 380px) {
    .otp-box { width: 38px; height: 48px; font-size: 1.125rem; }
    .otp-container { gap: 6px; }
}

/* Touch devices */
@media (pointer: coarse) {
    .radio-item { min-height: 48px; }
    .checkbox-item { min-height: 48px; }
    .btn { min-height: 48px; }
    -webkit-tap-highlight-color: transparent;
}

/* ---------- Select2 Override ---------- */
.select2-container--default .select2-selection--single {
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    height: 44px !important;
    padding: 6px 12px !important;
    font-family: var(--font) !important;
}
.select2-container--default .select2-selection--single:focus-within {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(15,76,129,0.1) !important;
}
