/* ==========================================================================
   INVISA F-1 Resource Hub - Tuition Wire FX Markup & Hidden Fee Calculator
   Brand Guidelines: Clean Light-Mode Design, Cobalt Blue, Emerald Highlights,
   Dark Slate Typography, System Font Stack.
   ========================================================================== */

:root {
  /* Colors */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-muted: #e2e8f0;
  
  --border-light: #e2e8f0;
  --border-card: #cbd5e1;
  --border-focus: #2563eb;

  /* Typography Colors */
  --text-headline: #0f172a;
  --text-body: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Primary Brand - Cobalt Blue */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-active: #1e40af;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;

  /* Brand Navy */
  --invisa-navy: #144a86;
  --invisa-navy-dark: #0f274a;

  /* Success - Emerald */
  --emerald: #059669;
  --emerald-hover: #047857;
  --emerald-light: #ecfdf5;
  --emerald-border: #a7f3d0;

  /* Warning / Danger */
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --danger-border: #fecaca;
  --amber: #d97706;
  --amber-light: #fffbeb;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-dropdown: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.06);

  /* Dimensions */
  --header-height: 64px;
  --footer-height: 72px;
  --container-max-width: 900px;
  --radius-card: 16px;
  --radius-sm: 8px;
  --radius-pill: 9999px;

  /* Font Stack */
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-stack);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Global Navigation Header (Sticky Top)
   ========================================================================== */
.global-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-height);
  display: flex;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

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

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.brand-logo-link:hover {
  opacity: 0.88;
}

.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}

.hub-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-headline);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.hub-icon {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Auto-saved indicator */
.auto-save-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--emerald);
  padding: 4px 8px;
  margin-right: 4px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
  animation: pulse-dot 2.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

/* Header Buttons */
.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-headline);
  font-family: inherit;
  font-size: 0.81rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.header-btn:hover {
  background-color: var(--bg-subtle);
  border-color: #94a3b8;
}

.btn-icon {
  color: var(--text-muted);
}

.chevron-icon {
  transition: transform 0.2s ease;
}

.dropdown-toggle[aria-expanded="true"] .chevron-icon {
  transform: rotate(180deg);
}

/* Dropdown Menu Popover */
.dropdown-wrapper {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: var(--shadow-dropdown);
  padding: 12px;
  display: none;
  flex-direction: column;
  z-index: 150;
  animation: fadeInDown 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-menu.show {
  display: flex;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-header {
  padding: 4px 8px 10px 8px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-headline);
  letter-spacing: 0.05em;
}

.dropdown-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
}

.dropdown-subtitle:hover {
  color: var(--primary);
}

.dropdown-list {
  list-style: none;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.12s ease;
}

.dropdown-item:hover {
  background-color: var(--bg-subtle);
  color: var(--text-headline);
}

.dropdown-item svg {
  color: var(--text-light);
  transition: transform 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover svg {
  color: var(--primary);
  transform: translate(1px, -1px);
}

.dropdown-footer {
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}

.waitlist-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--invisa-navy-dark);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: var(--radius-pill);
  transition: background-color 0.15s ease;
  width: 100%;
}

.waitlist-button:hover {
  background-color: var(--invisa-navy);
}

/* ==========================================================================
   Main Viewport & Hero Section
   ========================================================================== */
.main-layout {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 24px 16px 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Stepper Navigation */
.stepper-nav {
  margin-bottom: 24px;
}

.step-pill-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.81rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.step-pill .pill-number {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--bg-muted);
  color: var(--text-headline);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}

.step-pill.active {
  background-color: var(--invisa-navy-dark);
  border-color: var(--invisa-navy-dark);
  color: #ffffff;
}

.step-pill.active .pill-number {
  background-color: #ffffff;
  color: var(--invisa-navy-dark);
}

.step-pill.completed {
  color: var(--text-headline);
}

.step-pill.completed .pill-number {
  background-color: var(--emerald-light);
  color: var(--emerald);
}

.step-divider {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* Hero Header */
.hero-header {
  text-align: center;
  margin-bottom: 24px;
  max-width: 580px;
}

.hero-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-headline);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.5;
}

/* ==========================================================================
   Main Container Card (Pure White, 16px Border Radius, Subtle Gray Border)
   ========================================================================== */
.wizard-container {
  width: 100%;
}

.wizard-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.step-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.step-badge-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-number-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25);
}

.step-badge-emerald {
  background-color: var(--emerald);
  box-shadow: 0 2px 4px rgba(5, 150, 105, 0.25);
}

.step-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-headline);
  line-height: 1.3;
  margin-bottom: 4px;
}

.step-card-desc {
  font-size: 0.84rem;
  color: var(--text-body);
  line-height: 1.4;
}

.step-counter-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* ==========================================================================
   Form Fields & Controls
   ========================================================================== */
.step-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-headline);
}

.required-star {
  color: var(--danger);
  font-weight: 700;
}

.label-hint {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

.form-input {
  width: 100%;
  height: 44px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-headline);
  background-color: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0 12px 0 38px;
  outline: none;
  transition: all 0.15s ease;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-input.invalid {
  border-color: var(--danger);
  background-color: var(--danger-light);
}

.field-error {
  font-size: 0.76rem;
  color: var(--danger);
  font-weight: 500;
  display: none;
  margin-top: 2px;
}

.field-error.show {
  display: block;
}

/* Select wrapper */
.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-select {
  width: 100%;
  height: 44px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-headline);
  background-color: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0 36px 0 12px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.select-chevron {
  position: absolute;
  right: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

.input-helper {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

#currentRateDisplay {
  font-weight: 600;
  color: var(--text-headline);
}

/* ==========================================================================
   Transfer Method Comparison Cards (Interactive Radio Selection)
   ========================================================================== */
.method-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
  width: 100%;
}

@media (max-width: 768px) {
  .method-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.method-card {
  background-color: #ffffff;
  border: 1.5px solid var(--border-card);
  border-radius: 14px;
  padding: 22px 18px 18px 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  outline: none;
  min-width: 0;
  box-sizing: border-box;
}

.method-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.method-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.method-card.selected {
  border: 2px solid var(--invisa-navy-dark);
  background-color: #ffffff;
  box-shadow: 0 4px 16px rgba(15, 39, 74, 0.08);
}

.card-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  min-height: 26px;
}

.card-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  white-space: nowrap;
}

.tag-portal {
  background-color: #f1f5f9;
  color: #475569;
}

.tag-popular {
  background-color: var(--emerald-light);
  color: var(--emerald);
}

.tag-swift {
  background-color: #fee2e2;
  color: #b91c1c;
}

.radio-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
  background-color: #ffffff;
}

.method-card.selected .radio-indicator {
  border-color: var(--invisa-navy-dark);
  background-color: var(--invisa-navy-dark);
}

.radio-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: transparent;
  transition: background-color 0.15s ease;
}

.method-card.selected .radio-dot {
  background-color: #ffffff;
}

.method-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-headline);
  line-height: 1.25;
  margin-bottom: 3px;
}

.method-sub {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.method-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 18px;
}

.method-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  color: #334155;
  line-height: 1.4;
}

.method-features li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.warning-text {
  color: var(--danger);
}

.success-text {
  color: var(--emerald);
}

.card-footer-pill {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ==========================================================================
   Step 2: Tuition Amount & Presets
   ========================================================================== */
.amount-group {
  margin-top: 4px;
}

.input-currency-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-prefix {
  position: absolute;
  left: 16px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-headline);
  pointer-events: none;
}

.currency-suffix {
  position: absolute;
  right: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  pointer-events: none;
}

.amount-input {
  height: 58px;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-headline);
  padding: 0 60px 0 36px;
  border-radius: 12px;
  border: 1.5px solid var(--border-card);
}

.amount-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Presets */
.amount-presets-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preset-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.preset-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (max-width: 480px) {
  .preset-chips {
    grid-template-columns: repeat(2, 1fr);
  }
}

.preset-chip {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 8px 6px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-headline);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.preset-chip small {
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--text-muted);
}

.preset-chip:hover {
  background-color: var(--bg-subtle);
  border-color: #94a3b8;
}

.preset-chip.active {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.preset-chip.active small {
  color: var(--primary);
}

/* Schedule Toggle */
.schedule-group {
  margin-top: 4px;
}

.schedule-toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 520px) {
  .schedule-toggle-group {
    grid-template-columns: 1fr;
  }
}

.toggle-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid var(--border-card);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-headline);
  transition: all 0.15s ease;
}

.toggle-option:hover {
  background-color: var(--bg-subtle);
}

.toggle-option.active {
  border-color: var(--primary);
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.toggle-option input {
  accent-color: var(--primary);
}

/* Selected Summary Strip */
.selected-summary-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px 12px;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.77rem;
}

.strip-label {
  color: var(--text-muted);
}

.strip-val {
  font-weight: 600;
  color: var(--text-headline);
}

/* Informational Callout (Brand style matching screenshot benchmark) */
.info-callout-card {
  display: flex;
  gap: 14px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--invisa-navy-dark);
  border-radius: 8px;
  padding: 16px 18px;
  margin-top: 6px;
}

.callout-icon-col {
  flex-shrink: 0;
}

.callout-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.callout-text-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.callout-heading {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-headline);
  line-height: 1.3;
}

.callout-body {
  font-size: 0.81rem;
  color: var(--text-body);
  line-height: 1.5;
}

/* ==========================================================================
   Step 3: Results & Cost Breakdown Dashboard
   ========================================================================== */
.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.highlight-name {
  color: var(--primary);
  font-weight: 700;
}

/* Savings Banner */
.savings-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 12px;
  color: #ffffff;
  padding: 20px 22px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.banner-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.banner-date {
  font-size: 0.75rem;
  color: #94a3b8;
}

.banner-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.banner-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-prefix {
  font-size: 0.82rem;
  color: #cbd5e1;
}

.stat-number-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.stat-amount {
  font-size: 2.1rem;
  font-weight: 800;
  color: #f87171; /* Highlight friction in red */
  letter-spacing: -0.02em;
}

.stat-local {
  font-size: 0.95rem;
  font-weight: 500;
  color: #94a3b8;
}

.banner-savings-box {
  background-color: rgba(5, 150, 105, 0.15);
  border: 1px solid rgba(5, 150, 105, 0.4);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}

.savings-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #6ee7b7;
}

.savings-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: #34d399;
  letter-spacing: -0.01em;
}

.savings-note {
  font-size: 0.7rem;
  color: #a7f3d0;
}

/* Side-by-side Providers Grid */
.providers-comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 580px) {
  .providers-comparison-grid {
    grid-template-columns: 1fr;
  }
}

.provider-stat-card {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: 12px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.15s ease;
}

.provider-stat-card.recommended-card {
  border-color: var(--emerald);
  background-color: #f0fdf4;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.08);
}

.provider-stat-card.active-user-method {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.pcard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.pcard-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-subtle);
  color: var(--text-headline);
}

.badge-emerald {
  background-color: var(--emerald-light);
  color: var(--emerald);
}

.badge-red {
  background-color: var(--danger-light);
  color: var(--danger);
}

.pcard-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-headline);
}

.pcard-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pcard-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.77rem;
}

.m-label {
  color: var(--text-muted);
}

.m-val {
  font-weight: 600;
  color: var(--text-headline);
}

.m-val.warning {
  color: var(--danger);
}

.m-val.emerald {
  color: var(--emerald);
}

.m-val.bold {
  font-size: 0.95rem;
  font-weight: 800;
}

.total-metric {
  padding-top: 6px;
  border-top: 1px dashed var(--border-light);
}

.pcard-rate {
  margin-top: 4px;
  padding: 5px 8px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pcard-rate strong {
  color: var(--text-headline);
}

/* Line-by-line Fee Audit Table */
.breakdown-table-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.table-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-headline);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border-card);
}

.audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  text-align: left;
  background-color: #ffffff;
}

.audit-table th, 
.audit-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
}

.audit-table th {
  background-color: var(--bg-subtle);
  font-weight: 700;
  color: var(--text-headline);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.audit-table td strong {
  display: block;
  color: var(--text-headline);
}

.audit-table td small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.audit-table .selected-col {
  background-color: #f8fafc;
  font-weight: 600;
}

.audit-table .opt-col {
  background-color: #f0fdf4;
  font-weight: 600;
}

.warning-cell {
  color: var(--danger);
}

.success-cell {
  color: var(--emerald);
}

.highlight-row {
  background-color: #f8fafc;
  border-top: 2px solid var(--border-card);
}

.highlight-row td {
  font-size: 0.86rem;
}

/* Strategic Recommendations */
.recommendations-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rec-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-headline);
}

.rec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 2px;
}

.rec-list li {
  font-size: 0.8rem;
  color: var(--text-body);
  line-height: 1.45;
}

.rec-list code {
  background-color: #e2e8f0;
  padding: 1px 4px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--text-headline);
}

/* Dashboard Actions */
.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}

@media (max-width: 480px) {
  .dashboard-actions {
    flex-direction: column;
    width: 100%;
  }
  .dashboard-actions .action-btn {
    width: 100%;
    justify-content: center;
  }
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-print {
  background-color: var(--primary);
  border: 1px solid var(--primary);
  color: #ffffff;
}

.btn-print:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-secondary {
  background-color: #ffffff;
  border: 1px solid var(--border-card);
  color: var(--text-headline);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: #94a3b8;
}

/* ==========================================================================
   Fixed Bottom Web-App Navigation Bar
   ========================================================================== */
.fixed-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--footer-height);
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-card);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
  z-index: 100;
  display: flex;
  align-items: center;
}

.bottom-bar-inner {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bottom-left {
  flex: 0 0 100px;
  display: flex;
  align-items: center;
}

.bottom-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.bottom-center {
  flex: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 8px;
}

.status-indicator {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.status-indicator.has-error {
  color: var(--danger);
  font-weight: 600;
}

.error-alert-container {
  display: none;
}

.status-error-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 600;
  animation: shake 0.25s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-back {
  background-color: #ffffff;
  border: 1px solid var(--border-card);
  color: var(--text-headline);
  padding: 0 16px;
}

.btn-back:hover:not(:disabled) {
  background-color: var(--bg-subtle);
  border-color: #94a3b8;
}

.btn-back:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Primary Action Button Styled in Refined INVISA Cobalt / Navy */
.btn-primary {
  background-color: var(--invisa-navy-dark);
  border: 1px solid var(--invisa-navy-dark);
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(15, 39, 74, 0.2);
  padding: 0 24px;
}

.btn-primary:hover {
  background-color: var(--invisa-navy);
  border-color: var(--invisa-navy);
  box-shadow: 0 4px 10px rgba(15, 39, 74, 0.25);
}

.btn-primary:active {
  transform: scale(0.98);
}

/* ==========================================================================
   Wire FAQ Modal / Drawer
   ========================================================================== */
.faq-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.18s ease;
}

.faq-modal-overlay.show {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.faq-modal-card {
  background-color: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-dropdown);
  width: 100%;
  max-width: 540px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.faq-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-title-group h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-headline);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.12s ease;
}

.modal-close-btn:hover {
  background-color: var(--bg-subtle);
  color: var(--text-headline);
}

.faq-modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-q {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-headline);
}

.faq-a {
  font-size: 0.81rem;
  color: var(--text-body);
  line-height: 1.5;
}

.faq-modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-light);
  background-color: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.faq-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.faq-learn-more:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Lead Magnet Card (Step 3 Gated Multi-Format Download)
   ========================================================================== */
.lead-magnet-card {
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  border: 2px solid #86efac;
  border-radius: 14px;
  padding: 24px 22px;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.08);
  margin-top: 6px;
}

.lead-magnet-header {
  margin-bottom: 18px;
}

.lead-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--emerald);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

.lead-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-headline);
  line-height: 1.3;
  margin-bottom: 4px;
}

.lead-subtitle {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.5;
}

.lead-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.full-width-field {
  grid-column: span 2;
}

@media (max-width: 580px) {
  .lead-form-grid {
    grid-template-columns: 1fr;
  }
  .full-width-field {
    grid-column: span 1;
  }
}

.download-format-options {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.format-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-headline);
}

.download-btns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 680px) {
  .download-btns-grid {
    grid-template-columns: 1fr;
  }
}

.btn-download-format {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border-card);
  background-color: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  outline: none;
}

.btn-download-format:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.format-pdf {
  border-color: #93c5fd;
}
.format-pdf:hover {
  background-color: #eff6ff;
  border-color: var(--primary);
}
.format-pdf .btn-format-icon {
  color: var(--primary);
}

.format-doc {
  border-color: #7dd3fc;
}
.format-doc:hover {
  background-color: #f0f9ff;
  border-color: #0284c7;
}
.format-doc .btn-format-icon {
  color: #0284c7;
}

.format-image {
  border-color: #86efac;
}
.format-image:hover {
  background-color: #ecfdf5;
  border-color: var(--emerald);
}
.format-image .btn-format-icon {
  color: var(--emerald);
}

.btn-format-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background-color: #f8fafc;
}

.btn-format-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-headline);
  line-height: 1.25;
}

.btn-format-text small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.sheet-sync-pill {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--emerald);
  font-weight: 500;
  background-color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid #bbf7d0;
}

.sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--emerald);
}

/* ==========================================================================
   On-Page FAQ Accordion Section
   ========================================================================== */
.on-page-faq-section {
  width: 100%;
  max-width: var(--container-max-width);
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faq-section-header {
  text-align: center;
}

.faq-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

.faq-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-headline);
  margin-bottom: 6px;
}

.faq-section-subtitle {
  font-size: 0.85rem;
  color: var(--text-body);
  max-width: 600px;
  margin: 0 auto;
}

.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.accordion-item {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.accordion-item.active {
  border-color: var(--border-light);
  background-color: #f8fafc;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.accordion-question {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-headline);
  line-height: 1.35;
}

.accordion-icon {
  flex-shrink: 0;
  color: #64748b;
  transition: transform 0.2s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.accordion-content {
  display: none;
  padding: 0 16px 16px 16px;
  font-size: 0.84rem;
  color: var(--text-body);
  line-height: 1.55;
}

.accordion-item.active .accordion-content {
  display: block;
}

/* ==========================================================================
   Official INVISA Dark Site Footer (Matching Reference Screenshot)
   ========================================================================== */
.official-invisa-footer {
  width: 100%;
  background-color: #0b2341;
  color: #ffffff;
  padding: 56px 20px calc(var(--footer-height) + 32px) 20px;
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 48px;
}

@media (max-width: 768px) {
  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.col-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-logo {
  height: 26px;
  width: auto;
  display: block;
}

.footer-vertical-bar {
  color: #64748b;
  font-size: 1.1rem;
}

.footer-hub-tag {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #B7D87A; /* Pistachio green from brand kit */
}

.footer-brand-desc {
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #B7D87A; /* Pistachio green from brand kit */
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-nav-link:hover {
  color: #ffffff;
}

.arrow-up-right {
  font-size: 0.88rem;
  color: #64748b;
  transition: transform 0.15s ease, color 0.15s ease;
}

.footer-nav-link:hover .arrow-up-right {
  color: #B7D87A;
  transform: translate(1px, -1px);
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: #64748b;
  text-align: center;
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */
@media (max-width: 640px) {
  .hero-title {
    font-size: 1.35rem;
  }
  .wizard-card {
    padding: 20px 16px;
  }
  .desktop-only {
    display: none;
  }
  .hub-pill {
    display: none;
  }
  .stat-amount {
    font-size: 1.8rem;
  }
  .bottom-bar-inner {
    padding: 0 12px;
    gap: 8px;
  }
  .bottom-left {
    flex: 0 0 auto;
  }
  .status-indicator {
    font-size: 0.76rem;
  }
  .nav-btn {
    height: 40px;
    padding: 0 16px;
    font-size: 0.82rem;
  }
}

/* ==========================================================================
   Dedicated Print Styling for "Download Cost Report (.pdf)"
   ========================================================================== */
@media print {
  /* Hide interactive navigation chrome */
  .global-header,
  .stepper-nav,
  .fixed-bottom-bar,
  .dashboard-actions,
  .faq-modal-overlay,
  .amount-presets-wrapper,
  .dropdown-menu,
  .on-page-faq-section,
  .official-invisa-footer,
  .lead-magnet-card {
    display: none !important;
  }

  body {
    background-color: #ffffff !important;
    padding: 0 !important;
    font-size: 12pt;
    color: #000000;
  }

  .main-layout {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .wizard-container {
    width: 100% !important;
  }

  .wizard-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  /* Show only Step 3 in print mode */
  #step1View, #step2View {
    display: none !important;
  }

  #step3View {
    display: block !important;
  }

  .savings-banner {
    background: #0f172a !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    margin-bottom: 16pt;
  }

  .provider-stat-card {
    border: 1pt solid #cbd5e1 !important;
    break-inside: avoid;
  }

  .audit-table th, 
  .audit-table td {
    padding: 6pt 8pt !important;
  }

  .audit-table {
    border: 1pt solid #cbd5e1 !important;
  }
}
