#profile-form .jquery-validation-error,
#registrationForm .jquery-validation-error {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: #dc2626;
}

#registrationForm .registration-field-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.18) !important;
}

#profile-form .profile-field-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.18) !important;
}

#registrationForm input[type="checkbox"].registration-field-error,
#registrationForm input[type="radio"].registration-field-error {
  outline: 2px solid rgba(220, 38, 38, 0.65) !important;
  outline-offset: 2px;
}

#registrationForm .registration-field-error-message {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: #dc2626;
}

:root {
  /* ─── Surface ─────────────────────────────────────────────────────
   * Pure white canvas, white cards, NO color section variation.
   * DESIGN.md §1: "Clean white canvas — no gray backgrounds, no
   * color sections, depth through borders and whitespace alone."
   * `--surface-warm` resolves to a near-white `#fafafa` because
   * DESIGN.md §4 names "Logo/Trust Card" containers with `#fafafa`
   * as a surface tint distinct from the pure-white card surface;
   * components targeting `var(--surface-warm)` therefore reach the
   * documented Gray 50 instead of collapsing onto plain white. */
  --bg: #ffffff;                        /* Pure White — page background */
  --surface: #ffffff;                   /* White cards on white background */
  --surface-warm: #fafafa;              /* Gray 50 — trust-card / muted surface tint */

  /* ─── Foreground (4 levels) ───────────────────────────────────────
   * `#0d0d0d` instead of `#000000` — the micro-softness DESIGN.md §2
   * calls out as "improves reading comfort". Four independent text
   * tiers because Mintlify genuinely uses four (heading, body
   * description, caption, placeholder/disabled), so binding `--fg-2`
   * and `--meta` independently lets cross-brand components targeting
   * the richer tiers resolve to Mintlify's actual gray ramp. */
  --fg: #0d0d0d;                        /* Gray 900 — primary text, headings */
  --fg-2: #333333;                      /* Gray 700 — body description */
  --muted: #666666;                     /* Gray 500 — captions, tertiary text */
  --meta: #888888;                      /* Gray 400 — placeholder, disabled, code annotations */

  /* ─── Border (2 levels) ──────────────────────────────────────────
   * 5% opacity hairline is THE signature — DESIGN.md §1 names it as
   * the primary separation mechanism. `--border-soft` aliases to
   * `--border` because Mintlify's documented system has only one
   * "subtle" tier; the slightly stronger `rgba(0,0,0,0.08)` from
   * DESIGN.md §2 is reserved for INTERACTIVE element edges and is
   * inlined per-component (button outline, input border) rather than
   * promoted to a separator-level token. */
  --border: rgba(0, 0, 0, 0.05);        /* signature 5% hairline — section / card edge */
  --border-soft: var(--border);         /* alias — Mintlify has one subtle tier */

  /* ─── Accent ─────────────────────────────────────────────────────
   * Mint green — used SPARINGLY (DESIGN.md §1: "≤2 visible uses per
   * screen" enforced by the lint). CTAs, link hover, focus rings,
   * and the occasional brand-accent pill. Primary CTAs are NOT this
   * green — they are `--fg`. */
  --accent: #18E299;                    /* Brand Green — the signature mint */
  --accent-on: #0d0d0d;                 /* dark text on mint — bright accent fails WCAG against white */
  --accent-hover: #0fa76e;              /* Brand Green Deep — DESIGN.md §2 documented hover */
  --accent-active: color-mix(in oklab, var(--accent-hover), black 12%);
  --accent-light: #e6fcf4;              /* Lighter tint of signature mint */
  --accent-light-border: rgba(24, 226, 153, 0.35);

  /* ─── Semantic ───────────────────────────────────────────────────
   * Warn / Danger sourced from DESIGN.md §2's twoslash colour set
   * (the technical-doc context where these states most often appear
   * for Mintlify). `--success` keeps the cross-brand schema default
   * because using the brand mint (`--accent`) would overload it for
   * status work and break the "≤2 accent uses per screen" lint. */
  --success: #16a34a;
  --warn: #c37d0d;                      /* Warm Amber — DESIGN.md `--twoslash-warn-bg` */
  --danger: #d45656;                    /* Error Red  — DESIGN.md `--twoslash-error-bg` */

  /* ─── Typography ─────────────────────────────────────────────────
   * Inter for everything human-readable; Geist Mono ONLY for code,
   * tabular metrics, kbd, and uppercase technical labels (DESIGN.md
   * §3: "The boundary is strict — no mixing"). The `Inter Fallback`
   * / `Geist Mono Fallback` face names mirror the upstream Mintlify
   * stylesheet so platforms that ship metric-compatible fallback
   * fonts under those names can substitute without layout shift. */
  --font-display: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", "Geist Mono Fallback", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;

  /* Type scale — DESIGN.md §3. Display tops out at 64px; mono code
   * starts at 12px. The 18px tier (--text-lg) is the documented
   * "Body Large" for hero descriptions and section introductions. */
  --text-xs: 12px;                      /* Mono Code, micro labels */
  --text-sm: 14px;                      /* Caption, link, small body */
  --text-base: 16px;                    /* Body, button label */
  --text-lg: 18px;                      /* Body Large — hero descriptions */
  --text-xl: 20px;                      /* Card Title */
  --text-2xl: 24px;                     /* Sub-heading */
  --text-3xl: 40px;                     /* Section Heading */
  --text-4xl: 64px;                     /* Display Hero */

  /* `--leading-body` 1.5 — the documented 16px / 24px reading rhythm.
   * `--leading-tight` 1.15 matches the 64px display line-height.
   * `--tracking-display` -0.02em ≈ -1.28px at 64px (exact DESIGN.md
   * §3 hero spec) and scales proportionally with size. */
  --leading-body: 1.5;
  --leading-tight: 1.15;
  --tracking-display: -0.02em;

  /* ─── Spacing ────────────────────────────────────────────────────
   * 8px base grid (DESIGN.md §5). The 2/4/5/6/7/10 sub-tier
   * micro-padding values (button `4.5px 12px`, etc.) are inlined
   * per-component because they are too fine to belong in the
   * shared schema. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;

  /* Section rhythm — DESIGN.md §5: 48–96px chapter-break padding.
   * Desktop sits at the top of the documented range because the
   * marketing page itself must demonstrate documentation-grade
   * breathing room. */
  --section-y-desktop: 96px;
  --section-y-tablet: 64px;
  --section-y-phone: 48px;

  /* ─── Radius ─────────────────────────────────────────────────────
   * DESIGN.md §5 four-tier radius scale. The pill (9999px) is the
   * SIGNATURE shape — every button, every input, every badge.
   * Cards step from 16 (standard) to 24 (featured). 8 is reserved
   * for nav-button-style functional rectangles. */
  --radius-sm: 8px;                     /* nav buttons, transparent buttons */
  --radius-md: 16px;                    /* standard cards */
  --radius-lg: 24px;                    /* featured cards, hero containers */
  --radius-pill: 9999px;                /* SIGNATURE — buttons, inputs, badges */

  /* ─── Elevation ──────────────────────────────────────────────────
   * Shadow as atmospheric whisper. DESIGN.md §6: "Mintlify barely
   * uses shadows. The depth system is almost entirely border-
   * driven." `--elev-raised` is the documented card whisper at
   * 0.03 alpha — barely registering visually, intentional. */
  --elev-flat: none;
  --elev-ring: 0 0 0 1px var(--border);
  --elev-raised: 0 2px 4px rgba(0, 0, 0, 0.03);

  /* ─── Focus ring ─────────────────────────────────────────────────
   * Sharp 2px box-shadow at the brand mint. DESIGN.md §4 specifies
   * focused inputs use `1px solid var(--color-brand)` plus a
   * matching outline; the 2px shadow form keeps keyboard focus
   * unmistakable on the white canvas without the soft halo that
   * would dilute the engineered feel. */
  --focus-ring: 0 0 0 2px var(--accent);

  /* ─── Motion ─────────────────────────────────────────────────────
   * Standard durations + standard ease — Mintlify's voice is in
   * type, colour restraint, and whitespace, not in animation. */
  --motion-fast: 150ms;
  --motion-base: 200ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);

  /* ─── Layout ─────────────────────────────────────────────────────
   * 1200px max content width per DESIGN.md §5. Horizontal gutters
   * climb from 24px on phone/tablet to 32px on desktop — the
   * documented "24px (mobile) to 32px (desktop)" container padding. */
  --container-max: 1200px;
  --container-gutter-desktop: 32px;
  --container-gutter-tablet: 24px;
  --container-gutter-phone: 24px;
}

/* Base resets & typography */
html, body {
  font-family: var(--font-body);
  color: var(--fg);
  background-color: var(--bg);
  line-height: var(--leading-body);
  margin: 0 !important;
  padding: 0 !important;
  -webkit-font-smoothing: antialiased;
  scrollbar-gutter: stable;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--fg);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
}

/* Helper utility classes */
.app-container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-gutter-phone);
  padding-right: var(--container-gutter-phone);
}
@media (min-width: 768px) {
  .app-container {
    padding-left: var(--container-gutter-tablet);
    padding-right: var(--container-gutter-tablet);
  }
}
@media (min-width: 1024px) {
  .app-container {
    padding-left: var(--container-gutter-desktop);
    padding-right: var(--container-gutter-desktop);
  }
}

/* Card surfaces */
.app-card {
  background-color: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--elev-ring);
  transition: box-shadow var(--motion-base) var(--ease-standard);
}
.app-card-featured {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-raised);
}
.app-card-warm {
  background-color: var(--surface-warm);
  border-radius: var(--radius-md);
}

/* Buttons - Pill signature */
.btn-primary {
  background-color: var(--accent) !important;
  color: var(--accent-on) !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 600 !important;
  font-size: var(--text-sm) !important;
  padding: 10px 24px !important;
  border: 1px solid var(--accent) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--motion-fast) var(--ease-standard);
  text-decoration: none !important;
}
.btn-primary:hover {
  background-color: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
  box-shadow: 0 2px 8px rgba(24, 226, 153, 0.25);
}
.btn-primary:active {
  background-color: var(--accent-active) !important;
  border-color: var(--accent-active) !important;
  transform: scale(0.98);
}

/* Brand Accent Button (Mint Green Pill) */
.btn-accent {
  background-color: var(--accent) !important;
  color: var(--accent-on) !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 600 !important;
  font-size: var(--text-sm) !important;
  padding: 10px 24px !important;
  border: 1px solid var(--accent) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--motion-fast) var(--ease-standard);
  text-decoration: none !important;
}
.btn-accent:hover {
  background-color: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
}

/* Shared Save & Proceed styling for buttons and navigation links. */
.btn-save-proceed {
  line-height: 1.5;
  white-space: nowrap;
}
.btn-save-proceed.hidden {
  display: none;
}
.btn-save-proceed:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background-color: #ffffff !important;
  color: var(--fg) !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 600 !important;
  font-size: var(--text-sm) !important;
  padding: 10px 24px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--motion-fast) var(--ease-standard);
  text-decoration: none !important;
}
.btn-secondary:hover {
  background-color: var(--surface-warm) !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}

.btn-danger {
  background-color: var(--danger) !important;
  color: #ffffff !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 600 !important;
  font-size: var(--text-sm) !important;
  padding: 10px 24px !important;
  border: 1px solid var(--danger) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

/* Pill Badges & Chips */
.badge-pill {
  border-radius: var(--radius-pill);
  padding: 3px 10px !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: #0d0d0d !important;
  background-color: var(--accent-light) !important;
  border: 1px solid var(--accent-light-border) !important;
}
.badge-pill-black {
  background-color: var(--accent-light) !important;
  color: #0d0d0d !important;
  border: 1px solid var(--accent-light-border) !important;
}
.badge-pill-accent {
  background-color: var(--accent-light) !important;
  color: #0d0d0d !important;
  border: 1px solid var(--accent-light-border) !important;
}
.badge-pill-warm {
  background-color: var(--accent-light) !important;
  color: #0d0d0d !important;
  border: 1px solid var(--accent-light-border) !important;
}
.badge-pill-success {
  background-color: #dcfce7 !important;
  color: var(--success) !important;
  border: 1px solid rgba(22, 163, 74, 0.25) !important;
}
.badge-pill-danger {
  background-color: #fee2e2 !important;
  color: var(--danger) !important;
  border: 1px solid rgba(220, 38, 38, 0.25) !important;
}

/* Form Controls - Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="date"],
select,
textarea {
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: var(--radius-pill) !important;
  font-size: var(--text-sm) !important;
  color: var(--fg) !important;
  background-color: #ffffff !important;
  padding: 8px 16px !important;
  transition: border-color var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard);
}
textarea {
  border-radius: var(--radius-md) !important;
}
input:focus,
select:focus,
textarea:focus {
  outline: none !important;
  border-color: var(--accent) !important;
  box-shadow: var(--focus-ring) !important;
}

/* Readonly & Disabled Form Controls */
.input-disabled,
.input-readonly,
.form-control-disabled,
.form-control-readonly,
input:disabled,
select:disabled,
textarea:disabled,
input[readonly]:not(.flatpickr-input),
select[readonly],
textarea[readonly],
.flatpickr-input:disabled,
.flatpickr-input[disabled] {
  background-color: #f8f8f8 !important;
  color: #666666 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  -webkit-text-fill-color: #666666;
  opacity: 1;
}

input:disabled:focus,
select:disabled:focus,
textarea:disabled:focus,
input[readonly]:not(.flatpickr-input):focus,
select[readonly]:focus,
textarea[readonly]:focus,
.input-disabled:focus,
.input-readonly:focus,
.form-control-disabled:focus,
.form-control-readonly:focus,
.flatpickr-input:disabled:focus,
.flatpickr-input[disabled]:focus {
  outline: none !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: none !important;
}

/* Legacy utility overrides */
.Poppins { font-family: var(--font-body) !important; }
.Nunito { font-family: var(--font-body) !important; }
.calibri { font-family: var(--font-body) !important; }
.TimesNR { font-family: var(--font-display) !important; }

.text-justify { text-align: justify !important; }

.scroll-style::-webkit-scrollbar { width: 5px !important; height: 5px !important; }
.scroll-style::-webkit-scrollbar-track { background: var(--surface-warm) !important; }
.scroll-style::-webkit-scrollbar-thumb { background-color: var(--muted) !important; border-radius: 20px !important; }

.fs-08 { font-size: 0.5rem !important; }
.fs-10 { font-size: 0.625rem !important; }
.fs-12 { font-size: var(--text-xs) !important; }
.fs-14 { font-size: var(--text-sm) !important; }
.fs-16 { font-size: var(--text-base) !important; }
.fs-18 { font-size: var(--text-lg) !important; }
.fs-20 { font-size: 1.25rem !important; }
.fs-22 { font-size: 1.375rem !important; }
.fs-24 { font-size: var(--text-xl) !important; }
.fs-26 { font-size: 1.625rem !important; }
.fs-28 { font-size: 1.75rem !important; }
.fs-30 { font-size: 1.875rem !important; }
.fs-32 { font-size: var(--text-2xl) !important; }
.fs-34 { font-size: 2.125rem !important; }

.fw-200 { font-weight: 200 !important; }
.fw-300 { font-weight: 300 !important; }
.fw-400 { font-weight: 400 !important; }
.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }
.fw-900 { font-weight: 900 !important; }

/* Text colors */
.text-muted { color: var(--muted) !important; }
.text-meta { color: var(--meta) !important; }

/* Animations */
@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

.blinking-text {
  animation: blink 1s infinite;
}

@keyframes backgroundBlink {
  0% { background-color: var(--warn); }
  50% { background-color: #facc15; }
  100% { background-color: var(--warn); }
}

.blinking-background {
  animation: backgroundBlink 1s infinite;
}

@keyframes backgroundBlinkRed {
  0% { background-color: var(--danger); }
  50% { background-color: #b91c1c; }
  100% { background-color: #991b1b; }
}

.blinking-backgroundRed {
  animation: backgroundBlinkRed 1s infinite;
}

/* ─── SweetAlert2 High-Contrast Styling ───────────────────────────── */
.swal2-container {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 1060 !important;
  background: rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(4px) !important;
}

.swal2-popup {
  border-radius: var(--radius-lg) !important;
  font-family: var(--font-body) !important;
  padding: 24px 28px !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
  background: #ffffff !important;
  color: var(--fg) !important;
  margin: auto !important;
}

/* Compact icon — centered without breaking checkmark/cross marks */
.swal2-icon {
  margin: 0 auto 12px auto !important;
}

.swal2-title {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  color: var(--fg) !important;
  font-size: 18px !important;
  padding: 0 !important;
  margin: 0 0 4px 0 !important;
}

.swal2-html-container {
  font-family: var(--font-body) !important;
  color: var(--muted) !important;
  font-size: var(--text-sm) !important;
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
}

.swal2-actions {
  gap: 10px !important;
  margin-top: 12px !important;
  padding: 0 !important;
}

.swal2-styled.swal2-confirm {
  background-color: var(--accent) !important;
  color: var(--accent-on) !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 600 !important;
  font-size: var(--text-sm) !important;
  padding: 10px 24px !important;
  border: 1px solid var(--accent) !important;
  box-shadow: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all var(--motion-fast) var(--ease-standard) !important;
}
.swal2-styled.swal2-confirm:hover {
  background-color: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
  box-shadow: 0 2px 8px rgba(24, 226, 153, 0.25) !important;
}

.swal2-styled.swal2-cancel {
  background-color: #ffffff !important;
  color: var(--fg) !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 600 !important;
  font-size: var(--text-sm) !important;
  padding: 10px 24px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all var(--motion-fast) var(--ease-standard) !important;
}
.swal2-styled.swal2-cancel:hover {
  background-color: var(--surface-warm) !important;
  color: var(--fg) !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}

.swal2-styled.swal2-deny {
  background-color: var(--danger) !important;
  color: #ffffff !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 600 !important;
  font-size: var(--text-sm) !important;
  padding: 10px 24px !important;
  border: 1px solid var(--danger) !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

/* ─── Flatpickr Design Token Overrides ───────────────────────────── */
/* Calendar container */
.flatpickr-calendar {
  font-family: var(--font-body) !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--border-soft) !important;
  box-shadow: var(--elev-raised) !important;
  background: #ffffff !important;
  padding: 8px !important;
}

/* Month/year header */
.flatpickr-months {
  padding: 0 0 4px 0 !important;
  align-items: center !important;
}
.flatpickr-month {
  background: #ffffff !important;
  color: var(--fg) !important;
  fill: var(--fg) !important;
  height: 32px !important;
}
.flatpickr-current-month {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--fg) !important;
  padding-top: 4px !important;
}
.flatpickr-current-month select,
.flatpickr-current-month input.cur-year {
  color: var(--fg) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 2px !important;
}
.flatpickr-prev-month,
.flatpickr-next-month {
  fill: var(--fg) !important;
  color: var(--fg) !important;
  padding: 4px 8px !important;
}
.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg {
  fill: var(--fg) !important;
}

/* Weekday header row */
.flatpickr-weekdays {
  background: #ffffff !important;
  width: 100% !important;
}
.flatpickr-weekday {
  color: var(--muted) !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  background: #ffffff !important;
  flex: 1 0 14.285714% !important;
  width: 14.285714% !important;
}

/* Keep the date cells on the same seven-column grid as the weekday labels. */
.flatpickr-days,
.flatpickr-days .dayContainer {
  width: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
}

/* Day cells */
.flatpickr-day {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--fg) !important;
  border-radius: 6px !important;
  border: none !important;
  height: 32px !important;
  line-height: 32px !important;
  flex: 0 0 14.285714% !important;
  width: 14.285714% !important;
  max-width: 14.285714% !important;
}
.flatpickr-day:hover,
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover {
  background: var(--surface-warm) !important;
  border-color: transparent !important;
  color: var(--fg) !important;
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--accent-on) !important;
  font-weight: 700 !important;
}
.flatpickr-day.today {
  border-color: var(--accent) !important;
  font-weight: 700 !important;
}
.flatpickr-day.today:hover {
  background: var(--surface-warm) !important;
  color: var(--fg) !important;
}
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: var(--meta) !important;
}

/* Input field — already styled by base rules, just ensure flatpickr doesn't fight it */
.flatpickr-input {
  cursor: pointer !important;
}
.flatpickr-input[readonly]:not(:disabled):not([disabled]) {
  cursor: pointer !important;
  background: #ffffff !important;
  color: var(--fg) !important;
}

/* Keep this state override after all form and Flatpickr rules. */
input[readonly],
select[readonly],
textarea[readonly],
input:disabled,
select:disabled,
textarea:disabled,
.input-readonly,
.input-disabled,
.form-control-readonly,
.form-control-disabled,
[aria-disabled="true"] {
  background-color: #f8f8f8 !important;
  color: #666666 !important;
  -webkit-text-fill-color: #666666 !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
}

/* Preserve the explicit disabled-looking utility against the generic white form-control rule. */
input.bg-\[\#f8f8f8\],
select.bg-\[\#f8f8f8\],
textarea.bg-\[\#f8f8f8\] {
  background-color: #f8f8f8 !important;
}

/* Exam centre preference limit states */
.add-centre-btn:disabled {
  background-color: #f8f8f8 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #666666 !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
  box-shadow: none !important;
}

.add-centre-btn-one:disabled {
  background-color: #f8f8f8 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #666666 !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
  box-shadow: none !important;
}

.preference-limit-note {
  background-color: #fefce8 !important;
  border-color: #fde68a !important;
  color: #ca8a04 !important;
}

/* Full-page document upload lock */
body.document-uploading {
  overflow: hidden !important;
}

.document-upload-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.45);
  cursor: wait;
}

.document-upload-loader[hidden] {
  display: none !important;
}

.document-upload-loader__content {
  display: flex;
  min-width: min(22rem, 100%);
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem;
  border-radius: 1rem;
  background-color: #ffffff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.document-upload-loader__spinner {
  width: 2.75rem;
  height: 2.75rem;
  border: 4px solid #d1fae5;
  border-top-color: #18e299;
  border-radius: 50%;
  animation: document-upload-spin 0.8s linear infinite;
}

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

