/* ==========================================================================
   SEIU Local 1000 — theme-new3.css
   Standalone stylesheet. Replaces Bootstrap 5 for the -new3 page set.
   Tokens and components ported from the Vue build (theme.css + SFC scoped
   styles) so the PHP pages match the Vue pages pixel for pixel.

   Load order in header-new3.php:
     Google Fonts -> this file -> jQuery -> jquery-validate -> shared JS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  --seiu-purple: #6B4C9A;
  --seiu-purple-dark: #553B7D;
  --seiu-purple-deeper: #3E2B5C;
  --seiu-purple-light: #8B6BB0;
  --seiu-purple-muted: #9E8BB8;
  --seiu-purple-pale: #F0EAF5;
  --seiu-purple-ghost: #F7F3FA;

  --bg-cream: #F5F0EB;
  --bg-cream-dark: #EDE8E3;
  --bg-cream-light: #FAF8F5;

  --white: #fff;
  --gray-100: #F3F1EE;
  --gray-200: #E5E2DD;
  --gray-300: #D1CEC8;
  --gray-400: #9C9A95;
  --gray-500: #6B6964;
  --gray-600: #4B4944;
  --gray-700: #37352F;
  --gray-800: #1F1E1A;

  --success: #2E8B57;
  --success-light: #D4EDDA;
  --error: #C0392B;
  --error-light: #F5D5D0;
  --warning: #D4A017;
  --warning-light: #FFF3CD;

  /* Field-level error red, matched to the Vue SFCs */
  --field-error: #d63939;
  --sig-valid: #2a9d5c;
}

/* --------------------------------------------------------------------------
   2. RESET + BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-cream);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; border: 0; }
a { color: var(--seiu-purple); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font-family: inherit; font-size: 100%; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; font-weight: 700; }
p { margin: 0; }
hr { border: 0; border-top: 1px solid var(--gray-200); margin: 1.75rem 0; }
strong { font-weight: 700; }
sup { font-size: .7em; vertical-align: super; line-height: 0; }

/* Keyboard focus stays visible everywhere. */
:focus-visible { outline: 3px solid var(--seiu-purple-light); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. HEADER
   -------------------------------------------------------------------------- */
.header {
  background: var(--seiu-purple);
  color: var(--white);
  padding: 0 2rem;
  height: 80px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(107, 76, 154, .25);
  flex: 0 0 auto;
}
.header-content {
  max-width: 960px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo-area { display: flex; align-items: center; gap: .875rem; min-width: 0; }
.logo-img { height: 52px; width: auto; display: block; }
.header-divider { width: 1px; height: 28px; background: rgba(255, 255, 255, .35); flex: 0 0 auto; }
.header-title { font-size: 1rem; font-weight: 600; letter-spacing: .02em; }
.header-nav { display: flex; gap: .25rem; flex: 0 0 auto; }
.header-nav a {
  color: var(--white); text-decoration: none;
  font-size: .85rem; font-weight: 600;
  padding: .4rem .9rem; border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, .6);
  transition: background .2s, border-color .2s;
  white-space: nowrap;
}
.header-nav a:hover { background: rgba(255, 255, 255, .2); border-color: var(--white); text-decoration: none; }

/* --------------------------------------------------------------------------
   4. PAGE SHELL
   -------------------------------------------------------------------------- */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  width: 100%;
  flex: 1 0 auto;
}
.container.wide { max-width: 960px; }

.page-hero { text-align: center; padding: 2.5rem 0 1.5rem; }
.page-hero h1 { font-size: 1.75rem; font-weight: 800; color: var(--seiu-purple); margin-bottom: .4rem; }
.page-hero h1.hero-success { color: var(--success); }
.page-hero p { color: var(--gray-500); font-size: 1.05rem; }

/* .hero-title / .hero-sub hold HTML authored in the database, so they are
   plain divs rather than h1/p — a block-level tag in that HTML would nest
   illegally inside a heading. Headings inside them inherit the hero styling
   so the record's choice of tag can't change the size. */
.page-hero .hero-title { font-size: 1.75rem; font-weight: 800; color: var(--seiu-purple); margin-bottom: .4rem; line-height: 1.25; }
.page-hero .hero-sub { color: var(--gray-500); font-size: 1.05rem; }
.page-hero .hero-title h1, .page-hero .hero-title h2, .page-hero .hero-title h3,
.page-hero .hero-title h4, .page-hero .hero-title h5, .page-hero .hero-title h6 {
  font-size: inherit; font-weight: inherit; color: inherit; margin: 0; line-height: inherit;
}
.page-hero .hero-sub h1, .page-hero .hero-sub h2, .page-hero .hero-sub h3,
.page-hero .hero-sub h4, .page-hero .hero-sub h5, .page-hero .hero-sub h6 {
  font-size: inherit; font-weight: 600; color: inherit; margin: 0;
}
.page-hero .hero-title p, .page-hero .hero-sub p { margin: 0; font-size: inherit; color: inherit; }
.page-hero .hero-title p + p, .page-hero .hero-sub p + p { margin-top: .3rem; }

.screen-enter { animation: fade .35s ease both; }
@keyframes fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* --------------------------------------------------------------------------
   5. CARDS + SECTIONS
   -------------------------------------------------------------------------- */
.card {
  background: var(--white); border-radius: 12px; padding: 2rem;
  margin-bottom: 1.25rem; box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}
.section-card {
  background: var(--white); border-radius: 12px; padding: 2rem;
  margin-bottom: 1.25rem; box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
  transition: box-shadow .2s;
}
.section-card:hover { box-shadow: 0 4px 16px rgba(107, 76, 154, .1); }

.section-header { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.section-number {
  background: var(--seiu-purple); color: var(--white);
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem; flex-shrink: 0;
}
.section-title { font-size: 1.15rem; font-weight: 700; color: var(--gray-800); margin: 0; }
.section-desc { font-size: .88rem; color: var(--gray-500); margin-bottom: .75rem; line-height: 1.5; }
.section-rule { border: 0; border-top: 1px solid var(--gray-200); margin: 1.75rem 0 1.5rem; }

/* --------------------------------------------------------------------------
   6. FORM LAYOUT
   -------------------------------------------------------------------------- */
.form-row { display: flex; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.form-group { display: flex; flex-direction: column; }
.form-group.full { flex: 1 1 100%; }
.form-group.half { flex: 1 1 calc(50% - .5rem); min-width: 160px; }
.form-group.third { flex: 1 1 calc(33.333% - .667rem); min-width: 140px; }
.form-group.quarter { flex: 1 1 calc(25% - .75rem); min-width: 100px; }
.form-group.three-quarters { flex: 1 1 calc(75% - .25rem); min-width: 200px; }

.form-label { font-size: .85rem; font-weight: 600; color: var(--gray-700); margin-bottom: .35rem; }
.required { color: var(--field-error); }
.form-hint { font-size: .8rem; color: var(--gray-500); margin: 0 0 .5rem; }
.form-note { font-size: .78rem; color: var(--gray-400); margin-top: .25rem; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-family: inherit; font-size: .95rem;
  color: var(--gray-800); background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--seiu-purple);
  box-shadow: 0 0 0 3px rgba(107, 76, 154, .12);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--gray-400); }
.form-input[readonly] { background: var(--bg-cream); color: var(--gray-600); cursor: default; }
.form-input.text-uppercase { text-transform: uppercase; }

.form-select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B4C9A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-select:disabled { opacity: .6; cursor: not-allowed; }

/* Error state — set by jquery-validate through the shared defaults. */
.input-error, .form-input.is-invalid, .form-select.is-invalid {
  border-color: var(--field-error) !important;
}
.field-error { font-size: .78rem; color: var(--field-error); margin-top: .25rem; display: block; }

/* --------------------------------------------------------------------------
   7. RADIO CARDS
   Native input stays in the DOM (posts + validates); the card is the UI.
   .sel is applied by :has() and mirrored by JS for older browsers.
   -------------------------------------------------------------------------- */
.radio-list { display: flex; flex-direction: column; gap: .5rem; }
.radio-group { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .35rem; }

.radio-opt {
  display: flex; align-items: center; gap: .75rem;
  cursor: pointer; padding: .85rem 1rem;
  border: 1.5px solid var(--gray-200); border-radius: 10px;
  background: var(--white);
  transition: border-color .2s, background .2s;
  position: relative;
}
.radio-group .radio-opt { padding: .6rem 1.25rem; border-radius: 8px; }
.radio-opt:hover { border-color: var(--seiu-purple-muted); background: var(--seiu-purple-ghost); }
.radio-opt input[type="radio"] {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0;
}
.radio-opt:has(input[type="radio"]:checked),
.radio-opt.sel { border-color: var(--seiu-purple); background: var(--seiu-purple-pale); }
.radio-opt:has(input[type="radio"]:focus-visible) {
  outline: 3px solid var(--seiu-purple-light); outline-offset: 2px;
}

.radio-dot {
  width: 20px; height: 20px; min-width: 20px;
  border: 2px solid var(--gray-300); border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s; flex-shrink: 0;
}
.radio-opt:has(input[type="radio"]:checked) .radio-dot,
.radio-opt.sel .radio-dot { border-color: var(--seiu-purple); }
.radio-opt:has(input[type="radio"]:checked) .radio-dot::after,
.radio-opt.sel .radio-dot::after {
  content: ''; width: 10px; height: 10px; border-radius: 50%;
  background: var(--seiu-purple);
}
.radio-label { font-size: .92rem; color: var(--gray-700); }
.radio-opt:has(input[type="radio"]:checked) .radio-label,
.radio-opt.sel .radio-label { color: var(--seiu-purple); font-weight: 600; }

/* --------------------------------------------------------------------------
   8. CHECKBOX CARDS
   -------------------------------------------------------------------------- */
.checkbox-group {
  display: flex; align-items: flex-start; gap: .75rem; cursor: pointer;
  padding: .85rem 1rem; border: 1.5px solid var(--gray-200); border-radius: 10px;
  background: var(--white); transition: border-color .2s, background .2s;
  margin-bottom: .5rem; position: relative;
}
.checkbox-group:hover { border-color: var(--seiu-purple-muted); background: var(--seiu-purple-ghost); }
.checkbox-group input[type="checkbox"] {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0;
}
.checkbox-group:has(input[type="checkbox"]:checked),
.checkbox-group.checked { border-color: var(--seiu-purple); background: var(--seiu-purple-pale); }
.checkbox-group:has(input[type="checkbox"]:focus-visible) {
  outline: 3px solid var(--seiu-purple-light); outline-offset: 2px;
}

.custom-checkbox {
  width: 22px; height: 22px; min-width: 22px;
  border: 2px solid var(--gray-300); border-radius: 5px;
  background: var(--white); transition: background .2s, border-color .2s;
  margin-top: 1px; position: relative; flex-shrink: 0;
}
.checkbox-group:has(input[type="checkbox"]:checked) .custom-checkbox,
.checkbox-group.checked .custom-checkbox { background: var(--seiu-purple); border-color: var(--seiu-purple); }
.checkbox-group:has(input[type="checkbox"]:checked) .custom-checkbox::after,
.checkbox-group.checked .custom-checkbox::after {
  content: ''; position: absolute; top: 2px; left: 6px;
  width: 5px; height: 10px;
  border: 2px solid var(--white); border-top: none; border-left: none;
  transform: rotate(45deg);
}
.checkbox-label { font-size: .9rem; color: var(--gray-700); line-height: 1.5; }
.checkbox-label small { display: block; margin-top: .35rem; font-size: .8rem; color: var(--gray-500); line-height: 1.5; }

/* --------------------------------------------------------------------------
   9. SIGNATURE
   -------------------------------------------------------------------------- */
.signature-input-wrapper {
  display: flex; align-items: center;
  border: 2px solid var(--gray-200); border-radius: 10px;
  padding: 0 1rem; background: var(--bg-cream-light);
  transition: border-color .2s, box-shadow .2s;
}
.signature-input-wrapper:focus-within { border-color: var(--seiu-purple); box-shadow: 0 0 0 3px rgba(107, 76, 154, .12); }
.signature-input-wrapper.valid { border-color: var(--sig-valid); }
.signature-input-wrapper.invalid { border-color: var(--field-error); }
.signature-x { font-size: 1.5rem; color: var(--gray-400); margin-right: .75rem; user-select: none; line-height: 1; }
.signature-input {
  flex: 1; border: none; background: transparent;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.25rem; font-style: italic;
  padding: .85rem 0; color: var(--gray-800); outline: none;
  text-transform: uppercase;
}
.signature-input::placeholder { color: var(--gray-400); font-style: italic; }
.signature-hint { font-size: .8rem; margin-top: .3rem; min-height: 1.2em; color: var(--gray-500); }
.sig-status { font-weight: 600; font-size: .78rem; }
.sig-status.valid { color: var(--sig-valid); }
.sig-status.invalid { color: var(--field-error); }

/* --------------------------------------------------------------------------
   10. BUTTONS
   -------------------------------------------------------------------------- */
.btn-submit {
  background: var(--seiu-purple); color: var(--white); border: none;
  padding: 1rem 3rem; border-radius: 10px;
  font-family: inherit; font-size: 1.05rem; font-weight: 700;
  cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s;
  letter-spacing: .02em;
}
.btn-submit:hover:not(:disabled) {
  background: var(--seiu-purple-dark); transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(107, 76, 154, .3);
}
.btn-submit:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-secondary {
  background: transparent; color: var(--seiu-purple);
  border: 1.5px solid var(--seiu-purple);
  padding: .8rem 1.5rem; border-radius: 10px;
  font-family: inherit; font-weight: 700; font-size: .95rem;
  cursor: pointer; transition: background .2s; text-decoration: none;
  display: inline-block;
}
.btn-secondary:hover { background: var(--seiu-purple-pale); text-decoration: none; }

.btn-provisional {
  margin-top: .75rem; background: var(--seiu-purple); color: var(--white);
  border: none; padding: .6rem 1.25rem; border-radius: 8px;
  font-family: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  display: inline-block; text-decoration: none;
}
.btn-provisional:hover { background: var(--seiu-purple-dark); text-decoration: none; }

.skip-link {
  font-size: .9rem; color: var(--gray-500); text-decoration: underline;
  cursor: pointer; transition: color .2s;
}
.skip-link:hover { color: var(--gray-700); }

.submit-section {
  text-align: center; margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}
.submit-section.stacked { display: flex; flex-direction: column; align-items: center; gap: 1rem; }

/* --------------------------------------------------------------------------
   11. BANNERS + ALERTS
   -------------------------------------------------------------------------- */
.error-banner {
  background: var(--error-light); border: 1.5px solid #E0A89F; color: var(--error);
  border-radius: 10px; padding: .85rem 1.25rem;
  font-size: .9rem; font-weight: 600; margin-bottom: 1rem;
}
.info-banner {
  background: var(--warning-light); border: 1.5px solid #E8D9A0;
  border-radius: 10px; padding: 1.25rem 1.5rem; margin-bottom: 1.25rem;
}
.info-banner h3 { color: #8a6d10; font-size: 1.05rem; margin-bottom: .4rem; }
.info-banner p { font-size: .9rem; color: var(--gray-600); }

.pending-banner {
  background: #FFF8E7; border: 1.5px solid #F5C842;
  border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 1rem;
}
.pending-banner h4 { color: #7A5C00; font-size: .95rem; font-weight: 700; margin-bottom: .4rem; }
.pending-banner p { color: #5A4400; font-size: .88rem; margin: 0 0 .5rem; line-height: 1.5; }
.pending-banner p:last-of-type { margin-bottom: 0; }
.pending-banner a { color: #7A5C00; text-decoration: underline; font-weight: 600; }

.alert { padding: .9rem 1.25rem; border-radius: 10px; margin-bottom: 1rem; font-size: .9rem; }
.alert-error { background: #FEF2F2; border: 1.5px solid #FECACA; color: #991B1B; }

.disclaimer {
  background: var(--seiu-purple-pale); border-radius: 10px;
  padding: 1rem 1.5rem; margin-top: 1.5rem;
  font-size: .82rem; color: var(--gray-500); font-style: italic; line-height: 1.6;
}
.loading-state { text-align: center; padding: 2rem; color: var(--gray-500); }

/* --------------------------------------------------------------------------
   12. LEGAL + DISPLAY BLOCKS
   -------------------------------------------------------------------------- */
.legal-text {
  font-size: .88rem; color: var(--gray-600); line-height: 1.6;
  background: var(--bg-cream); border-radius: 8px; padding: 1rem 1.25rem;
}
.legal-text p { margin: 0; }
.legal-text p + p { margin-top: .75rem; }
.legal-note { margin-top: .75rem; font-size: .85rem; }
.tax-notice { font-size: .82rem; color: var(--gray-500); margin: .75rem 0 0; font-style: italic; }

.worksite-display {
  background: var(--bg-cream); border-radius: 8px;
  padding: .85rem 1rem; font-size: .95rem; line-height: 1.7;
  color: var(--gray-800); margin-bottom: .5rem;
}

/* Markup returned by a stored procedure, rendered inside a card.
   The SP emits <p><br><p> for spacing, so we neutralise the stray break
   and set our own rhythm. */
.sp-content { font-size: .95rem; color: var(--gray-700); line-height: 1.6; text-align: center; }
.sp-content p { margin: 0; }
.sp-content p + p { margin-top: 1rem; }
.sp-content br { display: none; }
.sp-content a.btn-provisional { margin-top: .25rem; padding: .85rem 2rem; font-size: .95rem; font-weight: 700; }

.lockout-splash { text-align: center; padding: 2rem 1rem; }
.lockout-icon { font-size: 3rem; margin-bottom: 1rem; line-height: 1; }
.lockout-splash h3 { color: var(--seiu-purple); font-size: 1.3rem; font-weight: 700; margin-bottom: .75rem; }
.lockout-splash p { color: var(--gray-600); font-size: .95rem; line-height: 1.6; margin-bottom: .5rem; }

/* Ballot */
.ballot-question {
  font-size: 1.05rem; color: var(--gray-700); line-height: 1.6;
  margin-bottom: 1.25rem;
}
.ballot-rule {
  text-align: center; font-size: .82rem; color: var(--gray-500);
  font-style: italic; margin-top: 1.25rem;
}

/* --------------------------------------------------------------------------
   13. CONFIRMATION
   -------------------------------------------------------------------------- */
.confirm-wrapper { max-width: 580px; margin: 2rem auto; text-align: center; padding: 0 1rem 3rem; }
.confirm-icon-ring {
  width: 88px; height: 88px; border-radius: 50%;
  background: rgba(107, 76, 154, .1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  animation: pop-in .4s cubic-bezier(.175, .885, .32, 1.275) both;
}
.confirm-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--seiu-purple); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; font-weight: 700; line-height: 1;
}
@keyframes pop-in {
  from { transform: scale(.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.confirm-heading { font-size: 1.9rem; font-weight: 800; color: var(--seiu-purple); margin-bottom: .5rem; line-height: 1.2; }
.confirm-subheading { font-size: 1.05rem; color: var(--gray-500); margin-bottom: 0; line-height: 1.5; }
.confirm-divider { width: 48px; height: 3px; background: var(--seiu-purple); border-radius: 2px; margin: 1.75rem auto; opacity: .4; }
.confirm-details {
  background: var(--white); border-radius: 14px; padding: 1.5rem 1.75rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .07); text-align: left; margin-bottom: 2rem;
}
.confirm-detail-row {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: .9rem 0; border-bottom: 1px solid var(--gray-100);
}
.confirm-detail-row:last-child { border-bottom: none; }
.confirm-detail-icon { font-size: 1.3rem; line-height: 1; flex-shrink: 0; margin-top: .1rem; width: 28px; text-align: center; }
.confirm-detail-row strong { display: block; font-size: .9rem; font-weight: 700; color: var(--gray-800); margin-bottom: .2rem; }
.confirm-detail-row p { font-size: .88rem; color: var(--gray-500); margin: 0; line-height: 1.5; }
.confirm-detail-row a { color: var(--seiu-purple); font-weight: 600; }
.confirm-return-btn {
  display: inline-block; background: var(--seiu-purple); color: var(--white);
  text-decoration: none; padding: .85rem 2.5rem; border-radius: 10px;
  font-weight: 700; font-size: .95rem;
  transition: background .2s, transform .2s, box-shadow .2s; letter-spacing: .02em;
  border: none; cursor: pointer; font-family: inherit;
}
.confirm-return-btn:hover {
  background: var(--seiu-purple-dark); transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(107, 76, 154, .3); text-decoration: none;
}

/* --------------------------------------------------------------------------
   14. MODAL (replaces native confirm() on the ballot)
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(31, 30, 26, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  animation: fade .2s ease both;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  background: var(--white); border-radius: 14px;
  padding: 2rem; max-width: 460px; width: 100%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
  text-align: center;
  animation: pop-in .25s cubic-bezier(.175, .885, .32, 1.275) both;
}
.modal-title { font-size: 1.25rem; font-weight: 800; color: var(--seiu-purple); margin-bottom: .6rem; }
.modal-body { font-size: .95rem; color: var(--gray-600); line-height: 1.6; margin-bottom: 1.5rem; }
.modal-choice {
  display: inline-block; font-weight: 800; font-size: 1.1rem;
  color: var(--seiu-purple); background: var(--seiu-purple-pale);
  padding: .3rem 1rem; border-radius: 8px; margin: .5rem 0;
  letter-spacing: .04em;
}
.modal-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.modal-actions .btn-submit { padding: .8rem 2rem; font-size: 1rem; }
body.modal-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--seiu-purple-deeper); color: var(--white);
  padding: 1.5rem 2rem; margin-top: auto; flex: 0 0 auto;
}
.site-footer-content {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.site-footer p { font-size: .85rem; color: rgba(255, 255, 255, .8); }
.footer-links { display: flex; align-items: center; gap: 1.25rem; list-style: none; }
.footer-links a { color: var(--white); display: flex; align-items: center; opacity: .85; transition: opacity .2s; font-size: .85rem; }
.footer-links a:hover { opacity: 1; text-decoration: none; }
.footer-links svg { width: 20px; height: 20px; fill: currentColor; }

/* --------------------------------------------------------------------------
   16. UTILITIES
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-end { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* --------------------------------------------------------------------------
   17. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .header { padding: 0 1rem; height: 68px; }
  .header-nav { display: none; }
  .logo-img { height: 42px; }
  .header-title { font-size: .9rem; }

  .container { padding: 1.25rem 1rem 3rem; }
  .card, .section-card { padding: 1.5rem; }
  .page-hero { padding: 1.5rem 0 1rem; }
  .page-hero h1, .page-hero .hero-title { font-size: 1.4rem; }
  .page-hero p, .page-hero .hero-sub { font-size: .95rem; }

  .form-row { flex-direction: column; gap: .75rem; }
  .form-group.half, .form-group.third,
  .form-group.quarter, .form-group.three-quarters { flex: 1 1 100%; min-width: 0; }

  .btn-submit { width: 100%; padding: 1rem 1.5rem; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn-submit, .modal-actions .btn-secondary { width: 100%; }

  .site-footer-content { flex-direction: column; text-align: center; }
  .confirm-heading { font-size: 1.5rem; }
  .confirm-details { padding: 1.25rem; }
}