/* ==========================================================================
   INVISA Design System & Brand Identity Stylesheet
   Grounded, Clear, Empowering Immigration Intelligence Engine
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FONT DEFINITIONS & IMPORTS
   NOTE: Petit Formal Script has been permanently retired and dropped.
   Do NOT reintroduce or use Petit Formal Script anywhere in this codebase.
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,400..700;1,6..72,400..700&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=gambetta@400,500,600,700,401,501,601,701&display=swap');

/* Local Font Fallbacks */
@font-face {
  font-family: 'Gambetta';
  src: url('../assets/fonts/Gambetta/Fonts/WEB/fonts/Gambetta-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('../assets/fonts/Outfit/outfit-v15-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('../assets/fonts/Outfit/outfit-v15-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. INVISA BRAND DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Official Brand Palette from INVISA Brand Kit */
  --brand-charcoal: #231F20;     /* BRAND BLACK */
  --brand-moonmist: #F7F5FA;     /* BRAND WHITE / Ambient Off-white Canvas */
  --brand-cobalt: #144A86;       /* PRIMARY PALETTE - Authority & Precision */
  --brand-periwinkle: #A2BCE3;   /* PRIMARY PALETTE - Supportive soft blue */
  --brand-alabaster: #E2E2E2;    /* PRIMARY PALETTE - Neutral border & architectural tone */
  --brand-sea-green: #0D8341;    /* SECONDARY PALETTE - Confirmed milestone & deep trust */
  --brand-fern: #7BBC43;         /* SECONDARY PALETTE - Momentum & positive action */
  --brand-pistachio: #B7D87A;    /* SECONDARY PALETTE - Soft highlight & active tags */
  --brand-goldleaf: #F5B819;     /* TERTIARY COLOR - Priority callouts & stamp star */

  /* Semantic UI Tokens */
  --bg-page: var(--brand-moonmist);
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FCFBFE;
  --bg-subtle: #F2EFF7;

  /* Borders */
  --border-subtle: #E6E3ED;
  --border-card: var(--brand-alabaster);
  --border-focus: var(--brand-cobalt);
  --border-strong: #CBC7D6;

  /* Typography */
  --text-main: var(--brand-charcoal);
  --text-primary: var(--brand-charcoal);
  --text-muted: #53505E;
  --text-subtle: #7A7787;
  --text-inverse: #FFFFFF;
  --text-cobalt: var(--brand-cobalt);

  /* Primary Accent & Hover States */
  --primary: var(--brand-cobalt);
  --primary-hover: #0F3968;
  --primary-subtle: rgba(20, 74, 134, 0.08);
  --primary-border: rgba(20, 74, 134, 0.22);
  
  /* Status Colors */
  --success: var(--brand-sea-green);
  --success-subtle: rgba(13, 131, 65, 0.09);
  --success-border: rgba(13, 131, 65, 0.22);

  --fern: var(--brand-fern);
  --fern-subtle: rgba(123, 188, 67, 0.12);
  --fern-border: rgba(123, 188, 67, 0.28);

  --pistachio: var(--brand-pistachio);
  --pistachio-subtle: rgba(183, 216, 122, 0.2);

  --accent-gold: var(--brand-goldleaf);
  --accent-gold-subtle: rgba(245, 184, 25, 0.14);
  --accent-gold-border: rgba(245, 184, 25, 0.35);

  --danger: #C53030;
  --danger-subtle: rgba(197, 48, 48, 0.08);
  --danger-border: rgba(197, 48, 48, 0.22);

  /* Typography Pairing (Petit Formal Script dropped permanently) */
  --font-h1: 'Gambetta', 'Newsreader', 'Times New Roman', Georgia, serif;
  --font-h2: 'Outfit', sans-serif;
  --font-h3: 'Newsreader', 'Times New Roman', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'Outfit', monospace;

  /* Radii & Shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(35, 31, 32, 0.05);
  --shadow-card: 0 4px 20px rgba(20, 74, 134, 0.06), 0 1px 4px rgba(35, 31, 32, 0.04);
  --shadow-hover: 0 8px 28px rgba(20, 74, 134, 0.11), 0 2px 6px rgba(35, 31, 32, 0.04);
  --shadow-popover: 0 16px 40px rgba(20, 74, 134, 0.14);

  --transition-fast: 0.18s ease;
  --transition-normal: 0.25s ease;
}

/* --------------------------------------------------------------------------
   3. BASE & RESET
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 5%, rgba(162, 188, 227, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 90% 15%, rgba(183, 216, 122, 0.14) 0%, transparent 40%),
    radial-gradient(circle at 50% 95%, rgba(20, 74, 134, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

/* --------------------------------------------------------------------------
   4. INVISA HEADER
   -------------------------------------------------------------------------- */
.app-header {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(247, 245, 250, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 28px;
  box-shadow: 0 1px 4px rgba(35, 31, 32, 0.03);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-badge {
  font-family: var(--font-h2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  background: var(--primary-subtle);
  color: var(--brand-cobalt);
  font-weight: 600;
  border: 1px solid var(--primary-border);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.header-status-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.save-indicator {
  font-size: 12px;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}

.save-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-sea-green);
  box-shadow: 0 0 0 2px rgba(13, 131, 65, 0.2);
}

/* --------------------------------------------------------------------------
   5. PROGRESS STEPPER
   -------------------------------------------------------------------------- */
.stepper-nav {
  max-width: 860px;
  margin: 32px auto 28px auto;
  padding: 0 20px;
}

.stepper-list {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  list-style: none;
  position: relative;
  margin: 0;
  padding: 0;
}

.step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  cursor: pointer;
  background: transparent;
  padding: 0;
  user-select: none;
  text-align: center;
}

/* Connecting line running seamlessly between step circles */
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border-subtle);
  z-index: 1;
  transition: background var(--transition-normal);
}

.step-item.completed:not(:last-child)::after {
  background: var(--brand-sea-green);
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border-card);
  background: var(--bg-surface);
  color: var(--text-subtle);
  font-family: var(--font-h2);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: all var(--transition-fast);
  box-shadow: 0 1px 3px rgba(35, 31, 32, 0.06);
}

.step-label {
  font-family: var(--font-h2);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-subtle);
  white-space: nowrap;
  transition: color var(--transition-fast);
  padding: 0 4px;
}

.step-item:hover .step-circle {
  border-color: var(--brand-cobalt);
  color: var(--brand-cobalt);
}

.step-item:hover .step-label {
  color: var(--text-main);
}

.step-item.active .step-circle {
  background: var(--brand-cobalt);
  border-color: var(--brand-cobalt);
  color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(20, 74, 134, 0.14), 0 4px 12px rgba(20, 74, 134, 0.35);
  transform: scale(1.06);
}

.step-item.active .step-label {
  color: var(--brand-cobalt);
  font-weight: 700;
}

.step-item.completed .step-circle {
  background: var(--brand-sea-green);
  border-color: var(--brand-sea-green);
  color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(13, 131, 65, 0.12), 0 2px 6px rgba(13, 131, 65, 0.2);
}

.step-item.completed:hover .step-circle {
  border-color: var(--brand-sea-green);
  color: #FFFFFF;
}

.step-item.completed .step-label {
  color: var(--text-muted);
}

/* Mobile Stepper Status Line */
.mobile-step-status {
  display: none;
  text-align: center;
  font-family: var(--font-h2);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-cobalt);
  margin-top: 14px;
  padding: 5px 14px;
  background: var(--primary-subtle);
  border-radius: var(--radius-full);
  border: 1px solid var(--primary-border);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   6. MAIN CONTAINER & VIEWS
   -------------------------------------------------------------------------- */
.main-content {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px 90px 20px;
}

.step-view {
  display: none;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-view.active {
  display: block;
}

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

/* --------------------------------------------------------------------------
   7. CARDS & SECTIONS
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 34px 36px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

/* Subtle brand wave pattern watermark */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 380px;
  height: 220px;
  background-image: url('../assets/patterns/Pattern%201/Pattern%201%20-%20Light%20Blue.svg');
  background-repeat: no-repeat;
  background-position: top right;
  background-size: cover;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card-header-clean {
  margin-bottom: 26px;
}

/* H1: Gambetta, Semi Bold, Paragraph Case */
.card-title-clean {
  font-family: var(--font-h1);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--brand-charcoal);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.card-subtitle-clean {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 760px;
}

.brand-flourish {
  font-family: var(--font-h3);
  font-size: 1.15em;
  color: var(--brand-cobalt);
  font-weight: normal;
  font-style: italic;
  padding: 0 4px;
}

/* --------------------------------------------------------------------------
   8. FORM CONTROLS & SECTIONS
   -------------------------------------------------------------------------- */
/* Subheaders (H2): Outfit, Semi Bold, 50 leading, Uppercase */
.form-section-title {
  font-family: var(--font-h2);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-cobalt);
  margin: 28px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-charcoal);
  margin-bottom: 6px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-subtle);
  margin-top: 5px;
  line-height: 1.4;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--brand-charcoal);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: all var(--transition-fast);
  box-shadow: inset 0 1px 2px rgba(35, 31, 32, 0.03);
}

.form-input:hover, .form-select:hover {
  border-color: var(--border-strong);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand-cobalt);
  box-shadow: 0 0 0 3px rgba(20, 74, 134, 0.14);
  background: #FFFFFF;
}

.form-select {
  appearance: none;
  -webkit-appearance: 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='%23144A86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 15px;
  padding-right: 38px;
  cursor: pointer;
}

.form-select option {
  background: #FFFFFF;
  color: var(--brand-charcoal);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}

/* Responsive Grid & Utility Layout Helpers */
.pathway-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  font-size: 12.5px;
  margin: 4px 0;
}

.filing-dates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.runway-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
  font-size: 13px;
}

.report-email-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.table-responsive-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 10px;
}

@media (max-width: 680px) {
  .form-grid-2, .form-grid-3 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Radio Cards (Career Orientation Selector) */
.radio-cards-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 680px) {
  .radio-cards-group {
    grid-template-columns: 1fr;
  }
}

.radio-card {
  border: 1px solid var(--border-card);
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.radio-card:hover {
  border-color: var(--brand-periwinkle);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.radio-card.selected {
  background: rgba(20, 74, 134, 0.04);
  border-color: var(--brand-cobalt);
  box-shadow: 0 0 0 2px var(--brand-cobalt);
}

.radio-card.selected::after {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 13px;
  color: var(--brand-cobalt);
  font-weight: 700;
}

.radio-card-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-charcoal);
}

.radio-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   9. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-h2);
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  outline: none;
}

.btn-primary {
  background: var(--brand-cobalt);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(20, 74, 134, 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(20, 74, 134, 0.35);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--brand-charcoal);
  border-color: var(--border-card);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
  color: var(--brand-cobalt);
}

.btn-accent {
  background: var(--brand-fern);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(123, 188, 67, 0.3);
}

.btn-accent:hover {
  background: #6ca739;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
  gap: 12px;
}

/* --------------------------------------------------------------------------
   10. STEP 2: PATHWAY MATCH CARDS
   -------------------------------------------------------------------------- */
.pathway-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
}

.pathway-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-card);
}

.pathway-card:hover {
  border-color: var(--brand-periwinkle);
  box-shadow: var(--shadow-hover);
}

.pathway-card.selected {
  border-color: var(--brand-cobalt);
  box-shadow: 0 0 0 2px var(--brand-cobalt), var(--shadow-hover);
  background: #FAFBFD;
}

.pathway-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.pathway-title-group h3 {
  font-family: var(--font-h1);
  font-size: 21px;
  font-weight: 600;
  color: var(--brand-charcoal);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}

.pathway-category {
  font-family: var(--font-h2);
  font-size: 11px;
  color: var(--brand-cobalt);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-top: 3px;
}

.location-badge {
  font-family: var(--font-h2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.location-badge.in-us {
  background: rgba(13, 131, 65, 0.09);
  color: var(--brand-sea-green);
  border: 1px solid var(--success-border);
}

.location-badge.out-of-us {
  background: rgba(197, 48, 48, 0.09);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.score-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  background: var(--fern-subtle);
  border: 1px solid var(--fern-border);
  min-width: 82px;
  text-align: right;
}

.score-num {
  font-family: var(--font-h2);
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-sea-green);
  line-height: 1;
}

.score-text {
  font-size: 10.5px;
  color: var(--brand-sea-green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.pathway-summary {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.pathway-reasons-box {
  background: var(--bg-subtle);
  border-left: 3px solid var(--brand-sea-green);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
  color: var(--brand-charcoal);
  line-height: 1.5;
}

.pathway-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12.5px;
  color: var(--text-subtle);
  flex-wrap: wrap;
  gap: 10px;
}

.meta-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(20, 74, 134, 0.06);
  color: var(--brand-cobalt);
}

/* --------------------------------------------------------------------------
   11. STEP 3: TAILORING & CRITERIA ITEMS
   -------------------------------------------------------------------------- */
.criteria-item {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.criteria-item:hover {
  border-color: var(--brand-periwinkle);
  background: #FAFBFD;
}

.criteria-item.checked {
  border-color: var(--brand-cobalt);
  background: rgba(20, 74, 134, 0.04);
}

.criteria-item input[type=checkbox] {
  margin-top: 3px;
  accent-color: var(--brand-cobalt);
  width: 17px;
  height: 17px;
}

.criteria-content {
  flex: 1;
}

.criteria-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-charcoal);
  margin-bottom: 3px;
}

.criteria-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   12. STEP 4: STRATEGIC REPORT
   -------------------------------------------------------------------------- */
.report-header-banner {
  background: linear-gradient(135deg, #144A86 0%, #1e599b 100%);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(20, 74, 134, 0.2);
}

/* Pattern 1 Dark Blue / White overlay watermark */
.report-header-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 440px;
  height: 100%;
  background-image: url('../assets/patterns/Pattern%201/Pattern%201%20-%20White.svg');
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover;
  opacity: 0.16;
  pointer-events: none;
}

.report-headline {
  position: relative;
  z-index: 1;
}

.report-tagline {
  font-family: var(--font-h2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-periwinkle);
  font-weight: 600;
  margin-bottom: 4px;
}

.report-headline h2 {
  font-family: var(--font-h1);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

.report-headline p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 6px;
  line-height: 1.5;
}

.report-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.report-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
}

.report-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #FFFFFF;
}

.report-actions .btn-accent {
  background: var(--brand-fern);
  color: #FFFFFF;
  border: none;
}

.report-grid-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

@media (max-width: 820px) {
  .report-grid-summary {
    grid-template-columns: 1fr 1fr;
  }
}

.stat-pill {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}

.stat-label {
  font-family: var(--font-h2);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.stat-val {
  font-family: var(--font-h2);
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-charcoal);
}

.report-section {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-card);
}

.report-section-title {
  font-family: var(--font-h2);
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-cobalt);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

/* Milestones Checklist */
.milestones-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.milestone-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.milestone-row:hover {
  border-color: var(--brand-periwinkle);
}

.milestone-row.completed {
  background: var(--bg-subtle);
  border-color: var(--fern-border);
}

.milestone-row.completed .milestone-title {
  text-decoration: line-through;
  color: var(--text-subtle);
}

.milestone-checkbox {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--brand-sea-green);
  cursor: pointer;
}

.milestone-info {
  flex: 1;
}

.milestone-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.milestone-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-charcoal);
}

.milestone-target {
  font-family: var(--font-h2);
  font-size: 11px;
  padding: 2px 8px;
  background: rgba(20, 74, 134, 0.06);
  border-radius: var(--radius-sm);
  color: var(--brand-cobalt);
  font-weight: 600;
}

.milestone-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Itemized Financial Table */
.finance-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin-top: 10px;
}

.finance-table th, .finance-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.finance-table th {
  font-family: var(--font-h2);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: 600;
  letter-spacing: 0.06em;
  background: var(--bg-subtle);
}

.finance-table td.amount-cell {
  font-family: var(--font-h2);
  text-align: right;
  font-weight: 600;
  color: var(--brand-charcoal);
}

.finance-total-row td {
  border-top: 2px solid var(--brand-cobalt);
  border-bottom: none;
  font-weight: 700;
  color: var(--brand-cobalt);
  font-size: 15px;
  background: rgba(20, 74, 134, 0.03);
}

/* Callout Box */
.callout-box {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 16px 0;
}

.callout-box.info {
  background: rgba(20, 74, 134, 0.05);
  border: 1px solid rgba(20, 74, 134, 0.18);
  color: var(--brand-charcoal);
}

.callout-box.warning {
  background: var(--accent-gold-subtle);
  border: 1px solid var(--accent-gold-border);
  color: #78350F;
}

.callout-box.success {
  background: var(--fern-subtle);
  border: 1px solid var(--fern-border);
  color: #14532D;
}

/* Fuel Bar (OPT Unemployment status) */
.fuel-bar-wrap {
  width: 100%;
  height: 8px;
  background: var(--border-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 8px 0;
}

.fuel-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--brand-sea-green);
  transition: width 0.4s ease;
}

.fuel-bar-fill.warning { background: var(--brand-goldleaf); }
.fuel-bar-fill.danger { background: var(--danger); }

/* Minimalist Footer */
.minimal-footer {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-subtle);
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  line-height: 1.6;
}

.minimal-footer .footer-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
}

.footer-brand-name {
  font-family: var(--font-h2);
  font-weight: 700;
  color: var(--brand-charcoal);
  font-size: 13.5px;
}

.footer-divider {
  color: var(--brand-periwinkle);
  font-size: 11px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 12.5px;
}

.footer-disclaimer {
  font-size: 11.5px;
  color: var(--text-subtle);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   13. COMPREHENSIVE MOBILE & TABLET RESPONSIVENESS
   -------------------------------------------------------------------------- */

/* Tablet & Intermediate Screens (681px to 860px) */
@media (min-width: 681px) and (max-width: 860px) {
  .main-content {
    padding: 0 16px 70px 16px;
  }

  .card {
    padding: 28px 24px;
  }

  .report-grid-summary {
    grid-template-columns: 1fr 1fr;
  }

  .runway-metrics-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .report-email-grid {
    grid-template-columns: 1fr 1fr;
  }

  .report-email-grid .btn {
    grid-column: 1 / -1;
  }
}

/* Mobile Devices (<= 680px) */
@media (max-width: 680px) {
  /* Layout Root & Smooth Mobile Scroll */
  body {
    background-attachment: scroll;
    font-size: 14px;
  }

  .main-content {
    padding: 0 12px 60px 12px;
    max-width: 100%;
  }

  /* 1. Header Overhaul */
  .app-header {
    padding: 10px 14px;
  }

  .header-inner {
    gap: 8px;
  }

  .brand-block {
    gap: 8px;
  }

  .brand-logo-img {
    height: 28px;
  }

  .brand-divider {
    height: 20px !important;
  }

  .brand-name {
    font-size: 16px !important;
  }

  .brand-badge {
    display: none; /* Hide secondary badge on mobile to prevent overflow */
  }

  .header-status-group {
    gap: 8px;
  }

  .save-indicator span:last-child {
    display: none; /* Show only the green pulse dot on small mobile */
  }

  .save-indicator {
    gap: 0;
  }

  #btnResetAll {
    padding: 5px 10px;
    font-size: 11px;
    white-space: nowrap;
  }

  /* 2. Stepper Overhaul */
  .stepper-nav {
    margin: 16px auto 18px auto;
    padding: 0 8px;
  }

  .step-item {
    padding: 0;
    gap: 4px;
  }

  .step-item:not(:last-child)::after {
    top: 14px;
  }

  .step-circle {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .step-label {
    display: none; /* Inactive and active text labels hidden in favor of active banner */
  }

  .mobile-step-status {
    display: inline-block;
  }

  /* 3. Cards & Headers */
  .card {
    padding: 20px 14px;
    border-radius: var(--radius-md);
  }

  .card::before {
    width: 180px;
    height: 110px;
    opacity: 0.08;
  }

  .card-header-clean {
    margin-bottom: 18px;
  }

  .card-title-clean {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 6px;
  }

  .card-subtitle-clean {
    font-size: 13.5px;
    line-height: 1.5;
  }

  /* 4. Form Controls & iOS Safari Auto-Zoom Prevention */
  .form-section-title {
    margin: 22px 0 12px 0;
    font-size: 11.5px;
    flex-wrap: wrap;
    gap: 4px;
  }

  .form-group {
    margin-bottom: 16px;
  }

  .form-label {
    font-size: 13px;
    flex-wrap: wrap;
    gap: 6px;
  }

  /* Must be at least 16px font-size to prevent iOS Safari auto-zooming */
  .form-input, .form-select, .form-textarea {
    font-size: 16px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
  }

  .form-hint {
    font-size: 11.5px;
    line-height: 1.4;
  }

  .radio-cards-group {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .radio-card {
    padding: 14px;
  }

  /* 5. Full-Width Action Buttons */
  .btn-row {
    flex-direction: column-reverse;
    gap: 10px;
    margin-top: 22px;
    padding-top: 16px;
  }

  .btn {
    width: 100%;
    white-space: normal;
    padding: 13px 18px;
    font-size: 14px;
    text-align: center;
    box-sizing: border-box;
  }

  .btn-sm {
    padding: 9px 14px;
    font-size: 12.5px;
  }

  /* 6. Step 2: Pathway Match Cards */
  .pathway-card {
    padding: 18px 14px;
    gap: 14px;
  }

  .pathway-card-top {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 10px;
  }

  .score-badge {
    align-self: flex-start;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    min-width: auto;
  }

  .score-num {
    font-size: 18px;
  }

  .score-text {
    margin-top: 0;
  }

  .pathway-title-group h3 {
    font-size: 18px;
  }

  .pathway-pros-cons {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pathway-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .pathway-card-footer .btn {
    width: 100%;
  }

  #step2ProfileSummary {
    padding: 12px 14px !important;
    font-size: 12.5px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }

  /* 7. Step 3: Evidentiary Criteria */
  .criteria-item {
    padding: 12px 14px;
    gap: 10px;
  }

  .criteria-title {
    font-size: 13.5px;
  }

  .criteria-desc {
    font-size: 12px;
  }

  /* 8. Step 4: Strategic Report Overhaul */
  .report-header-banner {
    padding: 20px 16px;
    gap: 16px;
    flex-direction: column;
    align-items: stretch;
  }

  .report-header-banner::before {
    display: none;
  }

  .report-headline h2 {
    font-size: 21px;
    line-height: 1.25;
  }

  .report-headline p {
    font-size: 12.5px;
    line-height: 1.5;
  }

  .report-actions {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .report-actions .btn {
    width: 100%;
  }

  .report-grid-summary {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stat-pill {
    padding: 12px 14px;
  }

  .stat-val {
    font-size: 18px;
  }

  .report-section {
    padding: 18px 14px;
    margin-bottom: 16px;
  }

  .report-section-title {
    font-size: 12px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .filing-dates-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .runway-metrics-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .report-email-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .report-email-grid .btn {
    width: 100%;
    height: 44px;
  }

  .milestone-row {
    padding: 12px;
    gap: 10px;
  }

  .milestone-header-line {
    flex-wrap: wrap;
    gap: 4px;
  }

  .milestone-title {
    font-size: 13.5px;
  }

  .milestone-target {
    font-size: 10.5px;
  }

  .milestone-desc {
    font-size: 12px;
  }

  .finance-table th, .finance-table td {
    padding: 9px 8px;
    font-size: 12px;
  }

  /* Footer Mobile Refinement */
  .minimal-footer {
    margin-top: 36px;
    padding: 24px 14px calc(28px + env(safe-area-inset-bottom, 0px)) 14px;
    font-size: 11.5px;
  }

  .minimal-footer .footer-logo-row {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
  }

  .footer-brand {
    gap: 7px;
  }

  .footer-brand-name {
    font-size: 13px;
  }

  .footer-divider {
    display: none;
  }

  .footer-tagline {
    font-size: 12px;
    text-align: center;
    line-height: 1.45;
  }

  .footer-disclaimer {
    font-size: 11px;
    line-height: 1.55;
    max-width: 330px;
    margin: 0 auto;
    text-align: center;
  }
}

/* Print Overrides */
@media print {
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }
  .app-header, .stepper-nav, .report-actions, .btn-row, .minimal-footer {
    display: none !important;
  }
  .card, .report-section, .report-header-banner {
    border: 1px solid #CCCCCC !important;
    background: #FFFFFF !important;
    box-shadow: none !important;
    color: #000000 !important;
  }
  .report-header-banner {
    color: #000000 !important;
    background: #F0F4FA !important;
  }
  .report-headline h2, .report-headline p {
    color: #000000 !important;
  }
  .stat-pill, .milestone-row {
    border: 1px solid #E5E5E5 !important;
    background: #FFFFFF !important;
    color: #000000 !important;
  }
}
