/* ==========================================================================
   HAMUBERE DIGITAL ACADEMY - MODERN REGISTRATION PORTAL STYLES
   ========================================================================== */

:root {
  --reg-navy: #071529;
  --reg-navy-light: #0d223f;
  --reg-blue: #1d72fe;
  --reg-blue-hover: #155bc9;
  --reg-teal: #10b981;
  --reg-teal-dark: #059669;
  --reg-bg: #f4f7fb;
  --reg-surface: #ffffff;
  --reg-border: #e2e8f0;
  --reg-border-focus: #1d72fe;
  --reg-text: #0f172a;
  --reg-text-muted: #64748b;
  --reg-error: #ef4444;
  --reg-error-bg: #fef2f2;
  --reg-radius-lg: 20px;
  --reg-radius-md: 14px;
  --reg-radius-sm: 8px;
  --reg-shadow: 0 10px 30px rgba(7, 21, 41, 0.06);
  --reg-shadow-hover: 0 16px 40px rgba(7, 21, 41, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--reg-bg);
  color: var(--reg-text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   TOPBAR
   ========================================================================== */
.portal-topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--reg-border);
  padding: 0.85rem clamp(1rem, 4vw, 3.5rem);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.portal-topbar__inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--reg-navy);
}

.portal-brand__logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1d72fe 0%, #0d52c7 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 14px rgba(29, 114, 254, 0.35);
}

.portal-brand__text strong {
  display: block;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--reg-navy);
  line-height: 1.2;
}

.portal-brand__text span {
  display: block;
  font-size: 0.72rem;
  color: var(--reg-text-muted);
  font-weight: 500;
}

.portal-topbar__meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.admissions-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admissions-pill .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
}

.portal-signin-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--reg-blue);
  text-decoration: none;
  transition: color 0.18s ease;
}

.portal-signin-link:hover {
  color: var(--reg-blue-hover);
  text-decoration: underline;
}

/* ==========================================================================
   LANDING VIEW (ACCOUNT SELECTION)
   ========================================================================== */
.container {
  width: min(1200px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.portal-hero {
  padding: 3.5rem 0 2rem;
  text-align: center;
}

.portal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #e0f2fe;
  color: #0369a1;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-hero h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--reg-navy);
  margin: 1rem 0 0.75rem;
}

.portal-hero p {
  color: var(--reg-text-muted);
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* 4 Account Type Cards */
.account-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
  padding: 1.5rem 0 4.5rem;
}

.account-card {
  background: var(--reg-surface);
  border: 1px solid var(--reg-border);
  border-radius: var(--reg-radius-lg);
  padding: 1.85rem 1.4rem 1.65rem;
  box-shadow: var(--reg-shadow);
  display: flex;
  flex-direction: column;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.account-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--reg-shadow-hover);
  border-color: #cbd5e1;
}

.card-scope-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.scope-africa {
  background: #fef3c7;
  color: #92400e;
}

.scope-global {
  background: #e0f2fe;
  color: #0369a1;
}

.account-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  margin-bottom: 1.35rem;
  transition: transform 0.2s ease;
}

.account-card:hover .account-card__icon {
  transform: scale(1.06);
}

.card-icon--student     { background: #e0f2fe; color: #1d72fe; }
.card-icon--institution { background: #dcfce7; color: #10b981; }
.card-icon--teacher     { background: #f3e8ff; color: #8b5cf6; }
.card-icon--mentor      { background: #ffedd5; color: #f97316; }

.account-card h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--reg-navy);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.account-card p {
  color: var(--reg-text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex: 1;
}

.btn-card-select {
  width: 100%;
  border: none;
  background: #0f274a;
  color: #ffffff;
  padding: 0.72rem 1rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.account-card:hover .btn-card-select {
  background: var(--reg-blue);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(29, 114, 254, 0.35);
}

.btn-card-select i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.account-card:hover .btn-card-select i {
  transform: translateX(3px);
}

/* ==========================================================================
   REGISTRATION VIEW (STEP-BY-STEP FORM)
   ========================================================================== */
.form-wrap {
  padding: 2rem 0 5rem;
}

.form-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-back-portal {
  background: transparent;
  border: none;
  color: var(--reg-blue);
  font-weight: 700;
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  cursor: pointer;
  transition: color 0.18s ease;
}

.btn-back-portal:hover {
  color: var(--reg-blue-hover);
}

.form-header-copy h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 800;
  color: var(--reg-navy);
  margin: 0;
}

.form-header-copy p {
  color: var(--reg-text-muted);
  font-size: 0.85rem;
  margin: 0.2rem 0 0;
}

/* Form Layout (Sidebar + Card) */
.form-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Sidebar Progress Card */
.progress-sidebar-card {
  background: var(--reg-surface);
  border: 1px solid var(--reg-border);
  border-radius: var(--reg-radius-lg);
  padding: 1.4rem;
  box-shadow: var(--reg-shadow);
  position: sticky;
  top: 5rem;
}

.sidebar-type-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  background: #f1f5f9;
  margin-bottom: 1.25rem;
}

.type-badge-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--reg-navy);
}

.btn-switch-type {
  background: none;
  border: none;
  color: var(--reg-blue);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
}

.sidebar-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--reg-text-muted);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.step-tracker-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.step-tracker-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.step-num-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--reg-border);
  background: #ffffff;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.step-tracker-item.active {
  color: var(--reg-navy);
}

.step-tracker-item.active .step-num-circle {
  border-color: var(--reg-blue);
  background: var(--reg-blue);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(29, 114, 254, 0.2);
}

.step-tracker-item.done {
  color: var(--reg-teal-dark);
}

.step-tracker-item.done .step-num-circle {
  border-color: var(--reg-teal);
  background: var(--reg-teal);
  color: #ffffff;
}

.progress-bar-wrap {
  margin: 1.5rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--reg-border);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--reg-text-muted);
  margin-bottom: 0.45rem;
}

.progress-track {
  height: 8px;
  border-radius: 9999px;
  background: #e2e8f0;
  overflow: hidden;
}

.progress-fill-bar {
  height: 100%;
  background: linear-gradient(90deg, #1d72fe 0%, #10b981 100%);
  border-radius: 9999px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.scope-notice-box {
  margin-top: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  font-size: 0.72rem;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.scope-notice--africa {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  color: #92400e;
}

.scope-notice--global {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #1e40af;
}

/* Main Form Card */
.form-content-card {
  background: var(--reg-surface);
  border: 1px solid var(--reg-border);
  border-radius: var(--reg-radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: var(--reg-shadow);
}

.form-step-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.85rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--reg-border);
}

.step-icon-squircle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--reg-blue);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.form-step-header h2 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--reg-navy);
  margin: 0;
}

.form-step-header p {
  color: var(--reg-text-muted);
  font-size: 0.8rem;
  margin: 0.25rem 0 0;
}

/* Fields Grid */
.fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.15rem;
}

.form-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.form-field.full-width {
  grid-column: 1 / -1;
}

.field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.45rem;
}

.req-star {
  color: #ef4444;
}

.input-control,
.select-control,
.textarea-control {
  width: 100%;
  border: 1.5px solid var(--reg-border);
  background: #ffffff;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  color: var(--reg-text);
  font-size: 0.86rem;
  outline: none;
  transition: all 0.18s ease;
}

.input-control:focus,
.select-control:focus,
.textarea-control:focus {
  border-color: var(--reg-border-focus);
  box-shadow: 0 0 0 3px rgba(29, 114, 254, 0.15);
}

.textarea-control {
  min-height: 95px;
  resize: vertical;
}

/* Phone input with dial code combo */
.phone-input-group {
  display: flex;
  gap: 0.5rem;
}

.phone-dial-select {
  width: 130px;
  flex-shrink: 0;
  border: 1.5px solid var(--reg-border);
  background: #f8fafc;
  border-radius: 10px;
  padding: 0.65rem 0.5rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--reg-navy);
  outline: none;
  transition: all 0.18s ease;
}

.phone-dial-select:focus {
  border-color: var(--reg-border-focus);
  background: #ffffff;
}

/* Password with Eye Toggle */
.password-input-wrap {
  position: relative;
  width: 100%;
}

.password-input-wrap .input-control {
  padding-right: 2.5rem;
}

.btn-toggle-pwd {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-toggle-pwd:hover {
  color: #475569;
}

/* Checkboxes grid */
.checkbox-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.checkbox-card-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--reg-border);
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  color: #475569;
  transition: all 0.18s ease;
}

.checkbox-card-option:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.checkbox-card-option:has(input:checked) {
  border-color: #10b981;
  background: #f0fdf4;
  color: #166534;
  font-weight: 600;
}

.checkbox-card-option input[type="checkbox"] {
  accent-color: #10b981;
  width: 16px;
  height: 16px;
}

/* File Upload Box */
.file-upload-box {
  border: 1.5px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
}

.file-upload-box:hover {
  border-color: var(--reg-blue);
  background: #f0f7ff;
}

.file-upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-upload-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  pointer-events: none;
}

.file-upload-visual i {
  font-size: 1.4rem;
  color: var(--reg-blue);
}

.file-upload-visual span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
}

.file-upload-visual small {
  font-size: 0.68rem;
  color: #94a3b8;
}

.file-selected-badge {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  background: #dcfce7;
  color: #15803d;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.file-selected-badge.show {
  display: inline-flex;
}

/* Errors & Validation */
.field-error-msg {
  display: none;
  font-size: 0.7rem;
  color: var(--reg-error);
  font-weight: 500;
  margin-top: 0.3rem;
}

.form-field.invalid .input-control,
.form-field.invalid .select-control,
.form-field.invalid .textarea-control,
.form-field.invalid .phone-dial-select {
  border-color: var(--reg-error);
  background: var(--reg-error-bg);
}

.form-field.invalid .field-error-msg {
  display: block;
}

/* Form Actions */
.form-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--reg-border);
}

.btn-secondary {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

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

.btn-primary-action {
  background: var(--reg-blue);
  border: none;
  color: #ffffff;
  padding: 0.75rem 1.65rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(29, 114, 254, 0.3);
}

.btn-primary-action:hover {
  background: var(--reg-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(29, 114, 254, 0.4);
}

/* ==========================================================================
   REVIEW VIEW
   ========================================================================== */
.review-sections-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-section-card {
  border: 1px solid var(--reg-border);
  border-radius: 12px;
  overflow: hidden;
}

.review-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--reg-border);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--reg-navy);
}

.btn-edit-section {
  background: none;
  border: none;
  color: var(--reg-blue);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-edit-section:hover {
  text-decoration: underline;
}

.review-grid-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
  padding: 1rem 1.15rem;
}

.review-field-item small {
  display: block;
  font-size: 0.68rem;
  color: var(--reg-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.2rem;
}

.review-field-item strong {
  display: block;
  font-size: 0.82rem;
  color: #1e293b;
  word-break: break-word;
}

.review-consent-box {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid var(--reg-border);
  border-radius: 10px;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.78rem;
  color: #334155;
  line-height: 1.45;
}

.consent-label input {
  margin-top: 0.2rem;
  accent-color: var(--reg-blue);
}

/* ==========================================================================
   SUCCESS VIEW
   ========================================================================== */
.success-modal-card {
  max-width: 620px;
  margin: 3.5rem auto 5rem;
  background: #ffffff;
  border: 1px solid var(--reg-border);
  border-radius: var(--reg-radius-lg);
  padding: 3rem 2.2rem;
  text-align: center;
  box-shadow: var(--reg-shadow-hover);
}

.success-check-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  margin: 0 auto 1.35rem;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.25);
}

.success-modal-card h2 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--reg-navy);
  margin-bottom: 0.45rem;
}

.success-modal-card p {
  color: var(--reg-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.reference-display-box {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #f0f7ff;
  border: 1.5px dashed #93c5fd;
  padding: 0.75rem 1.4rem;
  border-radius: 12px;
  margin: 1.5rem 0;
}

.reference-display-box strong {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--reg-blue);
}

.btn-copy-ref {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  color: var(--reg-blue);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-copy-ref:hover {
  background: #dbeafe;
}

.success-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.85rem;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-msg {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--reg-navy);
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  font-size: 0.82rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 100;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   PORTAL FOOTER
   ========================================================================== */
.portal-footer {
  margin-top: auto;
  background: #ffffff;
  border-top: 1px solid var(--reg-border);
  padding: 1.25rem;
  text-align: center;
  font-size: 0.74rem;
  color: var(--reg-text-muted);
}

.portal-footer a {
  color: var(--reg-blue);
  text-decoration: none;
}

/* ==========================================================================
   RESPONSIVENESS
   ========================================================================== */
@media (max-width: 1024px) {
  .account-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-layout {
    grid-template-columns: 240px 1fr;
  }
}

@media (max-width: 768px) {
  .portal-topbar__inner {
    padding: 0.5rem 0;
  }
  .portal-topbar__meta .admissions-pill {
    display: none;
  }
  .account-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-bottom: 3rem;
  }
  .form-layout {
    grid-template-columns: 1fr;
  }
  .progress-sidebar-card {
    position: static;
    margin-bottom: 1rem;
  }
  .fields-grid {
    grid-template-columns: 1fr;
  }
  .checkbox-cards-grid {
    grid-template-columns: 1fr;
  }
  .review-grid-data {
    grid-template-columns: 1fr;
  }
  .success-actions-row {
    flex-direction: column;
    width: 100%;
  }
  .success-actions-row button,
  .success-actions-row a {
    width: 100%;
  }
}

/* School Autocomplete Combobox */
.school-combobox-container {
  position: relative;
  width: 100%;
}
.school-dropdown-box {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
  z-index: 50;
  margin-top: 6px;
  overflow: hidden;
}
.school-options-scroll {
  max-height: 220px;
  overflow-y: auto;
}
.school-option-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: #334155;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.15s ease;
}
.school-option-item:hover, .school-option-item.active {
  background: #f0fdf4;
  color: #166534;
}
.school-option-item i {
  color: #94a3b8;
  font-size: 0.85rem;
}
.school-option-item:hover i {
  color: #16a34a;
}
.school-add-option {
  padding: 11px 14px;
  background: #eff6ff;
  border-top: 1px solid #dbeafe;
  font-size: 0.85rem;
  color: #1e40af;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
}
.school-add-option:hover {
  background: #dbeafe;
}
.school-custom-badge {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 10px 14px;
  color: #92400e;
  font-size: 0.825rem;
  line-height: 1.4;
  margin-top: 8px;
}
