/* ═══════════════════════════════════════════════════
   MUNTAZIM WIZARD — Design System (Optimized)
   ═══════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --mz-green: #0E6B5E;
  --mz-green-mid: #127A6C;
  --mz-green-light: #1A9E8C;
  --mz-green-pale: rgba(14, 107, 94, 0.10);
  --mz-green-glow: rgba(14, 107, 94, 0.22);
  --mz-white: #FFFFFF;
  --mz-canvas: #F4F8F7;
  --mz-card: #FFFFFF;
  --mz-border: #DDE8E6;
  --mz-border-light: #E8EDEC;
  --mz-border-focus: #1A9E8C;
  --mz-text-1: #0B1F1D;
  --mz-text-2: #3A5754;
  --mz-text-3: #7EA3A0;
  --mz-label: #1F3D3B;
  --mz-input-bg: #EEF5F4;
  --mz-red: #D94040;
  --mz-amber: #D4861A;
  --mz-amber-pale: #FBF0D9;
  --mz-amber-border: rgba(212, 134, 26, 0.35);
  --mz-amber-text: #9A6512;
  --mz-muted: var(--mz-text-3);
  --mz-sidebar-w: 272px;
  --mz-radius-card: 14px;
  --mz-radius-input: 10px;
  --mz-radius-btn: 10px;
  --mz-shadow-card: 0 2px 16px rgba(14, 107, 94, 0.07);
  --mz-shadow-btn: 0 4px 14px rgba(14, 107, 94, 0.32);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--mz-canvas);
  color: var(--mz-text-1);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════ LAYOUT ═══════════ */
.mz-layout {
  display: grid;
  grid-template-columns: var(--mz-sidebar-w) 1fr;
  min-height: 100vh;
}

/* ═══════════ SIDEBAR ═══════════ */
.mz-sidebar {
  background: linear-gradient(175deg, var(--mz-green) 0%, #0A5248 100%);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 20;
  scrollbar-width: none;
}

.mz-sidebar::-webkit-scrollbar {
  display: none;
}

.mz-sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
}

.mz-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 24px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mz-brand-logo {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--mz-white);
  flex-shrink: 0;
  backdrop-filter: blur(4px);
}

.mz-brand-logo.sm {
  width: 32px;
  height: 32px;
  font-size: 14px;
  border-radius: 9px;
}

.mz-brand-text {
  display: flex;
  flex-direction: column;
}

.mz-brand-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--mz-white);
  letter-spacing: -0.4px;
  line-height: 1.1;
}

.mz-brand-role {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
  font-weight: 400;
}

/* Step Nav */
.mz-step-nav {
  padding: 28px 20px;
  flex: 1;
}

.mz-step-nav-label {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-bottom: 20px;
  padding-left: 4px;
}

.mz-step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  padding: 4px;
  border-radius: 10px;
  transition: background 0.18s;
}

.mz-step-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.mz-step-icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.mz-step-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  flex-shrink: 0;
}

.mz-step-icon svg {
  width: 18px;
  height: 18px;
  transition: stroke 0.2s;
}

.mz-step-connector {
  width: 2px;
  height: 20px;
  border-radius: 2px;
  margin-top: 4px;
  transition: background 0.2s;
}

.mz-step-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 6px;
  padding-bottom: 14px;
}

.mz-step-seq {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: color 0.2s;
}

.mz-step-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 2px;
  transition: color 0.2s;
}

.mz-step-desc {
  font-size: 10.5px;
  margin-top: 2px;
  transition: color 0.2s;
}

.mz-step-check {
  padding-top: 8px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s;
}

.mz-step-check svg {
  width: 14px;
  height: 14px;
}

/* Sidebar step states: default (upcoming) */
.mz-step-item .mz-step-icon {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mz-step-item .mz-step-icon svg {
  stroke: rgba(255, 255, 255, 0.22);
}

.mz-step-item .mz-step-seq {
  color: rgba(255, 255, 255, 1);
}

.mz-step-item .mz-step-name {
  color: rgba(255, 255, 255, 1);
}

.mz-step-item .mz-step-desc {
  color: rgba(255, 255, 255, 1);
}

.mz-step-item .mz-step-check svg {
  stroke: rgba(255, 255, 255, 0.2);
}

/* active */
.mz-step-item.active .mz-step-icon {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.06);
}

.mz-step-item.active .mz-step-icon svg {
  stroke: var(--mz-white);
}

.mz-step-item.active .mz-step-connector {
  background: rgba(255, 255, 255, 0.12);
}

.mz-step-item.active .mz-step-seq {
  color: rgba(255, 255, 255, 0.5);
}

.mz-step-item.active .mz-step-name {
  color: var(--mz-white);
}

.mz-step-item.active .mz-step-desc {
  color: rgba(255, 255, 255, 0.5);
}

/* done */
.mz-step-item.done .mz-step-icon {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.mz-step-item.done .mz-step-icon svg {
  stroke: rgba(255, 255, 255, 0.55);
}

.mz-step-item.done .mz-step-connector {
  background: rgba(255, 255, 255, 0.16);
}

.mz-step-item.done .mz-step-seq {
  color: rgba(255, 255, 255, 0.38);
}

.mz-step-item.done .mz-step-name {
  color: rgba(255, 255, 255, 0.55);
}

.mz-step-item.done .mz-step-desc {
  color: rgba(255, 255, 255, 0.28);
}

.mz-step-item.done .mz-step-check {
  opacity: 1;
}

.mz-step-item.done .mz-step-check svg {
  stroke: rgba(255, 255, 255, 0.5);
}

/* Progress */
.mz-progress-wrap {
  padding: 20px 24px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mz-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.mz-progress-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 500;
}

.mz-progress-pct {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}

.mz-progress-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.mz-progress-fill {
  height: 100%;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 10px;
  transition: width 0.4s ease;
}

.mz-sidebar-footer {
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
}

.mz-sidebar-footer p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.28);
  line-height: 1.8;
}

.mz-footer-link {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  transition: color 0.15s;
}

.mz-footer-link:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ═══════════ MOBILE HEADER ═══════════ */
.mz-mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: var(--mz-white);
  border-bottom: 1px solid var(--mz-border);
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 15;
}

.mz-mobile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--mz-green);
}

.mz-mobile-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  color: var(--mz-text-2);
  transition: background 0.15s;
}

.mz-mobile-menu-btn:hover {
  background: var(--mz-input-bg);
}

.mz-mobile-menu-btn svg {
  width: 22px;
  height: 22px;
}

/* ═══════════ MOBILE STEP PILLS ═══════════ */
.mz-mobile-steps {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 14px 16px;
  background: var(--mz-white);
  border-bottom: 1px solid var(--mz-border);
}

.mz-mobile-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mz-input-bg);
  border: 2px solid var(--mz-border);
  color: var(--mz-text-3);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.mz-mobile-step.active {
  background: var(--mz-green);
  border-color: var(--mz-green);
  color: white;
  box-shadow: 0 0 0 4px rgba(14, 107, 94, 0.15);
}

.mz-mobile-step.done {
  background: rgba(14, 107, 94, 0.1);
  border-color: rgba(14, 107, 94, 0.3);
  color: var(--mz-green);
}

.mz-mobile-step-line {
  flex: 1;
  height: 2px;
  max-width: 26px;
  background: var(--mz-border);
  border-radius: 2px;
}

/* ═══════════ MAIN CONTENT ═══════════ */
.mz-main {
  overflow-y: auto;
}

.mz-main-inner {
  padding: 36px 40px 60px;
  max-width: 100%;
}

.mz-page-header {
  margin-bottom: 32px;
}

.mz-page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--mz-green);
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-bottom: 8px;
}

.mz-page-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mz-green);
  box-shadow: 0 0 0 3px var(--mz-green-pale);
}

.mz-page-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--mz-text-1);
  letter-spacing: -0.6px;
  line-height: 1.15;
}

.mz-page-sub {
  font-size: 13px;
  color: var(--mz-text-3);
  margin-top: 6px;
  font-weight: 400;
  line-height: 1.5;
}

/* ═══════════ FORM CARD ═══════════ */
.mz-form-card {
  background: var(--mz-card);
  border: 1px solid var(--mz-border);
  border-radius: var(--mz-radius-card);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--mz-shadow-card);
}

.mz-card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--mz-border);
  background: #FAFDFB;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mz-card-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mz-card-body {
  padding: 20px 24px;
}

.mz-card-icon {
  width: 38px;
  height: 38px;
  background: var(--mz-green-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mz-card-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--mz-green);
}

.mz-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--mz-text-1);
}

.mz-card-sub {
  font-size: 11.5px;
  color: var(--mz-text-3);
  margin-top: 1px;
}

/* ═══════════ FORM GRID ═══════════ */
.mz-form-grid {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.mz-fg {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mz-fg.full {
  grid-column: 1 / -1;
}

.mz-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--mz-label);
  letter-spacing: 0.1px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mz-req {
  color: var(--mz-red);
  font-size: 13px;
  line-height: 1;
}

.mz-hint {
  font-size: 11px;
  color: var(--mz-text-3);
  margin-top: -1px;
  line-height: 1.4;
}

.mz-input,
.mz-select {
  border: 1.5px solid var(--mz-border);
  border-radius: var(--mz-radius-input);
  padding: 11px 13px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  color: var(--mz-text-1);
  outline: none;
  width: 100%;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  appearance: none;
  -webkit-appearance: none;
}

.mz-input::placeholder {
  color: #A8C0BD;
  font-size: 13px;
}

.mz-input:focus,
.mz-select:focus {
  border-color: var(--mz-border-focus);
  background: var(--mz-white);
  box-shadow: 0 0 0 4px rgba(14, 107, 94, 0.09);
}

.mz-select {
  padding-right: 36px;
  cursor: pointer;
}

.mz-grid-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mz-gd-line {
  flex: 1;
  height: 1px;
  background: var(--mz-border);
}

.mz-gd-text {
  font-size: 10px;
  font-weight: 700;
  color: var(--mz-text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  white-space: nowrap;
}

/* ═══════════ FLOATING LABEL FIELDS — NOTCHED ON BORDER, ANIMATED ═══════════ */
.mz-float-wrap {
  position: relative;
  --mz-notch-bg: var(--mz-white);
}

.mz-float-wrap .mz-input,
.mz-float-wrap .mz-select {
  padding: 13px 14px;
}

.mz-float-label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%) scale(1);
  transform-origin: left center;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  color: #8FADAA;
  background: var(--mz-notch-bg);
  padding: 0 6px;
  border-radius: 4px;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: top 0.18s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.18s cubic-bezier(0.4, 0, 0.2, 1),
    font-weight 0.16s ease,
    color 0.16s ease;
  z-index: 1;
}

.mz-float-wrap:focus-within .mz-float-label,
.mz-float-wrap .mz-input:not(:placeholder-shown)~.mz-float-label,
.mz-float-wrap.has-value .mz-float-label {
  top: 0;
  transform: translateY(-50%) scale(0.86);
  font-weight: 700;
  color: var(--mz-green);
}

.mz-float-wrap:focus-within .mz-select~.mz-float-label,
.mz-float-wrap.has-value .mz-select~.mz-float-label {
  color: var(--mz-green);
}

.mz-float-wrap .mz-input:focus,
.mz-float-wrap .mz-select:focus {
  border-color: var(--mz-border-focus);
  background: var(--mz-white);
  box-shadow: 0 0 0 4px rgba(14, 107, 94, 0.09);
}

.mz-float-wrap .mz-input:disabled~.mz-float-label,
.mz-float-wrap .mz-select:disabled~.mz-float-label {
  color: #B9CBC8;
}

/* ═══════════ FIELD — NOTCHED LABEL + VALIDATION ═══════════ */
.mz-field {
  position: relative;
  margin-bottom: 28px;
  --mz-notch-bg: var(--mz-white);
}

.mz-field .mz-input {
  border: 1.5px solid var(--mz-border);
  background: var(--mz-white);
  padding: 13px 14px;
}

.mz-field-label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%) scale(1);
  transform-origin: left center;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--mz-text-3);
  background: var(--mz-notch-bg);
  padding: 0 7px;
  border-radius: 4px;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: top 0.18s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.18s cubic-bezier(0.4, 0, 0.2, 1),
    font-weight 0.16s ease,
    color 0.16s ease;
  z-index: 1;
}

.mz-field:focus-within .mz-field-label,
.mz-field .mz-input:not(:placeholder-shown)~.mz-field-label,
.mz-field.active .mz-field-label {
  top: 0;
  transform: translateY(-50%) scale(0.86);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--mz-green);
}

.mz-field.active .mz-input {
  border-color: var(--mz-border-focus);
  box-shadow: 0 0 0 4px rgba(14, 107, 94, 0.09);
}

.mz-field.error .mz-input,
.mz-field-error,
.mz-float-wrap.mz-field-error .mz-input,
.mz-float-wrap.mz-field-error .mz-select,
.mz-avatar-circle.mz-field-error {
  border-color: var(--mz-red) !important;
  box-shadow: 0 0 0 3px rgba(217, 64, 64, 0.08) !important;
}

.filepond--root.mz-field-error {
  box-shadow: 0 0 0 2px var(--mz-red);
  border-radius: 12px;
}

.mz-field-label.mz-error-label,
.mz-float-label.mz-field-label,
.mz-float-wrap.mz-field-error .mz-float-label,
.mz-field.error .mz-field-label,
.mz-field.error.active .mz-field-label {
  color: var(--mz-red) !important;
}

.mz-field-error-msg {
  display: none;
  position: absolute;
  left: 2px;
  bottom: -20px;
  font-size: 11.5px;
  color: var(--mz-red);
}

.mz-field.error .mz-field-error-msg {
  display: block;
}

.mz-email-status-msg {
  font-size: 11.5px;
  color: var(--mz-red);
  margin-top: 4px;
  display: block;
}

.mz-email-status-msg.is-success {
  color: var(--mz-green);
}

/* ═══════════ TOGGLE SWITCH ═══════════ */
.mz-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--mz-green-pale);
  border: 1.5px solid rgba(14, 107, 94, 0.15);
  border-radius: 10px;
}

.mz-toggle-text .mz-toggle-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--mz-green);
}

.mz-toggle-text .mz-toggle-sub {
  font-size: 11px;
  color: var(--mz-text-3);
  margin-top: 2px;
}

.mz-switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.mz-switch input {
  display: none;
}

.mz-switch-track {
  position: absolute;
  inset: 0;
  background: #CBD8D6;
  border-radius: 13px;
  cursor: pointer;
  transition: background 0.22s;
}

.mz-switch input:checked+.mz-switch-track {
  background: var(--mz-green);
}

.mz-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--mz-white);
  border-radius: 50%;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
  transition: left 0.22s;
  pointer-events: none;
}

.mz-switch input:checked~.mz-switch-thumb {
  left: 23px;
}

/* "Activate Auto Payment" forced on by school settings (MANDATORY) — see
   bindAutoPaymentToggleRules in assign_course_online_revamped.js. Blocks
   interaction without the native `disabled` attribute, which would stop
   the checkbox from submitting at all. */
.mz-switch-locked {
  pointer-events: none;
  opacity: 0.6;
}

.mz-same-addr-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: var(--mz-input-bg);
  border-radius: 10px;
}

.mz-same-addr-row .mz-toggle-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--mz-label);
}

.mz-same-addr-row .mz-toggle-sub {
  font-size: 11px;
  color: var(--mz-text-3);
  margin-top: 2px;
}

.mz-info-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: var(--mz-green-pale);
  border: 1px solid rgba(14, 107, 94, 0.2);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--mz-text-2);
  line-height: 1.5;
}

.mz-info-box svg {
  width: 16px;
  height: 16px;
  stroke: var(--mz-green);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ═══════════ EMPTY STATE ═══════════ */
.mz-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 32px;
}

.mz-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--mz-green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.mz-empty-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--mz-green);
}

.mz-empty-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--mz-text-1);
  margin-bottom: 6px;
}

.mz-empty-sub {
  font-size: 13px;
  color: var(--mz-text-3);
  max-width: 360px;
  line-height: 1.6;
}

.mz-empty-badge {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--mz-amber-pale);
  border: 1px solid var(--mz-amber-border);
  border-radius: 999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--mz-amber-text);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* ═══════════ PAYMENT DASHBOARD (step 4) ═══════════ */
.mz-pay-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mz-pay-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--mz-green) 0%, #0A5248 100%);
  border-radius: var(--mz-radius-card);
  padding: 28px 30px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.mz-pay-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.mz-pay-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--mz-white);
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.mz-pay-hero-right {
  position: relative;
  text-align: right;
  flex-shrink: 0;
  z-index: 1;
}

.mz-pay-watermark {
  position: absolute;
  top: -34px;
  right: -6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 92px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.06);
  letter-spacing: -2px;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.mz-pay-count {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 30px;
  font-weight: 700;
  color: var(--mz-white);
}

.mz-pay-count-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
}

/* Promo Code */
.mz-promo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--mz-amber-pale);
  border: 1.5px solid var(--mz-amber-border);
  border-radius: var(--mz-radius-card);
  padding: 16px 22px;
}

.mz-promo-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.mz-promo-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: var(--mz-amber);
  color: var(--mz-white);
  padding: 6px 10px;
  border-radius: 6px;
}

.mz-promo-text {
  font-size: 13px;
  color: var(--mz-text-1);
}

.mz-promo-text strong {
  color: var(--mz-amber-text);
}

.mz-promo-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mz-promo-input {
  background: var(--mz-white);
  border: 1.5px solid var(--mz-amber-border);
  border-radius: var(--mz-radius-input);
  padding: 10px 14px;
  font-size: 13px;
  min-width: 180px;
  outline: none;
}

.mz-promo-input:focus {
  border-color: var(--mz-amber);
}

.mz-promo-btn {
  background: var(--mz-amber);
  color: var(--mz-white);
  border: none;
  border-radius: var(--mz-radius-btn);
  padding: 10px 18px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.15s;
}

.mz-promo-btn:hover {
  filter: brightness(0.94);
}

.mz-promo-status {
  font-size: 12px;
  color: var(--mz-green);
  font-weight: 600;
  min-height: 0;
  opacity: 0;
  transition: opacity 0.2s;
}

.mz-promo-status.show {
  opacity: 1;
}

/* Discount Code */
.mz-discount-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--mz-green-pale);
  border: 1.5px solid var(--mz-green-light);
  border-radius: var(--mz-radius-card);
  padding: 16px 22px;
}

.mz-discount-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.mz-discount-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: var(--mz-green);
  color: var(--mz-white);
  padding: 6px 10px;
  border-radius: 6px;
}

.mz-discount-text {
  font-size: 13px;
  color: #000;
}

.mz-discount-text strong {
  color: var(--mz-green);
}

.mz-discount-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mz-discount-input {
  background: var(--mz-white);
  border: 1.5px solid var(--mz-border-focus);
  border-radius: var(--mz-radius-input);
  padding: 10px 14px;
  font-size: 13px;
  min-width: 180px;
  outline: none;
}

.mz-discount-input:focus {
  border-color: var(--mz-amber);
}

.mz-discount-btn {
  background: var(--mz-green);
  color: var(--mz-white);
  border: none;
  border-radius: var(--mz-radius-btn);
  padding: 10px 18px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.15s;
}

.mz-discount-btn:hover {
  filter: brightness(0.94);
}

.mz-discount-status {
  font-size: 12px;
  color: var(--mz-green);
  font-weight: 600;
  min-height: 0;
  opacity: 0;
  transition: opacity 0.2s;
}

.mz-discount-status.show {
  opacity: 1;
}

.mz-invoice-columns {
  display: grid;
  grid-template-columns: 0.5fr 1fr 1.3fr 1fr;
  gap: 18px;
  padding: 0 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--mz-text-3);
}

.mz-invoice-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
  background: var(--mz-white);
  border: 1px solid var(--mz-border);
  border-left: 3px solid var(--mz-green);
  border-radius: var(--mz-radius-card);
  padding: 22px;
  box-shadow: var(--mz-shadow-card);
}

/* .mz-invoice-card > div:not(.mz-invoice-actions) {
  display: flex;
  align-items: flex-start;
  justify-content: start;
  gap: 16px;
  flex-wrap: wrap;
} */

.mz-invoice-due,
.mz-invoice-after {
  flex-direction: row;
  gap: 24px;
}

.mz-invoice-actions {
  order: 999;
}

.mz-invoice-course-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--mz-text-1);
  line-height: 1.25;
}

.mz-invoice-guardian {
  font-size: 11.5px;
  color: var(--mz-text-3);
  margin-top: 4px;
}

.mz-invoice-discounts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.mz-discount-box {
  background: #FDF6E7;
  border: 1px solid var(--mz-amber-border);
  border-radius: 8px;
  padding: 10px 12px;
}

.mz-discount-head {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--mz-amber-text);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.mz-discount-sub {
  font-size: 11px;
  color: var(--mz-text-2);
  margin-top: 3px;
  line-height: 1.4;
}

.mz-discount-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  font-size: 11px;
}

.mz-discount-foot span:first-child {
  color: var(--mz-text-3);
}

.mz-discount-save {
  color: var(--mz-green);
  font-weight: 700;
}

.mz-invoice-due {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: start;
}

.mz-due-current {
  font-family: 'JetBrains Mono', monospace;
  font-size: 17px;
  font-weight: 700;
  color: var(--mz-text-1);
}

.mz-due-full {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--mz-amber-text);
  margin-top: 8px;
}

.mz-due-label {
  font-size: 10px;
  color: var(--mz-text-3);
  margin-bottom: 4px;
}

.mz-invoice-after {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: start;
}

.mz-after-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--mz-text-3);
}

.mz-after-current {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--mz-green);
  margin-bottom: 8px;
}

.mz-after-full {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--mz-amber-text);
}

.mz-invoice-actions {
  display: block;
}

/* ═══════════════════════════════════════
   INVOICE PAYMENT SWITCH
   ═══════════════════════════════════════ */

.mz-invoice-switch {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 4px;
  gap: 3px;
  background: var(--mz-input-bg);
  border: 1px solid var(--mz-border);
  border-radius: 11px;
}

.mz-invoice-tab {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;

  border: none;
  border-radius: 8px;

  background: transparent;
  color: var(--mz-text-3);

  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;

  cursor: pointer;
  white-space: nowrap;

  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.mz-invoice-tab:hover {
  color: var(--mz-text-2);
}

.mz-invoice-tab.active {
  background: var(--mz-green);
  color: var(--mz-white);
  box-shadow: 0 2px 7px rgba(14, 107, 94, 0.12);
}

.mz-invoice-tab:active {
  transform: scale(0.98);
}

.mz-invoice-tab:focus-visible {
  outline: 2px solid var(--mz-green-light);
  outline-offset: 1px;
}

.mz-btn-sm {
  padding: 9px 14px;
  font-size: 12px;
  width: 100%;
  justify-content: center;
}

.mz-pay-footer {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  background: linear-gradient(160deg, var(--mz-green) 0%, #0A5248 100%);
  border-radius: var(--mz-radius-card);
  padding: 22px 26px;
}

.mz-pay-footer-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1;
}

.mz-pay-footer-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.mz-pay-footer-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--mz-white);
}

.mz-pay-footer-btn {
  margin-left: auto;
  z-index: 1;
  background: var(--mz-white);
  color: var(--mz-green);
  border: none;
  border-radius: var(--mz-radius-btn);
  padding: 12px 22px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
}

.mz-pay-footer-watermark {
  position: absolute;
  right: 10px;
  bottom: -28px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 100px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.06);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

/* ═══════════ SCHOOL SWIPER (Step 1) ═══════════ */
.mz-school-swiper {
  width: 100%;
  padding-top: 10px;
  padding-bottom: 34px;
  /* room for bullets below the grid */
  cursor: grab;
}

.mz-school-swiper:active {
  cursor: grabbing;
}

.mz-school-swiper .swiper-wrapper {
  /* Swiper's Grid module handles row layout; height auto-calculated */
}

.mz-school-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.mz-school-swiper .swiper-slide .mz-school-card {
  width: 100%;
}

/* subtle edge fade to hint there's more content to swipe */
.mz-school-swiper-wrap {
  position: relative;
}

.mz-school-swiper-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 6px;
  width: 28px;
  background: linear-gradient(90deg, transparent, var(--mz-canvas));
  pointer-events: none;
  z-index: 2;
}

.mz-school-swiper .swiper-pagination {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.mz-school-swiper .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mz-border);
  opacity: 1;
  margin: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mz-school-swiper .swiper-pagination-bullet:hover {
  background: var(--mz-green-light);
}

.mz-school-swiper .swiper-pagination-bullet-active {
  background: var(--mz-green);
  width: 22px;
  border-radius: 4px;
}


/* ═══════════ FORM FOOTER ═══════════ */
.mz-form-footer {
  display: flex;
  align-items: center;
  justify-content: end;
  padding: 28px 0 0;
  gap: 16px;
  flex-wrap: wrap;
}

.mz-footer-hint {
  font-size: 12px;
  color: var(--mz-text-3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mz-footer-hint svg {
  stroke: var(--mz-text-3);
}

.mz-req-star {
  color: var(--mz-red);
}

.mz-footer-actions {
  display: flex;
  gap: 10px;
}

.mz-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: var(--mz-radius-btn);
  padding: 11px 22px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.18s;
  letter-spacing: -0.1px;
  white-space: nowrap;
}

.mz-btn svg {
  width: 15px;
  height: 15px;
}

.mz-btn-ghost {
  background: var(--mz-white);
  border: 1.5px solid var(--mz-border);
  color: var(--mz-text-2);
}

.mz-btn-ghost:hover {
  border-color: var(--mz-green);
  color: var(--mz-green);
}

.mz-btn-primary {
  background: var(--mz-green);
  color: var(--mz-white);
  box-shadow: var(--mz-shadow-btn);
}

.mz-btn-primary:hover {
  background: var(--mz-green-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 107, 94, 0.38);
}

.mz-btn-primary:active {
  transform: translateY(0);
}

.mz-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

#btnBack {
  display: none;
}

/* ═══════════ OVERLAY ═══════════ */
.mz-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 18;
  backdrop-filter: blur(2px);
}

.mz-overlay.active {
  display: block;
}

/* Submit-in-progress overlay — same .mz-overlay dim/blur, plus a centered
   spinner so a blocked page doesn't just look frozen. z-index above the
   plain .mz-overlay's 18 so it still wins if the mobile sidebar overlay
   also happens to be active underneath it. */
.mz-submit-overlay {
  z-index: 60;
}

.mz-submit-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mz-submit-overlay-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: var(--mz-white);
  padding: 28px 36px;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.mz-submit-spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid var(--mz-green-pale);
  border-top-color: var(--mz-green);
  animation: mz-submit-spin 0.8s linear infinite;
}

@keyframes mz-submit-spin {
  to {
    transform: rotate(360deg);
  }
}

.mz-submit-overlay-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--mz-text-1);
}

/* ═══════════ STEP 3 — CHROME-STYLE TABS ═══════════ */
.mz-chrome-tabbar {
  display: flex;
  align-items: flex-end;
  gap: 0;
  padding: 14px 24px 0;
  border-bottom: 1px solid var(--mz-border);
  position: relative;
}

.mz-chrome-tabs {
  display: flex;
  align-items: flex-end;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mz-chrome-tabs::-webkit-scrollbar {
  display: none;
}

.mz-chrome-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--mz-input-bg);
  border: 1px solid var(--mz-border);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  padding: 9px 10px 9px 16px;
  margin-right: -1px;
  margin-bottom: -1px;
  min-width: 108px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mz-text-3);
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: background 0.15s, color 0.15s;
}

.mz-chrome-tab:hover {
  color: var(--mz-text-2);
  background: #E4EFED;
}

.mz-chrome-tab.active {
  background: var(--mz-white);
  color: var(--mz-text-1);
  z-index: 2;
}

.mz-chrome-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--mz-white);
}

.mz-chrome-tab-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: inherit;
  opacity: 0.55;
  flex-shrink: 0;
}

.mz-chrome-tab-close svg {
  width: 9px;
  height: 9px;
}

.mz-chrome-tab-close:hover {
  background: rgba(0, 0, 0, 0.08);
  opacity: 1;
}

.mz-chrome-tabs.mz-has-multiple .mz-chrome-tab-close {
  display: inline-flex;
}

.mz-chrome-tab-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 8px;
  margin-bottom: 6px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--mz-text-3);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.mz-chrome-tab-add svg {
  width: 15px;
  height: 15px;
}

.mz-chrome-tab-add:hover {
  background: var(--mz-green-pale);
  color: var(--mz-green);
}

.mz-chrome-tab-add:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: none;
  color: var(--mz-text-3);
}

.mz-student-panels {
  padding-top: 6px;
}

.mz-student-panel {
  display: none;
}

.mz-student-panel.active {
  display: block;
  animation: mzFadeIn 0.2s ease;
}

/* ═══════════ STUDENT TOP / AVATAR ═══════════ */
.mz-avatar-shell {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}

.mz-avatar-circle {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--mz-input-bg);
  border: 2px dashed var(--mz-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s;
}

.mz-avatar-shell:hover .mz-avatar-circle {
  border-color: var(--mz-green);
  background: var(--mz-green-pale);
}

.mz-avatar-circle.has-image {
  border-style: solid;
  border-color: var(--mz-border);
}

.mz-avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  display: none;
}

.mz-avatar-circle.has-image .mz-avatar-placeholder-icon {
  display: none;
}

.mz-avatar-circle.has-image .mz-avatar-img {
  display: block;
}

.mz-avatar-circle.has-image {
  border-style: solid;
  border-color: var(--mz-border);
}

.mz-avatar-edit {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--mz-green);
  border: 2px solid var(--mz-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  /* shell ka child, circle ka nahi — clip nahi hoga */
  pointer-events: none;
}

.mz-avatar-edit svg {
  width: 12px;
  height: 12px;
  stroke: var(--mz-white);
}

.mz-avatar-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--mz-text-3);
}

.mz-student-fields {
  flex: 1;
  padding: 0;
  grid-template-columns: 1fr 1fr;
}

/* =========================================
   STUDENT PROFILE CARD
========================================= */

.mz-student-profile-card {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 22px;

  padding: 12px 18px;

  border: 1px solid var(--mz-border);
  border-radius: 16px;

  align-items: center;
}

/* When the school has the student-photo field turned off,
   .mz-avatar-upload (MZ.step3.toggleTpl's .mz-tpl-hide) is display:none,
   leaving only .mz-profile-fields in this grid — without this, grid
   auto-placement puts it straight into the now-empty first 100px photo
   column instead of the wide one, squeezing First/Last Name into that
   100px width. */
.mz-student-profile-card:has(.mz-avatar-upload.mz-tpl-hide) {
  grid-template-columns: 1fr;
}


/* =========================================
   AVATAR
========================================= */

.mz-avatar-upload {
  width: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mz-avatar-placeholder-icon {
  width: 52px;
  height: 52px;
}


/* =========================================
   PROFILE FIELDS
========================================= */

.mz-profile-fields {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 12px;
}


/* First + Last Name */

.mz-profile-name-row {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 12px;
}


/* Gender + DOB + Age */

.mz-profile-detail-row {
  display: grid;

  grid-template-columns:
    minmax(170px, 1fr) minmax(190px, 1.15fr) 110px;

  gap: 12px;

  align-items: center;
}


/* =========================================
   GENDER
========================================= */

.mz-gender-field {
  height: 48px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mz-profile-small-label {
  font-size: 11px;

  margin-bottom: 6px;

  color: var(--mz-muted);
}

.mz-gender-options {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mz-radio-option {
  display: inline-flex;
  align-items: center;

  gap: 7px;

  font-size: 13px;

  cursor: pointer;
}

.mz-radio-option input {
  display: none;
}

.mz-radio {
  width: 14px;
  height: 14px;

  border: 1px solid var(--mz-border);
  border-radius: 50%;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mz-radio-option input:checked+.mz-radio {
  border-color: var(--mz-green);
}

.mz-radio-option input:checked+.mz-radio::after {
  content: "";

  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: var(--mz-green);
}


/* =========================================
   AGE
========================================= */

.mz-age-field .mz-input {
  background: rgba(0, 0, 0, 0.03);
}


/* =========================================
   FORM SECTIONS
========================================= */

.mz-form-section {
  margin-top: 18px;
}

.mz-section-title {
  font-size: 13px;
  font-weight: 600;

  margin-bottom: 12px;

  color: var(--mz-text);
}


/* =========================================
   INFORMATION GRID
========================================= */

.mz-info-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 12px;
}

.mz-full-width {
  grid-column: 1 / -1;
}

/* ═══════════════════════════════════════════════════
   FILEPOND — UNIFIED MUNTAZIM THEME
   Used everywhere a file needs to be uploaded: the
   per-student "Documents" accordion (Step 3) and the
   Grade side-panel "Admission Form" docs screen. Same
   look, same behaviour, one uploader component.
   ═══════════════════════════════════════════════════ */
.filepond--root {
  font-family: 'Inter', sans-serif;
  margin-bottom: 0;
}

.filepond--drop-label {
  color: var(--mz-text-3);
  font-size: 12.5px;
}

.filepond--drop-label label {
  cursor: pointer;
  padding: 6px 0;
}

.filepond--label-action {
  text-decoration-color: var(--mz-green);
  color: var(--mz-green);
  font-weight: 700;
}

.filepond--label-action:hover {
  text-decoration-color: var(--mz-green-mid);
  color: var(--mz-green-mid);
}

/* Idle drop area — dashed, tinted like the rest of the wizard's inputs */
.filepond--panel-root {
  background-color: var(--mz-input-bg);
  border: 1.5px dashed var(--mz-border);
  border-radius: var(--mz-radius-input);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

/* Hover / drag-over state */
.filepond--root.filepond--hopper-no-drop .filepond--panel-root {
  border-color: var(--mz-red);
}

.filepond--drop-label:hover~.filepond--panel-root,
.filepond--root:hover .filepond--panel-root {
  border-color: var(--mz-green-light);
  background-color: var(--mz-green-pale);
}

.filepond--drip {
  background: var(--mz-green-pale);
}

.filepond--drip-blob {
  background: var(--mz-green);
}

/* File items */
.filepond--item-panel {
  background-color: var(--mz-green);
  border-radius: 8px;
}

.filepond--file {
  color: var(--mz-white);
}

.filepond--file-info-main {
  font-size: 12px;
  font-weight: 600;
}

.filepond--file-info-sub {
  font-size: 10.5px;
  opacity: 0.75;
}

.filepond--file-status-main {
  font-size: 11px;
}

.filepond--file-status-sub {
  font-size: 10px;
}

.filepond--file-action-button {
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.18);
  color: var(--mz-white);
}

.filepond--file-action-button:hover,
.filepond--file-action-button:focus {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Progress ring / load indicator uses the brand green */
.filepond--progress-indicator svg .filepond--progress-indicator-circle-fill {
  stroke: var(--mz-white);
}

.filepond--load-indicator svg,
.filepond--processing-complete-indicator svg {
  color: var(--mz-white);
}

/* Upload success tick + error cross backgrounds */
.filepond--file-status {
  color: rgba(255, 255, 255, 0.85);
}

/* Error state on the panel itself (bad file type, too large, etc.) */
.filepond--item.filepond--file-load-error .filepond--item-panel,
.filepond--item.filepond--file-processing-error .filepond--item-panel {
  background-color: var(--mz-red);
}

/* Remove FilePond's own credit line — theme owns the footer instead */
.filepond--credits {
  display: none;
}

/* Compact single-doc uploaders inside the grade side-panel — each
   required document gets its own small FilePond drop area rather
   than one big multi-file dropzone. */
.mz-doc-filepond-wrap .filepond--root {
  font-size: 12.5px;
}

.mz-doc-filepond-wrap .filepond--panel-root {
  border-radius: 10px;
}

.mz-doc-filepond-wrap .filepond--drop-label {
  min-height: 3.4em;
}

/* ═══════════ FLATPICKR — CALENDAR THEME ═══════════ */
.mz-dob-wrap .mz-dob-input {
  cursor: pointer;
  padding-right: 38px;
}

.mz-dob-icon {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  stroke: var(--mz-text-3);
  pointer-events: none;
  transition: stroke 0.15s;
}

.mz-dob-wrap:focus-within .mz-dob-icon {
  stroke: var(--mz-green);
}

.flatpickr-calendar {
  font-family: 'Inter', sans-serif;
  background: var(--mz-white);
  box-shadow: 0 14px 38px rgba(14, 107, 94, 0.20), 0 2px 10px rgba(14, 107, 94, 0.08);
  border: 1px solid var(--mz-border);
  border-radius: 14px;
  overflow: hidden;
  width: 300px !important;
}

.flatpickr-calendar.open {
  animation: mzCalPop 0.15s ease;
}

.flatpickr-calendar.arrowTop:before,
.flatpickr-calendar.arrowTop:after {
  border-bottom-color: var(--mz-green);
}

.flatpickr-innerContainer,
.flatpickr-rContainer {
  width: 100%;
}

/* ── Header ── */
.flatpickr-months {
  position: relative;
  background: linear-gradient(160deg, var(--mz-green) 0%, #0A5248 100%);
  padding: 14px 10px 16px;
}

.flatpickr-months .flatpickr-month {
  background: transparent;
  color: var(--mz-white);
  min-height: 44px;
  height: auto;
  overflow: visible;
  fill: var(--mz-white);
}

.flatpickr-current-month {
  position: absolute;
  left: 0;
  right: 0;
  width: auto;
  height: auto;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 42px;
  font-size: 13px;
  z-index: 1;
  line-height: 1.2;
}

.flatpickr-current-month span.cur-month {
  color: var(--mz-white);
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 7px;
  padding: 6px 26px 6px 11px;
  color: var(--mz-white);
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px;
  transition: background-color 0.15s, border-color 0.15s;
}

.flatpickr-current-month .flatpickr-monthDropdown-months:hover,
.flatpickr-current-month .flatpickr-monthDropdown-months:focus {
  background-color: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.42);
}

.flatpickr-current-month .flatpickr-monthDropdown-months option {
  background: var(--mz-white);
  color: var(--mz-text-1);
  font-weight: 600;
}

.flatpickr-current-month .numInputWrapper {
  width: 72px;
}

.flatpickr-months .numInputWrapper span.arrowUp,
.flatpickr-months .numInputWrapper span.arrowDown {
  display: block;
  opacity: 0.85;
  border: none;
}

.flatpickr-months .numInputWrapper span.arrowUp:after {
  border-bottom-color: var(--mz-white);
}

.flatpickr-months .numInputWrapper span.arrowDown:after {
  border-top-color: var(--mz-white);
}

.numInputWrapper:hover {
  background: transparent;
}

.flatpickr-current-month input.cur-year {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 7px;
  color: var(--mz-white);
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  padding: 6px 6px 6px 11px;
  cursor: text;
}

.flatpickr-current-month input.cur-year:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.42);
}

.flatpickr-prev-month,
.flatpickr-next-month {
  position: absolute;
  top: 12px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s;
  z-index: 2;
}

.flatpickr-prev-month {
  left: 10px;
}

.flatpickr-next-month {
  right: 10px;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
  background: rgba(255, 255, 255, 0.18);
}

.flatpickr-prev-month svg,
.flatpickr-next-month svg {
  fill: var(--mz-white);
  width: 13px;
  height: 13px;
}

/* ── Weekdays ── */
.flatpickr-weekdays {
  background: var(--mz-white);
  padding: 12px 10px 0;
  height: auto;
}

span.flatpickr-weekday {
  background: var(--mz-white);
  color: var(--mz-text-3);
  font-weight: 700;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1;
}

/* ── Day grid ── */
.flatpickr-days {
  border: none;
  width: 100%;
}

.dayContainer {
  width: 100%;
  min-width: 100%;
  padding: 6px 10px 10px;
}

.flatpickr-day {
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--mz-text-1);
  max-width: none;
  height: 34px;
  line-height: 34px;
  margin: 1px 0;
  transition: background 0.12s, color 0.12s, box-shadow 0.12s;
}

.flatpickr-day:hover {
  background: var(--mz-green-pale);
}

.flatpickr-day.today {
  border-color: var(--mz-green);
}

.flatpickr-day.today:hover,
.flatpickr-day.today:focus {
  background: var(--mz-green);
  color: var(--mz-white);
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus {
  background: var(--mz-green);
  border-color: var(--mz-green);
  color: var(--mz-white);
  box-shadow: 0 3px 10px rgba(14, 107, 94, 0.32);
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: #C3D5D2;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  color: #D5E2E0;
  cursor: not-allowed;
  background: transparent;
}

@keyframes mzCalPop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive — smaller viewports get a tighter calendar */
@media (max-width: 480px) {
  .flatpickr-calendar {
    width: 272px !important;
    max-width: 90vw;
  }

  .flatpickr-day {
    height: 32px;
    line-height: 32px;
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .flatpickr-calendar {
    width: 246px !important;
  }

  .flatpickr-months {
    padding: 12px 8px 14px;
  }

  .flatpickr-day {
    height: 28px;
    line-height: 28px;
    font-size: 11px;
  }

  .flatpickr-current-month {
    font-size: 11.5px;
    gap: 4px;
  }

  .flatpickr-current-month .flatpickr-monthDropdown-months {
    font-size: 11px;
    padding: 5px 22px 5px 8px;
  }

  .flatpickr-current-month .numInputWrapper {
    width: 62px;
  }

  .flatpickr-current-month input.cur-year {
    font-size: 11px;
    padding: 5px 4px 5px 8px;
  }
}

.mz-input[readonly] {
  cursor: default;
}

.mz-age-input[readonly] {
  color: var(--mz-text-2);
}

/* ═══════════ ACCORDIONS ═══════════ */
.mz-accordion {
  margin: 0 24px 16px;
  border: 1px solid var(--mz-border);
  border-radius: 12px;
  overflow: hidden;
}

.mz-accordion-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FAFDFB;
  border: none;
  padding: 14px 18px;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--mz-text-1);
}

.mz-accordion-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mz-accordion-title svg {
  width: 16px;
  height: 16px;
  stroke: var(--mz-green);
}

.mz-accordion-chevron {
  width: 16px;
  height: 16px;
  stroke: var(--mz-text-3);
  transition: transform 0.2s;
}

.mz-accordion.open .mz-accordion-chevron {
  transform: rotate(180deg);
}

.mz-accordion-body {
  max-height: 2000px;
  padding: 20px 18px 4px;
  border-top: 1px solid var(--mz-border);
  transition: max-height 0.25s ease, padding 0.25s ease;
  overflow: hidden;
}

.mz-accordion:not(.open) .mz-accordion-body {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top: none;
}

/* ═══════════ LINK + EXTRA FIELDS ═══════════ */
.mz-link-field {
  position: relative;
}

.mz-link-field .mz-link-input {
  padding-right: 44px;
}

.mz-copy-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mz-white);
  border: 1px solid var(--mz-border);
  border-radius: 7px;
  color: var(--mz-text-3);
  cursor: pointer;
  transition: all 0.15s;
}

.mz-copy-btn svg {
  width: 14px;
  height: 14px;
}

.mz-copy-btn:hover {
  border-color: var(--mz-green);
  color: var(--mz-green);
}

.mz-copy-btn.copied {
  border-color: var(--mz-green);
  background: var(--mz-green-pale);
  color: var(--mz-green);
}

.mz-tpl-hide {
  display: none !important;
}

.mz-extra-fields {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--mz-border);
}

.mz-extra-fields.mz-extra-fields-solo {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.mz-extra-fields-list.mz-info-grid {
  display: grid;
}

.mz-extra-fields-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.mz-extra-fields-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mz-label);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.mz-extra-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1.5px dashed var(--mz-border);
  border-radius: 8px;
  padding: 6px 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--mz-green);
  cursor: pointer;
  transition: all 0.16s;
}

.mz-extra-add-btn svg {
  width: 12px;
  height: 12px;
}

.mz-extra-add-btn:hover {
  border-color: var(--mz-green);
  background: var(--mz-green-pale);
}

.mz-extra-fields-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mz-extra-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: center;
  animation: mzFadeIn 0.18s ease;
}

.mz-extra-field-row .mz-input {
  margin: 0;
}

.mz-extra-remove-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mz-input-bg);
  border: none;
  border-radius: 8px;
  color: var(--mz-text-3);
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}

.mz-extra-remove-btn svg {
  width: 13px;
  height: 13px;
}

.mz-extra-remove-btn:hover {
  background: rgba(217, 64, 64, 0.12);
  color: var(--mz-red);
}

/* ═══════════ PROGRAM SELECTION ═══════════ */
.mz-program-accordion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #FAFDFB;
  padding: 14px 18px;
}

.mz-accordion-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--mz-text-1);
  flex: 1;
  text-align: left;
}

.mz-header-add-program-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mz-green);
  padding: 6px 4px;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.mz-header-add-program-btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--mz-green);
}

.mz-header-add-program-btn:hover {
  opacity: 0.7;
}

.mz-program-hint-text {
  font-size: 12.5px;
  color: var(--mz-text-3);
  margin-bottom: 14px;
}

.mz-student-dob-err-msg:not(:empty) {
  margin-bottom: 14px;
}

.mz-student-dob-err-msg .mz-age-limit-alert + .mz-age-limit-alert {
  margin-top: 10px;
}

.mz-age-limit-alert {
  position: relative;
  padding: 16px 40px 16px 18px;
  background: var(--mz-white);
  border: 1px solid rgba(14, 107, 94, 0.35);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(14, 107, 94, 0.08);
}

.mz-age-limit-alert-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--mz-green);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  opacity: 0.75;
  transition: opacity 0.15s, background 0.15s;
}

.mz-age-limit-alert-close:hover {
  opacity: 1;
  background: var(--mz-green-pale);
}

.mz-age-limit-alert-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 13px;
  line-height: 1.55;
  color: var(--mz-text-2);
}

.mz-age-limit-alert-list li {
  margin-bottom: 8px;
}

.mz-age-limit-alert-list li:last-child {
  margin-bottom: 0;
}

.mz-age-limit-alert-list strong {
  color: var(--mz-text-1);
  font-weight: 700;
}

.mz-selected-grade-list {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  width: 100%;
  gap: 12px;
}

.mz-selected-grade-card {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  background: var(--mz-white);
  border: 1px solid var(--mz-border);
  border-radius: 12px;
  box-shadow: var(--mz-shadow-card);
  overflow: hidden;
  max-width: 420px;
  width: 100%;
}

.mz-selected-grade-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.mz-grade-edit-btn,
.mz-grade-delete-btn {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s;
  padding: 0;
}

.mz-grade-edit-btn {
  background: #E8F3F1;
  border: 1px solid rgba(14, 107, 94, 0.25);
  color: var(--mz-green);
}

.mz-grade-delete-btn {
  background: #FBEAEA;
  border: 1px solid rgba(217, 64, 64, 0.25);
  color: var(--mz-red);
}

.mz-grade-edit-btn svg,
.mz-grade-delete-btn svg {
  width: 12px;
  height: 12px;
}

.mz-grade-edit-btn:hover {
  background: rgba(14, 107, 94, 0.16);
}

.mz-grade-delete-btn:hover {
  background: rgba(217, 64, 64, 0.16);
}

.mz-selected-grade-badge-box {
  flex-shrink: 0;
  width: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--mz-green) 0%, #0A5248 100%);
  color: var(--mz-white);
  padding: 12px 8px;
}

.mz-selected-grade-badge-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.mz-selected-grade-badge-label {
  font-size: 10.5px;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.75);
}

.mz-selected-grade-lines {
  padding: 14px 72px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 240px;
}

.mz-selected-grade-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12.5px;
}

.mz-selected-grade-line .mz-sgl-label {
  font-weight: 700;
  color: var(--mz-text-1);
}

.mz-selected-grade-line .mz-sgl-amount {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--mz-text-2);
}

.mz-selected-grade-line.mz-sgl-discount .mz-sgl-amount {
  color: var(--mz-red);
}

/* ═══════════ GRADE SIDE PANEL ═══════════ */
.mz-grade-side-panel-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  z-index: 100;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  justify-content: flex-end;
}

.mz-grade-side-panel-overlay.open {
  right: 0;
}

.mz-grade-side-panel-overlay::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.mz-grade-side-panel-overlay.open::before {
  opacity: 1;
}

.mz-grade-side-panel {
  position: relative;
  width: 50%;
  max-width: 50%;
  height: 100%;
  background: var(--mz-white);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 101;
  display: flex;
  flex-direction: column;
  animation: mzSlideIn 0.3s ease;
}

@keyframes mzSlideIn {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

.mz-side-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--mz-border);
  background: linear-gradient(160deg, var(--mz-green) 0%, #0A5248 100%);
}

.mz-side-panel-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--mz-white);
  margin: 0;
}

.mz-side-panel-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: var(--mz-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.mz-side-panel-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.mz-side-panel-close-btn svg {
  width: 14px;
  height: 14px;
}

.mz-side-panel-body {
  flex: 1;
  /* Column flex so #spScrollArea (flex:1, its own overflow-y:auto) takes
     whatever space the content doesn't need and the footer bars
     (flex-shrink:0 below) stay pinned to the bottom of the panel instead
     of trailing right under short content — e.g. a grade with no
     admission-form details to fill (see showDocs' empty-state branch in
     assign_course_online_revamped.js). */
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 0;
}

.mz-sp-header-back-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: var(--mz-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
  margin-right: 4px;
}

.mz-sp-header-back-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.mz-sp-header-back-btn svg {
  width: 15px;
  height: 15px;
}

#spScrollArea {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.mz-sp-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--mz-border);
  background: var(--mz-white);
  flex-shrink: 0;
}

.mz-sp-footer-single {
  justify-content: flex-end;
}

/* ═══════════ GRADE CARD GRID ═══════════ */
.mz-grade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding: 18px;
}

.mz-grade-grid-status {
  grid-column: 1 / -1;
}

.mz-sp-loader {
  width: 36px;
  height: 36px;
  border: 3px solid var(--mz-green-pale);
  border-top-color: var(--mz-green);
  border-radius: 50%;
  animation: mzSpin 0.7s linear infinite;
  margin: 0 auto 16px;
}

@keyframes mzSpin {
  to { transform: rotate(360deg); }
}

.mz-grade-card.is-busy {
  opacity: 0.65;
  pointer-events: none;
}

.mz-sp-retry-btn {
  margin-top: 16px;
}

.mz-grade-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--mz-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--mz-white);
  padding: 18px;
  min-height: 100%;
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
}

.mz-grade-card:hover {
  box-shadow: 0 6px 20px rgba(14, 107, 94, 0.14);
  border-color: rgba(14, 107, 94, 0.3);
  transform: translateY(-2px);
}

.mz-grade-card.is-selected {
  border-color: var(--mz-green);
  box-shadow: 0 0 0 2px rgba(14, 107, 94, 0.18);
}

.mz-grade-card.is-unavailable {
  opacity: 0.72;
}

.mz-grade-card.is-unavailable .mz-grade-card-spots,
.mz-gd-spots-pill.is-unavailable {
  color: #B42318;
  background: #FBEAEA;
  border-color: rgba(217, 64, 64, 0.28);
}

.mz-grade-card.is-unavailable .mz-grade-card-add-btn {
  color: #98A2B3;
  background: #F8F9FB;
  border-color: #E4E7EC;
}

.mz-grade-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.mz-grade-card-header-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.mz-grade-card-title-wrap {
  min-width: 0;
}

.mz-grade-card-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--mz-text-1);
  line-height: 1.35;
  word-break: break-word;
  cursor: pointer;
  /* Silent safety net alongside MZ.step3.buildGradeCardName's character-
     count truncation (which already front-ellipsizes long names) — just
     clips, no -webkit-line-clamp here since that adds its own trailing
     "…" on overflow, which would fight the leading "…" our own JS adds. */
  max-height: calc(1.35em * 2);
  overflow: hidden;
}

.mz-grade-card-name:hover {
  color: var(--mz-green);
}

.mz-grade-card-badge {
  width: 60px;
  height: 60px;
  border-radius: 13px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--mz-white);
  background: var(--card-color, var(--mz-green));
}

.mz-grade-card-badge-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.3px;
  text-align: center;
}

.mz-grade-card-badge-label {
  font-size: 9.5px;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.85);
}

.mz-grade-card-spots {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--mz-green);
  background: var(--mz-green-pale);
  border: 1px solid rgba(14, 107, 94, 0.22);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
  margin-top: 2px;
  flex-shrink: 0;
}

.mz-grade-card-info {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 16px;
  flex: 1;
}

.mz-grade-card-info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  font-size: 12.5px;
}

.mz-grade-card-info-label {
  color: var(--mz-text-3);
  font-weight: 500;
  flex-shrink: 0;
}

.mz-grade-card-info-value {
  color: var(--mz-text-1);
  font-weight: 600;
  text-align: right;
}

.mz-grade-card-fee-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mz-grade-card-fee-amount {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--mz-text-1);
  white-space: nowrap;
}

.mz-grade-card-fee-label {
  font-size: 10.5px;
  color: var(--mz-text-3);
  margin-top: 1px;
}

.mz-grade-card-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-shrink: 0;
}

.mz-grade-card-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--mz-border);
  border-radius: 50%;
  color: var(--mz-text-2);
  background: var(--mz-white);
  cursor: pointer;
  transition: all 0.16s;
  flex-shrink: 0;
}

.mz-grade-card-info-btn svg {
  width: 15px;
  height: 15px;
}

.mz-grade-card-info-btn:hover {
  border-color: var(--mz-green);
  color: var(--mz-green);
  background: var(--mz-green-pale);
}

.mz-grade-card-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--mz-green);
  border-radius: 999px;
  padding: 9px 70px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mz-green);
  background: var(--mz-white);
  cursor: pointer;
  transition: all 0.16s;
  white-space: nowrap;
}

.mz-grade-card-add-btn:hover {
  background: var(--mz-green);
  color: var(--mz-white);
}

.mz-grade-card.is-selected .mz-grade-card-add-btn {
  background: var(--mz-green);
  color: var(--mz-white);
}

/* ═══════════ GRADE DETAIL ═══════════ */
.mz-gd-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.mz-gd-badge-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.mz-gd-title-wrap {
  min-width: 0;
}

.mz-gd-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--mz-text-1);
  margin: 0;
  line-height: 1.3;
  word-break: break-word;
  /* Silent safety net, same reasoning as .mz-grade-card-name — no
     -webkit-line-clamp (its own auto-ellipsis would land at the end,
     fighting our leading "…"). */
  max-height: calc(1.3em * 2);
  overflow: hidden;
}

.mz-gd-badge {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  flex-shrink: 0;
  background: linear-gradient(160deg, var(--mz-green) 0%, #0A5248 100%);
  color: var(--mz-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mz-gd-badge-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.3px;
  text-align: center;
}

.mz-gd-badge-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
}

.mz-gd-spots-pill {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--mz-green);
  background: var(--mz-green-pale);
  border: 1px solid rgba(14, 107, 94, 0.22);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}

.mz-gd-section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--mz-label);
  margin: 26px 0 12px;
}

.mz-gd-section-title:first-of-type {
  margin-top: 0;
}

.mz-gd-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
  background: var(--mz-input-bg);
  border-radius: 10px;
  padding: 16px 18px;
}

.mz-gd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  position: relative;
}

.mz-gd-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--mz-text-1);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mz-gd-label .mz-tooltip-wrap {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.mz-gd-label .mz-tooltip-icon {
  width: 14px;
  height: 14px;
  stroke: var(--mz-text-3);
  transition: stroke 0.16s ease, transform 0.16s ease;
}

.mz-gd-label .mz-tooltip-wrap:hover .mz-tooltip-icon,
.mz-gd-label .mz-tooltip-wrap:focus .mz-tooltip-icon,
.mz-gd-label .mz-tooltip-wrap.mz-tooltip-active .mz-tooltip-icon {
  stroke: var(--mz-green);
  transform: scale(1.1);
}

.mz-gd-row .mz-tooltip-bubble {
  min-width: 180px;
  max-width: 260px;
  left: 0;
  right: auto;
  bottom: calc(100% + 8px);
  white-space: normal;
  word-break: break-word;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.mz-gd-row .mz-tooltip-bubble::after {
  left: 12px;
  right: auto;
}

.mz-gd-value {
  font-size: 12px;
  color: var(--mz-green-mid);
  font-weight: 500;
  text-align: right;
}

.mz-gd-payment-hint {
  font-size: 12px;
  color: var(--mz-text-3);
  margin: -6px 0 14px;
}

.mz-payment-mode-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 8px;
}

.mz-payment-mode-card {
  border: 1.5px solid var(--mz-border);
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.16s;
  background: var(--mz-white);
}

.mz-payment-mode-card:hover {
  border-color: rgba(14, 107, 94, 0.35);
}

.mz-payment-mode-card.selected {
  border-color: var(--mz-green);
  background: var(--mz-green-pale);
  box-shadow: 0 0 0 2px rgba(14, 107, 94, 0.14);
}

.mz-pmc-amount {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--mz-text-1);
}

.mz-pmc-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mz-text-1);
  margin-top: 6px;
}

.mz-pmc-sub {
  font-size: 10.5px;
  color: var(--mz-text-3);
  margin-top: 4px;
  line-height: 1.4;
}

.mz-payment-mode-card.selected .mz-pmc-sub {
  color: var(--mz-green-mid);
}

.mz-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 16px;
  border-radius: 10px;
  border: 1px solid var(--mz-border);
}

.mz-table-responsive .mz-grade-table {
  border-radius: 0;
  margin-bottom: 0;
}

.mz-grade-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
}

.mz-grade-table th {
  background: var(--mz-green);
  color: var(--mz-white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-align: left;
  padding: 9px 12px;
}

.mz-grade-table td {
  font-size: 12.5px;
  color: var(--mz-text-2);
  padding: 9px 12px;
  border-bottom: 1px solid var(--mz-border);
  background: var(--mz-white);
}

.mz-grade-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 768px) {
  .mz-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
    width: 100%;
  }

  .mz-table-responsive .mz-grade-table,
  .mz-grade-table {
    min-width: 520px;
  }

  .mz-grade-table th,
  .mz-grade-table td {
    white-space: nowrap;
  }
  .mz-selected-grade-list{
    grid-template-columns: repeat(1,1fr);
  }
}

/* ═══════════ DOCS/UPLOAD SCREEN ═══════════ */
.mz-docs-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--mz-text-1);
  padding-bottom: 16px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--mz-border);
}

.mz-upload-clean-list {
  display: flex;
  flex-direction: column;
}

.mz-upload-clean-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 0;
  border-bottom: 1px solid var(--mz-border);
}

.mz-upload-clean-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mz-upload-clean-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--mz-text-1);
}

.mz-upload-clean-meta {
  font-size: 11px;
  color: var(--mz-text-3);
}

.mz-doc-filepond-wrap {
  position: relative;
}

.mz-doc-filepond-wrap.has-error .filepond--root,
.mz-doc-filepond-wrap .filepond--root.mz-field-error {
  box-shadow: 0 0 0 2px var(--mz-red);
  border-radius: 12px;
}

.mz-upload-error-msg {
  display: none;
  position: static;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--mz-red);
}

.mz-doc-filepond-wrap.has-error .mz-upload-error-msg {
  display: block;
}

.mz-docs-customfield-row .mz-field-label {
  max-width: calc(100% - 48px);
  overflow: hidden;
}

.mz-docs-customfield-row .mz-field-label .mz-tooltip-wrap {
  max-width: 100%;
  pointer-events: auto;
  cursor: help;
  justify-content: flex-start;
}

.mz-docs-customfield-row .mz-field-label-text {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.mz-docs-customfields-list {
  margin-top: 4px;
}

.mz-docs-customfield-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--mz-border);
}

.mz-docs-customfield-row label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--mz-label);
  margin-bottom: 8px;
}

.mz-docs-customfield-input {
  border: none;
  border-bottom: 1.5px solid var(--mz-border);
  background: transparent;
  width: 100%;
  padding: 6px 2px;
  font-size: 13px;
  color: var(--mz-text-1);
  outline: none;
  transition: border-color 0.15s;
}

.mz-docs-customfield-input:focus {
  border-bottom-color: var(--mz-green);
}

.mz-docs-link-row {
  padding-top: 20px;
}

/* ═══════════ DOCS SCREEN — CUSTOM FIELDS (2-col grid, icon inside field) ═══════════ */
.mz-docs-customfields-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 4px;
  padding-top: 4px;
}

.mz-docs-customfield-row {
  padding: 0;
  border-bottom: none;
}

.mz-docs-customfield-row .mz-field {
  margin-bottom: 0;
}

/* =========================================
   CUSTOM FIELD — TOOLTIP INSIDE INPUT
========================================= */

.mz-docs-customfield-row .mz-field {
  position: relative;
  margin-bottom: 0;
}

.mz-docs-customfield-row .mz-field.mz-field-has-tooltip .mz-input {
  padding-right: 46px;
}


/* =========================================
   TOOLTIP ICON — INSIDE INPUT
========================================= */

.mz-docs-customfield-row .mz-field>.mz-tooltip-wrap {
  position: absolute;

  top: 50%;
  right: 12px;

  width: 24px;
  height: 24px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transform: translateY(-50%);

  z-index: 10;
  cursor: pointer;
}


.mz-docs-customfield-row .mz-field>.mz-tooltip-wrap .mz-tooltip-icon {
  width: 16px;
  height: 16px;

  stroke: var(--mz-text-3);

  transition:
    stroke 0.15s ease,
    transform 0.15s ease;
}

.mz-docs-customfield-row .mz-field>.mz-tooltip-wrap:hover .mz-tooltip-icon,

.mz-docs-customfield-row .mz-field>.mz-tooltip-wrap:focus .mz-tooltip-icon,

.mz-docs-customfield-row .mz-field>.mz-tooltip-wrap.mz-tooltip-active .mz-tooltip-icon {
  stroke: var(--mz-green);
  transform: scale(1.08);
}


/* =========================================
   BASE TOOLTIP
========================================= */

.mz-tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
}

.mz-tooltip-bubble {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  right: auto;
  transform: translateX(-50%) translateY(4px);
  min-width: 180px;
  max-width: 280px;
  padding: 9px 12px;
  background: #1e293b;
  color: var(--mz-white);
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.5;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
  z-index: 9999;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

.mz-tooltip-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1e293b;
}

.mz-tooltip-wrap:hover .mz-tooltip-bubble,
.mz-tooltip-wrap:focus .mz-tooltip-bubble,
.mz-tooltip-wrap.mz-tooltip-active .mz-tooltip-bubble {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mz-tooltip-bubble.mz-tooltip-align-right {
  left: auto !important;
  right: -8px !important;
  transform: translateY(4px) !important;
}
.mz-tooltip-bubble.mz-tooltip-align-right::after {
  left: auto !important;
  right: 12px !important;
  transform: none !important;
}

.mz-tooltip-wrap:hover .mz-tooltip-bubble.mz-tooltip-align-right,
.mz-tooltip-wrap:focus .mz-tooltip-bubble.mz-tooltip-align-right,
.mz-tooltip-wrap.mz-tooltip-active .mz-tooltip-bubble.mz-tooltip-align-right {
  transform: translateY(0) !important;
}

.mz-tooltip-bubble.mz-tooltip-align-left {
  left: -8px !important;
  right: auto !important;
  transform: translateY(4px) !important;
}
.mz-tooltip-bubble.mz-tooltip-align-left::after {
  left: 12px !important;
  right: auto !important;
  transform: none !important;
}

.mz-tooltip-wrap:hover .mz-tooltip-bubble.mz-tooltip-align-left,
.mz-tooltip-wrap:focus .mz-tooltip-bubble.mz-tooltip-align-left,
.mz-tooltip-wrap.mz-tooltip-active .mz-tooltip-bubble.mz-tooltip-align-left {
  transform: translateY(0) !important;
}

@media (max-width: 640px) {
  .mz-tooltip-bubble {
    max-width: calc(100vw - 48px);
  }
}

@media (max-width: 700px) {
  .mz-docs-customfields-list {
    grid-template-columns: 1fr;
  }
}

/* ═══════════ DOCS SCREEN — LINK SECTION (own block after uploaders) ═══════════ */
.mz-docs-link-section {
  margin-top: 8px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--mz-border);
}

.mz-docs-link-section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--mz-label);
  margin-bottom: 12px;
}

.mz-docs-link-row {
  padding-top: 0;
}

.mz-admin-docs-section {
  margin-top: 22px;
  padding-top: 8px;
}

.mz-admin-docs-section .mz-info-box {
  margin-bottom: 16px;
}

.mz-admin-docs-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mz-text-1);
  margin-bottom: 10px;
}

.mz-admin-docs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mz-admin-doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--mz-border);
  border-radius: 10px;
  background: var(--mz-white);
  text-decoration: none;
  color: var(--mz-text-1);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.mz-admin-doc-item:hover {
  border-color: rgba(14, 107, 94, 0.35);
  box-shadow: 0 4px 14px rgba(14, 107, 94, 0.08);
}

.mz-admin-doc-name {
  font-size: 13px;
  font-weight: 600;
  word-break: break-word;
}

.mz-admin-doc-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--mz-green-pale);
  flex-shrink: 0;
}

.mz-admin-doc-download svg {
  width: 16px;
  height: 16px;
  stroke: var(--mz-green);
}

/* ═══════════ STEP 1 — SCHOOL & SESSION SELECTION ═══════════ */
.mz-select-section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--mz-text-1);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mz-select-section-sub {
  font-size: 12.5px;
  color: var(--mz-text-3);
  margin: 4px 0 16px;
}

.mz-school-card-grid,
.mz-session-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.mz-school-card {
  position: relative;
  border: 1.5px solid var(--mz-border);
  border-radius: 14px;
  background: var(--mz-white);
  padding: 16px;
  cursor: pointer;
  transition: all 0.18s;
}

.mz-school-card:hover {
  border-color: rgba(14, 107, 94, 0.35);
  box-shadow: 0 6px 18px rgba(14, 107, 94, 0.10);
  transform: translateY(-2px);
}

.mz-school-card.selected {
  border-color: var(--mz-green);
  box-shadow: 0 0 0 2px rgba(14, 107, 94, 0.16);
  background: var(--mz-green-pale);
}

.mz-school-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mz-school-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--mz-green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mz-school-card-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--mz-green);
}

.mz-school-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.mz-school-card-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mz-green);
  color: var(--mz-white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.18s;
  flex-shrink: 0;
}

.mz-school-card.selected .mz-school-card-check {
  opacity: 1;
  transform: scale(1);
}

.mz-school-card-check svg {
  width: 12px;
  height: 12px;
}

.mz-school-card-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--mz-text-1);
  margin-top: 14px;
}

.mz-school-card-loc {
  font-size: 11px;
  color: var(--mz-text-3);
  margin-top: 2px;
}

.mz-school-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.mz-school-card-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--mz-input-bg);
  border: 1px solid var(--mz-border);
  border-radius: 999px;
  padding: 6px 11px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--mz-text-2);
  cursor: pointer;
  transition: all 0.15s;
}

.mz-school-card-action-btn svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
}

.mz-school-card-action-btn:hover {
  border-color: var(--mz-green);
  color: var(--mz-green);
  background: var(--mz-white);
}

.mz-session-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--mz-border);
  border-radius: 12px;
  background: var(--mz-white);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.16s;
}

.mz-session-card:hover {
  border-color: rgba(14, 107, 94, 0.35);
}

.mz-session-card.selected {
  border-color: var(--mz-green);
  background: var(--mz-green-pale);
  box-shadow: 0 0 0 2px rgba(14, 107, 94, 0.14);
}

.mz-session-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
  background: var(--mz-input-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mz-session-card-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--mz-green);
}

.mz-session-card-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--mz-text-1);
}

.mz-session-card-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mz-green);
  color: var(--mz-white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.18s;
}

.mz-session-card.selected .mz-session-card-check {
  opacity: 1;
  transform: scale(1);
}

.mz-session-card-check svg {
  width: 10px;
  height: 10px;
}



/* ═══════════ JQUERY STEPS OVERRIDE ═══════════ */
#wizard.wizard {
  background: transparent;
  border: none;
}

#wizard>.steps,
#wizard>.actions {
  display: none !important;
}

#wizard>.content {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  min-height: 0 !important;
}

#wizard>.content>div.body {
  padding: 0;
  margin: 0;
  float: none;
  width: auto;
  position: static !important;
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (min-width: 1600px) {

  .mz-main-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 44px 40px 70px;
  }

  .mz-page-title {
    font-size: 30px;
  }

  .mz-page-sub {
    font-size: 14.5px;
  }

  .mz-page-eyebrow {
    font-size: 11px;
  }

  .mz-card-title,
  .mz-accordion-title,
  .mz-section-title {
    font-size: 15px;
  }

  .mz-card-sub {
    font-size: 12.5px;
  }

  .mz-label,
  .mz-float-label,
  .mz-field-label,
  .mz-profile-small-label {
    font-size: 14.5px;
  }

  .mz-input,
  .mz-select {
    font-size: 15px;
    padding: 13px 15px;
  }

  .mz-input::placeholder {
    font-size: 14.5px;
  }

  .mz-hint {
    font-size: 12.5px;
  }

  .mz-btn {
    font-size: 14.5px;
    padding: 13px 24px;
  }

  .mz-brand-name {
    font-size: 19px;
  }

  .mz-step-name {
    font-size: 14px;
  }

  .mz-step-desc {
    font-size: 11.5px;
  }

  .mz-invoice-course-name {
    font-size: 16.5px;
  }

  .mz-due-current,
  .mz-due-full,
  .mz-after-current,
  .mz-after-full {
    font-size: 16px;
  }

  .mz-grade-card-info-row,
  .mz-docs-customfield-row .mz-input {
    font-size: 13.5px;
  }
}

@media (max-width: 900px) {
  .mz-grade-side-panel {
    width: 78%;
    max-width: 78%;
  }
}

@media (max-width: 860px) {
  :root {
    --mz-sidebar-w: 250px;
  }
}

@media (max-width: 1023px) {
  .mz-layout {
    grid-template-columns: 1fr;
  }

  .mz-sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    bottom: 0;
    width: 280px;
    transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 19;
  }

  .mz-sidebar.open {
    left: 0;
  }

  .mz-mobile-header {
    display: flex;
  }

  .mz-mobile-steps {
    display: flex;
  }

  .mz-main-inner {
    padding: 24px 18px 80px;
  }

  .mz-form-grid {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 14px;
  }

  .mz-fg.full {
    grid-column: 1;
  }

  .mz-grid-divider {
    grid-column: 1;
  }

  .mz-page-title {
    font-size: 21px;
  }

  .mz-form-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .mz-footer-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .mz-btn {
    padding: 12px 18px;
    font-size: 13px;
  }

  .mz-pay-hero {
    flex-direction: column;
    gap: 18px;
  }

  .mz-pay-hero-right {
    text-align: left;
  }

  .mz-invoice-columns {
    display: none;
  }

  .mz-invoice-card {
    grid-template-columns: 1fr;
  }

  .mz-invoice-actions {
    flex-direction: row;
  }

  .mz-pay-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .mz-pay-footer-btn {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .mz-chrome-tabbar {
    padding: 12px 16px 0;
  }

  .mz-chrome-tab {
    min-width: 92px;
    padding: 8px 8px 8px 12
  }

  .mz-grade-side-panel {
    width: 100%;
    max-width: 100%;
  }

  .mz-side-panel-header {
    padding: 16px 16px;
  }

  .mz-side-panel-title {
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
  }

  #spScrollArea {
    padding: 14px;
  }

  .mz-grade-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .mz-gd-details-grid {
    grid-template-columns: 1fr;
    gap: 4px 0;
    padding: 14px 16px;
  }

  .mz-payment-mode-row {
    grid-template-columns: 1fr;
  }

  .mz-gd-top {
    flex-wrap: wrap;
  }

  .mz-docs-customfields-list {
    grid-template-columns: 1fr;
  }

  .mz-tooltip-bubble {
    right: auto;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    max-width: 200px;
  }

  .mz-tooltip-bubble::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .mz-tooltip-wrap:hover .mz-tooltip-bubble,
  .mz-tooltip-wrap:focus .mz-tooltip-bubble,
  .mz-tooltip-wrap.mz-tooltip-active .mz-tooltip-bubble {
    transform: translateX(-50%) translateY(0);
  }

  .mz-sp-footer-bar {
    padding: 12px 14px;
  }

  .mz-student-profile-card {
    grid-template-columns: 1fr;

    padding: 16px;
  }

  .mz-avatar-upload {
    width: 100%;
  }

  .mz-profile-name-row,
  .mz-info-grid {
    grid-template-columns: 1fr;
  }

  .mz-profile-detail-row {
    grid-template-columns: 1fr;
  }

  .mz-full-width {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  .mz-grade-card {
    padding: 14px;
  }

  .mz-grade-card-badge {
    width: 52px;
    height: 52px;
    border-radius: 11px;
  }

  .mz-grade-card-badge-num {
    font-size: 16px;
  }

  .mz-grade-card-info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .mz-grade-card-info-value {
    text-align: left;
  }

  .mz-grade-card-fee {
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* ═══════════ READONLY & LOCKED CONTROLS ═══════════ */
.mz-float-wrap .mz-input[readonly],
.mz-float-wrap .mz-input:read-only {
  background-color: #f1f5f9 !important;
  color: #334155 !important;
  border-color: #e2e8f0 !important;
  cursor: not-allowed !important;
  opacity: 0.9;
}

.mz-float-wrap .mz-select[style*="pointer-events: none"],
.mz-float-wrap .mz-select.readonly-select {
  background-color: #f1f5f9 !important;
  color: #334155 !important;
  border-color: #e2e8f0 !important;
  cursor: not-allowed !important;
  opacity: 0.9;
}

.mz-switch input:disabled~.mz-switch-track {
  background-color: #cbd5e1 !important;
  cursor: not-allowed !important;
  opacity: 0.6;
}

.mz-switch input:disabled~.mz-switch-thumb {
  cursor: not-allowed !important;
}

/* ═══════════════════════════════════════════════════
   STEP 5: COMPLETE PAYMENT & SUMMARY BREAKDOWN
   ═══════════════════════════════════════════════════ */
.mz-payment-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

.mz-payment-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mz-payment-card {
  margin-bottom: 0;
}

.mz-payment-settings-body {
  padding: 20px 24px;
}

/* Payment Methods List */
.mz-payment-methods-list {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mz-pay-method-option {
  border: 1.5px solid var(--mz-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--mz-white);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.mz-pay-method-option:hover {
  border-color: var(--mz-green-mid);
}

.mz-pay-method-option.active {
  border-color: var(--mz-green);
  background: #FAFDFB;
  box-shadow: 0 2px 10px rgba(14, 107, 94, 0.07);
}

.mz-pay-method-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
}

.mz-pay-method-left {
  display: flex;
  align-items: center;
}

.mz-pay-method-radio {
  display: none;
}

.mz-pay-method-radio-custom {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--mz-border);
  position: relative;
  margin-right: 12px;
  flex-shrink: 0;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.mz-pay-method-option.active .mz-pay-method-radio-custom {
  border-color: var(--mz-green);
  background: var(--mz-white);
}

.mz-pay-method-option.active .mz-pay-method-radio-custom::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mz-green);
}

.mz-pay-method-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--mz-text-1);
}

.mz-pay-card-brands {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Static "we accept these" hint in the card option's header row — does
   NOT react to the typed number. Live feedback for what's actually been
   typed lives in the Card Number field itself (.mz-card-number-brand,
   below) instead, matching the old form's placement — having both react
   would just be two competing signals for the same thing. */
.mz-card-brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 4px;
  border: 1px solid var(--mz-border);
  background: var(--mz-input-bg);
  color: var(--mz-text-2);
}

.mz-card-brand.visa {
  color: #1A1F71;
  font-style: italic;
  font-weight: 900;
}

.mz-card-brand.mc {
  color: #EB001B;
  font-weight: 800;
}

.mz-card-brand.amex {
  color: #006FCF;
  font-weight: 800;
}

.mz-card-brand.applepay {
  font-family: 'Inter', sans-serif;
  color: #000;
  font-weight: 700;
}

/* Live in-field brand indicator for Card Number, matching the old form's
   placement -- occupies the same right-side slot as #cardNumberGenericIcon
   and the two toggle with each other (see
   bindCardNumberMasking() in payment_method_section_revamped.js).
   Colors match .mz-card-brand's per-brand colors above for consistency. */
.mz-card-number-brand {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  pointer-events: none;
}

.mz-card-number-brand.visa {
  color: #1A1F71;
  font-style: italic;
  font-weight: 900;
}

.mz-card-number-brand.mc {
  color: #EB001B;
}

.mz-card-number-brand.amex {
  color: #006FCF;
}

.mz-pay-method-body {
  padding: 0 20px 20px 20px;
  border-top: 1px dashed var(--mz-border-light);
}

/* Icon inside input float wrap */
.mz-input-icon-wrap {
  position: relative;
}

.mz-input-icon-wrap .mz-input {
  padding-right: 40px;
}

.mz-input-icon-wrap .mz-input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: var(--mz-text-3);
  pointer-events: none;
}

/* Apple Pay Note */
.mz-applepay-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  margin-top: 16px;
  background: var(--mz-input-bg);
  border: 1px solid var(--mz-border);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--mz-text-2);
}

.mz-applepay-note svg {
  width: 20px;
  height: 20px;
  stroke: var(--mz-green);
  flex-shrink: 0;
}

/* Consent Checkbox Box */

.mz-payment-consent-wrap {
  padding: 0px;
  padding-top: 20px;
}

.mz-payment-consent-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--mz-green-pale);
  border: 1.5px solid rgba(14, 107, 94, 0.18);
  border-radius: 12px;
  cursor: pointer;
}

.mz-consent-checkbox {
  display: none;
}

.mz-consent-custom-check {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 2px solid var(--mz-green);
  background: var(--mz-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.18s ease;
}

.mz-consent-checkbox:checked+.mz-consent-custom-check {
  background: var(--mz-green);
  color: var(--mz-white);
}

.mz-consent-custom-check svg {
  width: 13px;
  height: 13px;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.mz-consent-checkbox:checked+.mz-consent-custom-check svg {
  opacity: 1;
}

.mz-consent-text {
  font-size: 12px;
  color: var(--mz-text-2);
  line-height: 1.55;
  user-select: none;
}

/* Donor Pay checkbox, forced on when processing_fee_display_type is
   MANDATORY (see MZ.step5.refreshDonorPayMessage) -- the checkbox itself
   stays checked and still submits normally (not `disabled`, just
   unreachable), only its toggle affordance is hidden so the applicant
   cant opt out of a mandatory fee; message text next to it stays
   visible either way. */
.mz-donor-pay-mandatory {
  pointer-events: none;
}

.mz-donor-pay-mandatory .mz-consent-custom-check {
  display: none;
}

/* Billing Same Row */
.mz-payment-billing-same-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.mz-billing-checkbox {
  display: none;
}

.mz-billing-custom-check {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 2px solid var(--mz-green);
  background: var(--mz-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.mz-billing-checkbox:checked+.mz-billing-custom-check {
  background: var(--mz-green);
  color: var(--mz-white);
}

.mz-billing-custom-check svg {
  width: 13px;
  height: 13px;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.mz-billing-checkbox:checked+.mz-billing-custom-check svg {
  opacity: 1;
}

.mz-billing-same-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--mz-text-1);
}

/* ════════ SIDEBAR SUMMARY ════════ */
.mz-payment-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mz-summary-students-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mz-summary-student-card {
  margin: 0;
  background: var(--mz-card);
  border: 1px solid var(--mz-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--mz-shadow-card);
}

.mz-summary-student-head {
  width: 100%;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAF9;
  border: none;
  border-bottom: 1px solid var(--mz-border);
  cursor: pointer;
  text-align: left;
  transition: background 0.18s ease;
}

.mz-summary-student-head:hover {
  background: #F0F6F5;
}

.mz-summary-student-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mz-summary-student-head .mz-accordion-chevron {
  width: 18px;
  height: 18px;
  stroke: var(--mz-green);
  transition: transform 0.25s ease;
}

.mz-summary-student-card.open .mz-accordion-chevron {
  transform: rotate(180deg);
}

.mz-summary-student-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--mz-text-1);
}

.mz-summary-student-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mz-summary-grade-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px;
  background: #FAFDFB;
  border: 1px solid var(--mz-border-light);
  border-radius: 10px;
}

.mz-summary-grade-badge {
  width: 50px;
  height: 56px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--mz-white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.mz-summary-grade-badge.purple {
  background: linear-gradient(135deg, #7C4DFF 0%, #651FFF 100%);
}

.mz-summary-grade-badge.blue {
  background: linear-gradient(135deg, #0288D1 0%, #01579B 100%);
}

.mz-summary-grade-badge.teal {
  background: linear-gradient(135deg, #00897B 0%, #00695C 100%);
}

.mz-sgb-num {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.mz-sgb-lbl {
  font-size: 9.5px;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.9;
  margin-top: 2px;
  letter-spacing: 0.4px;
}

.mz-summary-fee-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mz-summary-fee-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--mz-text-2);
}

.mz-summary-fee-line em {
  font-style: italic;
  font-size: 11px;
  color: var(--mz-text-3);
}

.mz-sfl-val {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--mz-text-1);
}

.mz-summary-fee-line.discount {
  color: var(--mz-green);
  font-weight: 600;
  border-top: 1px dashed var(--mz-border);
  padding-top: 4px;
  margin-top: 2px;
}

.mz-summary-fee-line.discount .mz-sfl-val {
  color: var(--mz-green);
  font-weight: 700;
}

/* Totals Box */
.mz-summary-total-box {
  background: var(--mz-card);
  border: 1.5px solid var(--mz-border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--mz-shadow-card);
}

.mz-summary-total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13.5px;
  color: var(--mz-text-2);
}

.mz-stl-label {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.mz-stl-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--mz-text-1);
}

.mz-summary-total-line.discount-line {
  color: var(--mz-green);
}

.mz-summary-total-line.discount-line .mz-stl-label {
  color: var(--mz-green);
  font-weight: 600;
}

.mz-discount-tag-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: var(--mz-green);
}

.mz-discount-tag-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--mz-green);
}

.mz-discount-tag-name {
  font-size: 11px;
  color: var(--mz-text-3);
  margin-left: 2px;
  font-weight: 400;
}

.mz-stl-val.discount-val {
  color: var(--mz-green);
  font-weight: 700;
}

.mz-fee-info-icon {
  display: inline-flex;
  align-items: center;
  color: var(--mz-text-3);
  cursor: help;
  margin-left: 2px;
}

.mz-fee-info-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--mz-text-3);
}

.mz-summary-total-divider {
  height: 1px;
  background: var(--mz-border);
  margin: 16px 0;
}

.mz-summary-total-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mz-stm-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--mz-text-1);
}

.mz-stm-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 800;
  color: var(--mz-text-1);
}

.mz-summary-tax-note {
  font-size: 11.5px;
  color: var(--mz-text-3);
  margin-top: 6px;
  text-align: left;
}

/* Media Query for Step 5 responsive layout */
@media (max-width: 1024px) {
  .mz-payment-layout {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════
   STEP 5: COMPLETE PAYMENT & SUMMARY BREAKDOWN
   ═══════════════════════════════════════════════════ */
.mz-payment-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

.mz-payment-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mz-payment-card {
  margin-bottom: 0;
}

.mz-payment-settings-body {
  padding: 20px 24px;
}

/* Payment Methods List */
.mz-payment-methods-list {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mz-pay-method-option {
  border: 1.5px solid var(--mz-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--mz-white);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.mz-pay-method-option:hover {
  border-color: var(--mz-green-mid);
}

.mz-pay-method-option.active {
  border-color: var(--mz-green);
  background: #FAFDFB;
  box-shadow: 0 2px 10px rgba(14, 107, 94, 0.07);
}

.mz-pay-method-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
}

.mz-pay-method-left {
  display: flex;
  align-items: center;
}

.mz-pay-method-radio {
  display: none;
}

.mz-pay-method-radio-custom {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--mz-border);
  position: relative;
  margin-right: 12px;
  flex-shrink: 0;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.mz-pay-method-option.active .mz-pay-method-radio-custom {
  border-color: var(--mz-green);
  background: var(--mz-white);
}

.mz-pay-method-option.active .mz-pay-method-radio-custom::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mz-green);
}

.mz-pay-method-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--mz-text-1);
}

.mz-pay-card-brands {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mz-card-brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 4px;
  border: 1px solid var(--mz-border);
  background: var(--mz-input-bg);
  color: var(--mz-text-2);
}

.mz-card-brand.visa {
  color: #1A1F71;
  font-style: italic;
  font-weight: 900;
}

.mz-card-brand.mc {
  color: #EB001B;
  font-weight: 800;
}

.mz-card-brand.amex {
  color: #006FCF;
  font-weight: 800;
}

.mz-card-brand.applepay {
  font-family: 'Inter', sans-serif;
  color: #000;
  font-weight: 700;
}

.mz-pay-method-body {
  padding: 0 20px 20px 20px;
  border-top: 1px dashed var(--mz-border-light);
}

/* Icon inside input float wrap */
.mz-input-icon-wrap {
  position: relative;
}

.mz-input-icon-wrap .mz-input {
  padding-right: 40px;
}

.mz-input-icon-wrap .mz-input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: var(--mz-text-3);
  pointer-events: none;
}

/* Apple Pay Note */
.mz-applepay-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  margin-top: 16px;
  background: var(--mz-input-bg);
  border: 1px solid var(--mz-border);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--mz-text-2);
}

.mz-applepay-note svg {
  width: 20px;
  height: 20px;
  stroke: var(--mz-green);
  flex-shrink: 0;
}

/* Consent Checkbox Box */
.mz-payment-consent-wrap {
  padding: 16px 24px 24px 24px;
}

.mz-payment-consent-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--mz-green-pale);
  border: 1.5px solid rgba(14, 107, 94, 0.18);
  border-radius: 12px;
  cursor: pointer;
}

.mz-consent-checkbox {
  display: none;
}

.mz-consent-custom-check {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 2px solid var(--mz-green);
  background: var(--mz-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.18s ease;
}

.mz-consent-checkbox:checked+.mz-consent-custom-check {
  background: var(--mz-green);
  color: var(--mz-white);
}

.mz-consent-custom-check svg {
  width: 13px;
  height: 13px;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.mz-consent-checkbox:checked+.mz-consent-custom-check svg {
  opacity: 1;
}

.mz-consent-text {
  font-size: 12px;
  color: var(--mz-text-2);
  line-height: 1.55;
  user-select: none;
}

/* Billing Same Row */
.mz-payment-billing-same-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.mz-billing-checkbox {
  display: none;
}

.mz-billing-custom-check {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 2px solid var(--mz-green);
  background: var(--mz-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.mz-billing-checkbox:checked+.mz-billing-custom-check {
  background: var(--mz-green);
  color: var(--mz-white);
}

.mz-billing-custom-check svg {
  width: 13px;
  height: 13px;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.mz-billing-checkbox:checked+.mz-billing-custom-check svg {
  opacity: 1;
}

.mz-billing-same-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--mz-text-1);
}

/* ════════ SIDEBAR SUMMARY ════════ */
.mz-payment-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mz-summary-students-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mz-summary-student-card {
  background: var(--mz-card);
  border: 1px solid var(--mz-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--mz-shadow-card);
}

.mz-summary-student-head {
  width: 100%;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAF9;
  border: none;
  border-bottom: 1px solid var(--mz-border);
  cursor: pointer;
  text-align: left;
  transition: background 0.18s ease;
}

.mz-summary-student-head:hover {
  background: #F0F6F5;
}

.mz-summary-student-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mz-summary-student-head .mz-accordion-chevron {
  width: 18px;
  height: 18px;
  stroke: var(--mz-green);
  transition: transform 0.25s ease;
}

.mz-summary-student-card.open .mz-accordion-chevron {
  transform: rotate(180deg);
}

.mz-summary-student-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--mz-text-1);
}

.mz-summary-student-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mz-summary-grade-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px;
  background: #FAFDFB;
  border: 1px solid var(--mz-border-light);
  border-radius: 10px;
}

.mz-summary-grade-badge {
  width: 50px;
  height: 56px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--mz-white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.mz-summary-grade-badge.purple {
  background: linear-gradient(135deg, #7C4DFF 0%, #651FFF 100%);
}

.mz-summary-grade-badge.blue {
  background: linear-gradient(135deg, #0288D1 0%, #01579B 100%);
}

.mz-summary-grade-badge.teal {
  background: linear-gradient(135deg, #00897B 0%, #00695C 100%);
}

.mz-sgb-num {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.mz-sgb-lbl {
  font-size: 9.5px;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.9;
  margin-top: 2px;
  letter-spacing: 0.4px;
}

.mz-summary-fee-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mz-summary-fee-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--mz-text-2);
}

.mz-summary-fee-line em {
  font-style: italic;
  font-size: 11px;
  color: var(--mz-text-3);
}

.mz-sfl-val {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--mz-text-1);
}

.mz-summary-fee-line.discount {
  color: var(--mz-green);
  font-weight: 600;
  border-top: 1px dashed var(--mz-border);
  padding-top: 4px;
  margin-top: 2px;
}

.mz-summary-fee-line.discount .mz-sfl-val {
  color: var(--mz-green);
  font-weight: 700;
}

/* Totals Box */
.mz-summary-total-box {
  background: var(--mz-card);
  border: 1.5px solid var(--mz-border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--mz-shadow-card);
}

.mz-summary-total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13.5px;
  color: var(--mz-text-2);
}

.mz-stl-label {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.mz-stl-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--mz-text-1);
}

.mz-summary-total-line.discount-line {
  color: var(--mz-green);
}

.mz-summary-total-line.discount-line .mz-stl-label {
  color: var(--mz-green);
  font-weight: 600;
}

.mz-discount-tag-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: var(--mz-green);
}

.mz-discount-tag-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--mz-green);
}

.mz-discount-tag-name {
  font-size: 11px;
  color: var(--mz-text-3);
  margin-left: 2px;
  font-weight: 400;
}

.mz-stl-val.discount-val {
  color: var(--mz-green);
  font-weight: 700;
}

.mz-fee-info-icon {
  display: inline-flex;
  align-items: center;
  color: var(--mz-text-3);
  cursor: help;
  margin-left: 2px;
}

.mz-fee-info-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--mz-text-3);
}

.mz-summary-total-divider {
  height: 1px;
  background: var(--mz-border);
  margin: 16px 0;
}

.mz-summary-total-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mz-stm-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--mz-text-1);
}

.mz-stm-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 800;
  color: var(--mz-text-1);
}

.mz-summary-tax-note {
  font-size: 11.5px;
  color: var(--mz-text-3);
  margin-top: 6px;
  text-align: left;
}

/* Media Query for Step 5 responsive layout */
@media (max-width: 1024px) {
  .mz-payment-layout {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════
   STEP 4: PAYMENT DASHBOARD & PROMO CODES (Revamped)
   ═══════════════════════════════════════════════════ */
.mz-pay-dashboard {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Top Promo & Discount Row */
.mz-promo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Set by MZ.step4.renderCodeRows() when only one code cell is actually
   rendered (e.g. the school has display_discount_section off, so there's
   no second slot or "+" cell to pair it with) — the single input stretches
   to the row's full width instead of sitting in just the first column. */
.mz-promo-row.mz-promo-row--single {
  grid-template-columns: 1fr;
}

.mz-promo-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 8px 8px 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mz-promo-box:focus-within {
  border-color: #0e6b5e;
  box-shadow: 0 0 0 3px rgba(14, 107, 94, 0.12);
}

.mz-promo-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #111827;
  padding-right: 12px;
}

.mz-promo-input::placeholder {
  color: #9ca3af;
}

.mz-promo-btn {
  background: #0e6b5e;
  color: #ffffff;
  border: none;
  border-radius: 9px;
  padding: 10px 24px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.12s ease;
  flex-shrink: 0;
}

.mz-promo-btn:hover {
  background: #0b564b;
}

.mz-promo-btn:active {
  transform: scale(0.98);
}

.mz-discount-status {
  display: none;
  font-size: 13px;
  color: #0e6b5e;
  font-weight: 600;
  margin-top: -12px;
  padding: 8px 12px;
  background: #e6f7f3;
  border-radius: 8px;
}

.mz-discount-status.show {
  display: block;
}

/* One grid cell of the promo/discount row — the box itself (input +
   Apply/Remove button) plus its error text, if any, stacked together so
   the error never breaks the row's two-column grid layout. */
.mz-promo-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* A code that resolved and was applied — locked/read-only, tinted green
   to match the rest of the site's "success" state (e.g. applied admin
   docs, selected grade cards) */
.mz-promo-box.is-applied {
  border-color: #0e6b5e;
  background: #f0fdfa;
}

.mz-promo-box.is-applied .mz-promo-input {
  color: #0e6b5e;
  font-weight: 600;
}

.mz-promo-remove-btn {
  background: #ffffff;
  color: var(--mz-red);
  border: 1px solid #fca5a5;
}

.mz-promo-remove-btn:hover {
  background: #fef2f2;
}

.mz-promo-row-error {
  font-size: 12px;
  color: var(--mz-red);
  padding: 0 4px;
}

/* The "Add Code" cell that reveals a second code input — a dashed
   placeholder the same height as a .mz-promo-box so the two-column grid
   stays visually balanced with just one real input filled in. Icon+label
   styled the same as Step 3's "Add Grade" button (.mz-header-add-program-btn)
   rather than a bare "+" glyph. */
.mz-promo-add-btn {
  width: 100%;
  min-height: 48px;
  border: 1.5px dashed #c9d1cf;
  border-radius: 14px;
  background: #ffffff;
  color: var(--mz-green);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.mz-promo-add-btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--mz-green);
}

.mz-promo-add-btn:hover {
  border-color: #0e6b5e;
  background: #f0fdfa;
}

/* Invoice Cards List */
.mz-invoice-cards-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Single Invoice Card */
.mz-invoice-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Card Header */
.mz-invoice-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.mz-invoice-card-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mz-invoice-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  margin: 0;
}

.mz-invoice-card-student {
  font-size: 14px;
  color: #6b7280;
  font-weight: 400;
}

.mz-invoice-card-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* One "<label> / <value>" pair inside the header-right slot — there are
   two of these now (Current Amount, Pay In Full Amount) in place of the
   mockup's single "Before discount" value */
.mz-invoice-before-discount-pair {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.mz-before-discount-label {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}

.mz-before-discount-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  color: #6b7280;
  text-decoration: line-through;
  font-weight: 500;
}

/* Applied Discounts List */
.mz-invoice-discounts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mz-discount-item {
  background: #e6f7f3;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mz-discount-item-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mz-discount-item-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #0e6b5e;
}

.mz-discount-item-desc {
  font-size: 12px;
  color: #4b5563;
  font-weight: 400;
}

.mz-discount-scope-badge {
  display: inline-block;
  width: fit-content;
  font-size: 10.5px;
  font-weight: 600;
  color: #0e6b5e;
  background: #ffffff;
  border: 1px solid #b8e0d8;
  border-radius: 999px;
  padding: 2px 8px;
}

.mz-discount-item-right {
  flex-shrink: 0;
}

.mz-discount-saves {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #0e6b5e;
}

/* Summary Boxes (Current due & Pay in full) */
.mz-invoice-summary-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mz-summary-box {
  background: #f8fafc;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mz-summary-box-label {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.mz-summary-box-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.3px;
}

/* Action Buttons */
.mz-invoice-card-actions {
  display: flex;
  gap: 16px;
}

.mz-invoice-btn {
  position: relative;
  flex: 1;
  height: 48px;
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
}

/* The radio itself carries the pay_in_full[...] POST field (see
   buildInvoiceCardHtml/bindInvoicePaymentSwitch in
   assign_course_online_revamped.js) — kept clickable but visually
   invisible, covering the whole label so the existing button look is
   unchanged. */
.mz-invoice-tab-radio {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.mz-invoice-btn.active {
  background: #0e6b5e;
  color: #ffffff;
  border-color: #0e6b5e;
  box-shadow: 0 4px 12px rgba(14, 107, 94, 0.25);
}

.mz-invoice-btn:hover:not(.active) {
  border-color: #0e6b5e;
  color: #0e6b5e;
  background: #f0fdfa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .mz-promo-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .mz-invoice-card {
    padding: 20px;
  }

  .mz-invoice-card-header {
    flex-direction: column;
    gap: 12px;
  }

  .mz-invoice-card-header-right {
    align-items: flex-start;
  }

  .mz-invoice-before-discount-pair {
    align-items: flex-start;
  }

  .mz-discount-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .mz-invoice-summary-boxes {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mz-invoice-card-actions {
    flex-direction: column;
    gap: 10px;
  }

  .mz-invoice-btn {
    width: 100%;
  }
}
