/* ============================================================
   What's Next For You — Global Stylesheet
   Trust & Growth Design: Deep Blue / Sage Green / Light Gray / Orange CTAs
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&display=swap');

/* ---- CSS Variables ---- */
:root {
  /* Backgrounds */
  --bg: #F9F5EF;
  --bg-card: #FFFFFF;
  --bg-muted: #EDE7DC;
  /* Deep Blue — primary branding, selections, focus, UI chrome */
  --primary: #1B4089;
  --primary-hover: #153270;
  --primary-light: #EBF0FA;
  --primary-border: #A8C0E0;
  /* Sage Green — secondary / growth / action */
  --secondary: #5C8A6A;
  --secondary-hover: #4A7257;
  --secondary-light: #EAF2EC;
  /* Orange — CTA buttons only */
  --cta: #E8711A;
  --cta-hover: #CE5F0F;
  --cta-light: #FEF0E4;
  --cta-border: #F0BC96;
  /* Text */
  --text: #1A2535;
  --text-muted: #576070;
  --text-light: #8D99A8;
  /* Borders & Focus */
  --border: #CDD3DC;
  --border-focus: #1B4089;
  /* Status */
  --success: #4A9464;
  --success-light: #E8F4EC;
  --error: #CC4040;
  --error-light: #FAEAEA;
  --warning: #D9900A;
  --warning-light: #FEF5E0;
  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(26, 37, 53, 0.07);
  --shadow-md: 0 4px 16px rgba(26, 37, 53, 0.10);
  --shadow-lg: 0 8px 32px rgba(26, 37, 53, 0.13);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --font: 'Nunito', system-ui, -apple-system, sans-serif;
  --transition: 0.18s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.1rem; }
p { color: var(--text-muted); line-height: 1.7; }
.text-muted { color: var(--text-muted); }
.text-small { font-size: 0.85rem; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* ---- Layout ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: 860px; margin: 0 auto; padding: 0 1.25rem; }
.container--wide { max-width: 1300px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.page-content { padding: 2.5rem 0 4rem; }

/* ---- Flex / Grid Utilities ---- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Spacing Utilities ---- */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ---- Header / Nav ---- */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0;
  pointer-events: none;
  user-select: none;
}
.site-logo span.logo-next { color: var(--primary); }
.site-logo span.logo-season { color: var(--secondary); }
.site-logo a { pointer-events: auto; text-decoration: none; display: flex; align-items: center; gap: 0; color: inherit; }
.site-logo a:hover { color: inherit; }
.site-nav { display: flex; align-items: center; gap: 1rem; }
.nav-link { font-weight: 600; color: var(--text-muted); transition: color var(--transition); }
.nav-link:hover { color: var(--primary); }
.nav-user { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--cta); color: #fff; border-color: var(--cta); }
.btn--primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); color: #fff; box-shadow: 0 4px 12px rgba(232, 113, 26, 0.35); }
.btn--secondary { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.btn--secondary:hover { background: var(--secondary-hover); border-color: var(--secondary-hover); color: #fff; }
.btn--outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary-light); }
.btn--ghost { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn--ghost:hover { background: var(--bg-muted); color: var(--text); }
.btn--danger { background: var(--error); color: #fff; border-color: var(--error); }
.btn--sm { font-size: 0.82rem; padding: 0.4rem 0.9rem; }
.btn--lg { font-size: 1.05rem; padding: 0.85rem 2rem; }
.btn--full { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.btn--loading { pointer-events: none; opacity: 0.75; }

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card--flat { box-shadow: none; }
.card--highlight { border-color: var(--primary-border); background: var(--primary-light); }
.card--secondary { border-color: var(--secondary); background: var(--secondary-light); }
.card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--text); }
.card-body { color: var(--text-muted); font-size: 0.95rem; }

/* ---- Form Elements ---- */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.form-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.form-hint { font-size: 0.8rem; color: var(--text-muted); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(27, 64, 137, 0.15);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-light); }
.form-textarea { resize: vertical; min-height: 90px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23576070' 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 0.75rem center; padding-right: 2.5rem; cursor: pointer; }
.form-input.error, .form-select.error, .form-textarea.error { border-color: var(--error); }
.form-error { font-size: 0.8rem; color: var(--error); font-weight: 600; }

/* ---- Radio & Checkbox Groups ---- */
.radio-group, .check-group { display: flex; flex-direction: column; gap: 0.6rem; }
.radio-group.inline, .check-group.inline { flex-direction: row; flex-wrap: wrap; gap: 0.6rem; }
.radio-option, .check-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text);
  user-select: none;
}
.radio-option:hover, .check-option:hover { border-color: var(--primary); background: var(--primary-light); }
.radio-option input, .check-option input { display: none; }
.radio-option.selected, .check-option.selected { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.radio-dot, .check-dot {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  transition: border-color var(--transition), background var(--transition);
}
.radio-option.selected .radio-dot { border-color: var(--primary); background: var(--primary); }
.radio-option.selected .radio-dot::after { content: ''; display: block; width: 6px; height: 6px; background: #fff; border-radius: 50%; }
.check-dot { border-radius: var(--radius-sm); }
.check-option.selected .check-dot { border-color: var(--primary); background: var(--primary); }
.check-option.selected .check-dot::after { content: '✓'; color: #fff; font-size: 11px; font-weight: 800; }

/* ---- Range Slider ---- */
.slider-group { display: flex; flex-direction: column; gap: 0.85rem; }
.slider-row { display: flex; align-items: center; gap: 1rem; }
.slider-label { min-width: 160px; font-size: 0.9rem; font-weight: 600; color: var(--text); }
.slider-input { flex: 1; height: 6px; border-radius: 3px; accent-color: var(--primary); cursor: pointer; }
.slider-value { min-width: 60px; text-align: right; font-size: 0.85rem; font-weight: 700; color: var(--primary); }

/* ---- Tag Input ---- */
.tag-input-wrapper {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-height: 48px;
  align-items: flex-start;
  cursor: text;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.tag-input-wrapper:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(27, 64, 137, 0.15);
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.tag-chip--secondary { background: var(--secondary-light); color: var(--secondary); border-color: var(--secondary); }
.tag-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  opacity: 0.6;
  transition: opacity var(--transition);
}
.tag-remove:hover { opacity: 1; }
.tag-text-input {
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  background: transparent;
  flex: 1;
  min-width: 100px;
  padding: 0.15rem 0.25rem;
}
.tag-text-input::placeholder { color: var(--text-light); }

/* ---- Tag Suggestions Tray ---- */
.tag-input-container { position: relative; }
.tag-suggestions-tray {
  display: none;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.4rem;
  padding: 0.45rem 0.6rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
}
.tag-input-container.focused .tag-suggestions-tray { display: flex; }
.tag-suggestion-chip {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.18rem 0.65rem;
  font-size: 0.79rem;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
  line-height: 1.5;
}
.tag-suggestion-chip:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-border);
}
.tag-suggestions-tray:empty { display: none !important; }

/* ---- Step Progress ---- */
.step-progress {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  gap: 0;
  margin-bottom: 2.5rem;
  padding-bottom: 0.25rem;
}
.step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  position: relative;
  cursor: pointer;
}
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 17px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.step-item.done:not(:last-child)::after { background: var(--primary); }
.step-number {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
  position: relative;
  transition: all var(--transition);
}
.step-item.active .step-number { border-color: var(--primary); background: var(--primary); color: #fff; }
.step-item.done .step-number { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.step-item.done .step-number::after { content: '✓'; font-size: 0.9rem; font-weight: 800; }
.step-item.done .step-number span { display: none; }
.step-label { font-size: 0.68rem; font-weight: 700; color: var(--text-muted); text-align: center; max-width: 60px; line-height: 1.2; }
.step-item.active .step-label { color: var(--primary); }
/* step-spacer kept for legacy but hidden — connectors handled by ::after */
.step-spacer { display: none; }

/* ---- Progress Bar ---- */
.progress-bar-track {
  height: 10px;
  background: var(--bg-muted);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}
.progress-bar-fill--secondary { background: linear-gradient(90deg, var(--secondary), var(--secondary-light)); }
.progress-label { display: flex; justify-content: space-between; margin-bottom: 0.4rem; }
.progress-label span { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); }
.progress-label .progress-pct { color: var(--primary); }

/* ---- Dimension Score Bar ---- */
.dimension-bar {
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.dimension-label { font-size: 0.85rem; font-weight: 800; }
.dimension-label--left { text-align: right; color: var(--secondary); }
.dimension-label--right { color: var(--primary); }
.dimension-track {
  height: 14px;
  background: var(--secondary-light);
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
}
.dimension-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

/* ---- Badge ---- */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.badge--primary { background: var(--primary-light); color: var(--primary); border: 1px solid var(--primary-border); }
.badge--secondary { background: var(--secondary-light); color: var(--secondary); }
.badge--success { background: var(--success-light); color: var(--success); }
.badge--warning { background: var(--warning-light); color: #B8860B; }

/* ---- MBTI Type Badge ---- */
.mbti-badge-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: var(--radius-lg);
  background: var(--primary);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-md);
}

/* ---- Alerts ---- */
.alert {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1.5px solid;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.alert--success { background: var(--success-light); border-color: var(--success); color: #2d6a4a; }
.alert--error { background: var(--error-light); border-color: var(--error); color: #8b1a1a; }
.alert--warning { background: var(--warning-light); border-color: var(--warning); color: #7a5700; }
.alert--info { background: var(--secondary-light); border-color: var(--secondary); color: #1a5550; }

/* ---- Repeating Field Group ---- */
.repeat-group { display: flex; flex-direction: column; gap: 1rem; }
.repeat-entry {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  background: var(--bg-muted);
  position: relative;
}
.repeat-entry-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.repeat-entry-title { font-size: 0.85rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.add-entry-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0.4rem 0;
  transition: color var(--transition);
}
.add-entry-btn:hover { color: var(--secondary-hover); }

/* ---- Tabs ---- */
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; }
.tab-btn {
  padding: 0.65rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  border: none;
  background: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-btn:hover:not(.active) { color: var(--text); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---- Hero Section ---- */
.hero {
  background: #F9F5EF;
  padding: 5rem 0 4rem;
  text-align: center;
}
.hero-eyebrow { font-size: 0.85rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--secondary); margin-bottom: 1rem; }
.hero h1 { margin-bottom: 1rem; }
.hero p { font-size: 1.1rem; max-width: 540px; margin: 0 auto 2rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- Feature Grid ---- */
.feature-icon {
  width: 52px; height: 52px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
}

/* ---- How It Works ---- */
.step-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 12px rgba(27, 64, 137, 0.3);
}

/* ---- Dashboard Widgets ---- */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}
.stat-icon { font-size: 1.8rem; }
.stat-value { font-size: 1.7rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }

/* ---- Quick action cards ---- */
.action-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.action-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.action-card .action-icon { font-size: 1.75rem; }
.action-card h3 { font-size: 0.88rem; color: var(--text); margin: 0; }
.action-card p { font-size: 0.78rem; margin: 0; }

/* ---- Wizard Navigation ---- */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}
.wizard-nav-left, .wizard-nav-right { display: flex; gap: 0.75rem; }
.autosave-note { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; display: flex; align-items: center; gap: 0.3rem; }

/* ---- MBTI Question Card ---- */
.mbti-question {
  text-align: center;
  margin-bottom: 2rem;
}
.mbti-question-number { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.75rem; }
.mbti-question-text { font-size: 1.15rem; font-weight: 600; color: var(--text); margin-bottom: 1.75rem; }
.mbti-options { display: flex; flex-direction: column; gap: 0.85rem; max-width: 560px; margin: 0 auto; }
.mbti-option {
  padding: 1rem 1.4rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-card);
  text-align: left;
  transition: all var(--transition);
}
.mbti-option:hover { border-color: var(--primary); background: var(--primary-light); }
.mbti-option.selected { border-color: var(--primary); background: var(--primary); color: #fff; }

/* ---- Career Result Card ---- */
.career-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  transition: box-shadow var(--transition);
}
.career-card:hover { box-shadow: var(--shadow-md); }
.career-card-rank { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.4rem; }
.career-card-title { font-size: 1.2rem; font-weight: 800; color: var(--text); margin-bottom: 0.6rem; }
.career-card-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.85rem; }
.career-card-why { font-size: 0.88rem; font-style: italic; color: var(--secondary); margin-bottom: 0.85rem; }
.career-card-faith { font-size: 0.82rem; color: var(--text-muted); background: var(--bg-muted); border-radius: var(--radius-sm); padding: 0.45rem 0.75rem; margin-bottom: 0.85rem; font-style: italic; border-left: 3px solid var(--border); }
.career-examples { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.career-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ---- Schools Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 37, 53, 0.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.6rem 1rem;
  border-bottom: 1px solid var(--border);
}
.modal-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary);
  margin-bottom: 0.2rem;
}
.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}
.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-light);
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: color var(--transition), background var(--transition);
}
.modal-close:hover { color: var(--text); background: var(--bg-muted); }
.modal-body {
  overflow-y: auto;
  padding: 1.25rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.modal-loading { padding: 1rem 0; }
.school-entry {
  display: flex;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.school-entry:last-child { border-bottom: none; }
.school-rank {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  min-width: 28px;
  padding-top: 0.15rem;
}
.school-info { flex: 1; }
.school-name { font-size: 0.97rem; font-weight: 800; color: var(--text); margin-bottom: 0.15rem; }
.school-meta { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.45rem; }
.school-programs { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.45rem; }
.school-why { font-size: 0.82rem; color: var(--text-muted); font-style: italic; }

/* ---- Loading Spinner ---- */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-state { text-align: center; padding: 3rem; }
.loading-state p { margin-top: 1rem; font-size: 0.95rem; font-weight: 600; color: var(--text-muted); }

/* ---- Divider ---- */
.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.divider-text { text-align: center; position: relative; margin: 1.5rem 0; }
.divider-text::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.divider-text span { position: relative; background: var(--bg-card); padding: 0 0.75rem; font-size: 0.8rem; color: var(--text-muted); font-weight: 700; }

/* ---- Footer ---- */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}
.site-footer p { font-size: 0.85rem; color: var(--text-muted); }
.site-footer .dedication { margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.84rem; opacity: 0.85; font-style: italic; max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.7; }

/* ---- Auth Card ---- */
.auth-wrap { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-card { width: 100%; max-width: 440px; }

/* ---- Strength List ---- */
.strength-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.strength-tag {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--success-light); color: var(--success);
  border-radius: var(--radius-full); padding: 0.3rem 0.9rem;
  font-size: 0.85rem; font-weight: 700;
}
.consideration-tag {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--warning-light); color: #8a6000;
  border-radius: var(--radius-full); padding: 0.3rem 0.9rem;
  font-size: 0.85rem; font-weight: 700;
}

/* ---- Section Heading ---- */
.section-heading { margin-bottom: 1.75rem; }
.section-heading h2 { margin-bottom: 0.3rem; }
.section-heading p { font-size: 1rem; }

/* ---- Responsive ---- */

/* Tablet / Large Mobile — 768px */
@media (max-width: 768px) {
  .section { padding: 2.75rem 0; }
  .page-content { padding: 1.75rem 0 3rem; }
  .hero { padding: 3.25rem 0 2.5rem; }
  .hero p { font-size: 1rem; }
  /* Step progress: scrollable when many steps */
  .step-progress {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.75rem;
    scrollbar-width: none;
  }
  .step-progress::-webkit-scrollbar { display: none; }
  .step-item { min-width: 52px; }
  .step-label { font-size: 0.62rem; max-width: 52px; }
}

/* Mobile — 600px */
@media (max-width: 600px) {
  .section { padding: 2rem 0; }
  .page-content { padding: 1.25rem 0 2.5rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .hero-eyebrow { font-size: 0.78rem; }
  .hero p { font-size: 0.97rem; max-width: 100%; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 340px; }
  .site-nav .nav-link { display: none; }
  .btn--lg { padding: 0.75rem 1.4rem; font-size: 0.97rem; }
  .card { padding: 1.25rem; }
  .dimension-bar { grid-template-columns: 55px 1fr 55px; }
  .slider-row { flex-wrap: wrap; gap: 0.4rem; }
  .slider-label { min-width: 100%; width: 100%; }
  .slider-value { font-size: 0.82rem; }
  .wizard-nav { flex-direction: column; align-items: stretch; }
  .wizard-nav-left, .wizard-nav-right { justify-content: space-between; }
  .stat-card { padding: 1rem 1.1rem; }
  .stat-value { font-size: 1.4rem; }
}

/* Narrow Mobile — 480px */
@media (max-width: 480px) {
  .site-nav .btn--sm { font-size: 0.78rem; padding: 0.35rem 0.7rem; }
  .tabs { overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab-btn { flex-shrink: 0; }
  .container { padding: 0 1rem; }
  .container--narrow { padding: 0 1rem; }
  .grid-5 { grid-template-columns: 1fr; }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .site-header, .site-footer, .btn, .no-print { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .container, .container--narrow, .container--wide { max-width: 100%; padding: 0; }
  h1 { font-size: 20pt; } h2 { font-size: 15pt; } h3 { font-size: 12pt; }
  .career-card { break-inside: avoid; margin-bottom: 1rem; }
  a { color: #000; }
  .page-content { padding: 0; }
}
