/* ==========================================================================
   Degree Goals — modern design system
   ========================================================================== */

:root {
  /* Brand — true blue */
  --brand-50:  #eaf2fe;
  --brand-100: #d3e4fd;
  --brand-200: #aecefb;
  --brand-400: #4f97f2;
  --brand-500: #2274e0;
  --brand-600: #1a5fc4;
  --brand-700: #164da0;

  /* Action accent — unified with the brand blue (no orange) */
  --accent-50:  #eaf2fe;
  --accent-100: #d3e4fd;
  --accent-400: #4f97f2;
  --accent-500: #2274e0;
  --accent-600: #1a5fc4;
  --gold: #f2b100;
  --success: #2fa36b;

  /* Neutrals (light theme) — clean & airy like the original */
  --bg:        #ffffff;
  --bg-soft:   #f7f8f6;
  --surface:   #ffffff;
  --surface-2: #f3f5f9;
  --border:    #e7e9ef;
  --text:      #333333;
  --text-soft: #717171;
  --text-mute: #9a9ba5;

  /* Effects */
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --ring: 0 0 0 4px var(--brand-100);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --maxw: 1180px;
  --nav-h: 78px;

  /* Flat solids — no gradients */
  --grad-brand: #2274e0;   /* brand blue */
  --grad-cta:   #2274e0;   /* action (blue) */
  --grad-soft:  #eef2fb;   /* light blue-gray tint */
  --sky:        #d8e9f5;   /* flat sky blue */

  --font-sans: "Titillium Web", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Assistant", var(--font-sans);
}

:root[data-theme="dark"] {
  --bg:        #0e1017;
  --bg-soft:   #141721;
  --surface:   #191d29;
  --surface-2: #212636;
  --border:    #2c3346;
  --text:      #eef0f7;
  --text-soft: #bcc2d4;
  --text-mute: #8a90a4;
  --brand-50:  #1a2140;
  --brand-100: #232c50;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --ring: 0 0 0 4px rgba(34,116,224,.28);
  --grad-soft: #141721;
  --sky: #16202f;
}

/* -------------------------------------------------------------------------- */
/* Base                                                                       */
/* -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; color: var(--text-soft); }
a { color: var(--brand-600); text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

section { padding: 84px 0; }
.section-sm { padding: 56px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans);
  font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-600);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 20px;
}
:root[data-theme="dark"] .eyebrow { background: var(--surface-2); color: var(--brand-400); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: 1.14rem; color: var(--text-soft); }
.text-grad { color: var(--accent-500); }

/* -------------------------------------------------------------------------- */
/* Buttons                                                                     */
/* -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-sans); font-weight: 700; font-size: .98rem; letter-spacing: .01em;
  padding: 13px 26px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
/* Primary CTA = orange, like the original theme buttons */
.btn-primary { background: var(--accent-500); color: #fff; }
.btn-primary:hover { background: var(--accent-600); transform: translateY(-2px); }
.btn-gradient { background: var(--grad-cta); color: #fff; }
.btn-gradient:hover { background: var(--brand-600); transform: translateY(-2px); }
/* Blue (brand) secondary solid button */
.btn-brand { background: var(--brand-500); color: #fff; }
.btn-brand:hover { background: var(--brand-600); transform: translateY(-2px); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--brand-400); color: var(--brand-600); transform: translateY(-2px); }
.btn-light { background: #ffffff; color: var(--accent-600); border-color: #ffffff; }
.btn-light:hover { background: #fff; transform: translateY(-2px); }
.btn-light:hover { background: rgba(255,255,255,.24); }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* -------------------------------------------------------------------------- */
/* Navbar                                                                       */
/* -------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.nav.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; gap: 20px; height: 100%; }
.brand { display: inline-flex; flex-direction: column; justify-content: center; gap: 2px; line-height: 1; }
.brand-logo { height: 42px; width: auto; display: block; color: #333; }
:root[data-theme="dark"] .brand-logo { color: #eef0f7; }
.brand-tag { font-family: var(--font-display); font-weight: 700; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-500); text-align: center; }
/* legacy brand-mark (footer) */
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; background: var(--grad-brand);
  display: grid; place-items: center; color: #fff; font-size: 1.15rem; font-weight: 800;
}
.footer .brand { flex-direction: row; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 1.22rem; color: var(--text); }
.footer .brand span b { color: var(--brand-600); }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav-links a {
  color: var(--text-soft); font-weight: 500; font-size: .95rem;
  padding: 9px 14px; border-radius: 10px; position: relative;
  transition: color .18s, background .18s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--brand-600); }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Dropdown */
.has-drop { position: relative; }
.drop-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.has-drop:hover .drop-menu, .has-drop:focus-within .drop-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.drop-menu a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 11px; color: var(--text-soft); font-size: .93rem; }
.drop-menu a:hover { background: var(--surface-2); color: var(--text); }
.drop-menu .di { font-size: 1.15rem; width: 22px; text-align: center; }
.drop-menu small { display: block; color: var(--text-mute); font-weight: 400; font-size: .78rem; }

.theme-toggle {
  width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; font-size: 1.1rem;
  display: grid; place-items: center; transition: border-color .2s, transform .2s;
}
.theme-toggle:hover { border-color: var(--brand-400); transform: translateY(-2px); }

.nav-burger { display: none; width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; margin-inline: auto; position: relative; transition: .2s;
}
.nav-burger span::before { position: absolute; top: -6px; }
.nav-burger span::after { position: absolute; top: 6px; }

/* -------------------------------------------------------------------------- */
/* Hero — classic sky + skyscraper (matches the original)                       */
/* -------------------------------------------------------------------------- */
.hero-classic {
  position: relative; text-align: center;
  background: var(--sky) url("/images/hero-home.jpg") center center / cover no-repeat;
  border-bottom: 1px solid var(--border);
  padding: 92px 0;
  overflow: hidden;
}
.hero-classic > .container { position: relative; z-index: 1; }
.hero-classic h1 { text-shadow: 0 1px 6px rgba(255,255,255,.9); }
.hero-classic .lead { text-shadow: 0 1px 6px rgba(255,255,255,.95); }
.hero-classic .eyebrow { background: #fff; border-color: var(--brand-200); }
.hero-classic h1 {
  font-size: clamp(2.3rem, 5.4vw, 4rem); letter-spacing: .01em; color: var(--text);
  margin: 8px auto 16px; text-shadow: 0 2px 18px rgba(255,255,255,.6);
}
.hero-classic .lead { max-width: 46ch; margin: 0 auto 26px; color: var(--text-soft); font-size: 1.15rem; }
/* Hero goal chooser */
.goal-chooser {
  max-width: 720px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 24px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 16px; align-items: center;
}
.goal-line {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 10px; font-size: 1.12rem; color: var(--text-soft);
}
.goal-txt { font-family: var(--font-display); font-weight: 600; color: var(--text); }
.goal-break { flex-basis: 100%; height: 0; }
.goal-select {
  appearance: none; font-family: var(--font-sans); font-weight: 700; font-size: 1rem;
  text-transform: lowercase;
  color: var(--brand-600); background-color: var(--surface);
  border: 1.5px solid var(--brand-200); border-radius: var(--radius-sm);
  padding: 9px 34px 9px 14px; cursor: pointer; transition: border-color .15s, box-shadow .15s, background-color .15s;
  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='%232274e0' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.goal-select:hover { border-color: var(--brand-400); background-color: var(--brand-50); }
.goal-select:focus { outline: none; border-color: var(--brand-500); box-shadow: var(--ring); }
.goal-go { width: 100%; max-width: 320px; }
.goal-popular {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
  max-width: 720px; margin: 18px auto 0; font-size: .92rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 18px;
}
.goal-popular > span { font-weight: 700; color: var(--text); }
.goal-chip {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 14px; font-weight: 600; font-size: .9rem; color: var(--text);
  transition: border-color .15s, color .15s, background .15s, transform .15s;
}
.goal-chip:hover { border-color: var(--brand-400); color: var(--brand-600); transform: translateY(-2px); }
@media (max-width: 560px) {
  .hero-classic { padding: 48px 0; }
  .goal-line { font-size: 1rem; }
  .goal-chooser { padding: 18px 16px; }
}

/* -------------------------------------------------------------------------- */
/* Our Story                                                                    */
/* -------------------------------------------------------------------------- */
.story-media { display: grid; place-items: center; }
.story-media img { max-width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(40,44,80,.18)); }
.section-alt { background: var(--bg-soft); }

/* -------------------------------------------------------------------------- */
/* Online and Campus + partner logos + ribbon                                   */
/* -------------------------------------------------------------------------- */
.partner-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px;
  margin-bottom: 44px;
}
.partner {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 22px; display: grid; place-items: center;
  flex: 1 1 175px; max-width: 220px; height: 100px; transition: transform .2s, border-color .2s;
}
.partner:hover { transform: translateY(-3px); border-color: var(--brand-200); }
/* real school logos shown in natural color */
.partner img { max-height: 50px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
@media (max-width: 560px) { .partner { flex-basis: 40%; } }

.ribbon {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--brand-500) url("/images/cta-bg.jpg") center center / cover no-repeat; color: #fff;
  border-radius: var(--radius-xl); padding: 40px 44px;
}
.ribbon::before { content: ""; position: absolute; inset: 0; background: rgba(23, 63, 138, .80); }
.ribbon > * { position: relative; z-index: 1; }
.ribbon h3 { color: #fff; margin-bottom: 4px; }
.ribbon p { color: rgba(255,255,255,.92); margin: 0; }

/* -------------------------------------------------------------------------- */
/* Find a School — compact filters + logo result cards                          */
/* -------------------------------------------------------------------------- */
.filter-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 22px;
}
.filter-group { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.filter-label { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-mute); margin-right: 4px; }
.filter-divider { width: 1px; align-self: stretch; background: var(--border); }
.chip-sm { padding: 6px 13px; font-size: .84rem; border-radius: 8px; }

.results-filters {
  display: flex; flex-wrap: wrap; gap: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 22px;
}
.rf { display: flex; flex-direction: column; gap: 6px; flex: 1 1 200px; min-width: 165px; }
.rf label { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-mute); }
.rf .control { padding: 11px 40px 11px 14px; }
.school-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.school-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 20px; color: var(--text); transition: transform .18s, border-color .18s;
}
.school-card:hover { transform: translateY(-4px); border-color: var(--brand-400); }
.school-logo { height: 60px; display: grid; place-items: center; margin-bottom: 16px; }
.school-logo img { max-height: 52px; max-width: 170px; object-fit: contain; }
.logo-tile { width: 56px; height: 56px; border-radius: 14px; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; display: grid; place-items: center; }
.school-card h3 { font-size: 1.05rem; margin: 0 0 6px; }
.school-card .scard-loc { justify-content: center; }
.school-card .dcard-meta { justify-content: center; margin-top: 14px; }

/* School detail hero */
.school-hero { display: flex; align-items: center; gap: 22px; margin-top: 4px; }
.school-hero-logo { flex: none; width: 118px; height: 92px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); display: grid; place-items: center; padding: 12px; }
.school-hero-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.school-hero h1 { margin: 4px 0 6px; }
.school-cta .school-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; text-align: center; }
.school-cta .school-stats b { font-family: var(--font-display); font-size: 1.2rem; display: block; color: var(--brand-600); }
.school-cta .school-stats span { font-size: .78rem; color: var(--text-mute); }

@media (max-width: 900px) { .school-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) {
  .school-grid { grid-template-columns: repeat(2, 1fr); }
  .school-hero { flex-direction: column; text-align: center; align-items: center; }
  .filter-divider { display: none; }
}

/* -------------------------------------------------------------------------- */
/* Latest news                                                                  */
/* -------------------------------------------------------------------------- */
.news { display: flex; flex-direction: column; }
.news-date {
  align-self: flex-start; background: var(--brand-50); color: var(--brand-600);
  font-weight: 700; font-size: .82rem; padding: 6px 12px; border-radius: 8px; margin-bottom: 14px;
}
.news h3 { margin: 6px 0 8px; }
.news-link { margin-top: auto; font-weight: 700; color: var(--accent-500); }
.news-link:hover { color: var(--accent-600); }
.center { text-align: center; }

/* -------------------------------------------------------------------------- */
/* Hero (legacy two-column, kept for other pages)                               */
/* -------------------------------------------------------------------------- */
.hero { position: relative; padding: 96px 0 84px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--grad-soft);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 10px; }
.hero-sub { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--text); margin: 0 0 18px; letter-spacing: -.01em; }
.hero .lead { font-size: 1.15rem; max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.hero-trust { display: flex; align-items: center; gap: 18px; color: var(--text-mute); font-size: .9rem; }
.avatars { display: flex; }
.avatars span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -10px; background: var(--grad-brand); display: grid; place-items: center; color: #fff; font-size: .72rem; font-weight: 700; }
.avatars span:first-child { margin-left: 0; }
.stars { color: var(--gold); letter-spacing: 2px; }

/* Hero search card */
.hero-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 26px;
}
.hero-card h3 { margin-bottom: 4px; }
.hero-card .muted { font-size: .9rem; color: var(--text-mute); margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-soft); margin-bottom: 6px; }
.control {
  width: 100%; padding: 12px 14px; font-size: .96rem; font-family: inherit;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; color: var(--text);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.control:focus { outline: none; border-color: var(--brand-400); box-shadow: var(--ring); background: var(--surface); }
select.control { 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='%23767b93' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

/* Inline SVG icons */
.dg-ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; flex: none; }
.dcard-icon .dg-ico, .drop-menu .di .dg-ico, .contact-method .ii .dg-ico, .info-item .ii .dg-ico { color: var(--brand-600); }
.goal-chip .dg-ico { color: var(--brand-600); margin-right: 2px; }
.sources h3 .dg-ico, .inquiry-note .dg-ico { color: var(--brand-600); vertical-align: -0.15em; margin-right: 7px; }
.alert-success .dg-ico { vertical-align: -0.15em; margin-right: 6px; }

/* School request-info lead form */
.school-cta { position: sticky; top: 90px; }
.lead-form .lead-field { margin-bottom: 12px; }
.lead-form .lead-field label { display: block; font-size: .8rem; font-weight: 600; color: var(--text-soft); margin-bottom: 5px; }
.lead-form .lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-form .control { padding: 11px 14px; }
.lead-form select.control { padding-right: 40px; }
.lead-fine { font-size: .74rem; color: var(--text-mute); margin: 12px 0 0; line-height: 1.5; }
.lead-fine a { color: var(--brand-600); }
.form-error { background: #fdecec; border: 1px solid #f5c2c2; color: #a3282a; border-radius: 10px; padding: 10px 12px; font-size: .85rem; margin-bottom: 14px; }
.form-thanks { text-align: center; padding: 12px 4px; }
.form-thanks-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--brand-500); color: #fff; font-size: 1.6rem; display: grid; place-items: center; margin: 0 auto 14px; }
.form-thanks h3 { margin-bottom: 8px; }
.form-thanks p { font-size: .92rem; color: var(--text-soft); }
@media (max-width: 720px) { .school-cta { position: static; } }

.floaty { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-md); padding: 12px 16px; display: flex; align-items: center; gap: 12px; animation: float 5s ease-in-out infinite; }
.floaty .fi { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 1.2rem; }
.floaty b { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.floaty small { color: var(--text-mute); font-size: .78rem; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* -------------------------------------------------------------------------- */
/* Logos / trust strip                                                          */
/* -------------------------------------------------------------------------- */
.logos { padding: 40px 0; border-block: 1px solid var(--border); background: var(--bg-soft); }
.logos p { text-align: center; color: var(--text-mute); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; margin-bottom: 22px; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.logo-pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-weight: 600; color: var(--text-soft); box-shadow: var(--shadow-sm); }
.logo-dot { width: 10px; height: 10px; border-radius: 50%; }

/* -------------------------------------------------------------------------- */
/* Cards & grids                                                                */
/* -------------------------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-200); }

.feature-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: var(--brand-50); border: 1px solid var(--brand-100); margin-bottom: 18px; }
:root[data-theme="dark"] .feature-icon { background: var(--surface-2); }

/* Degree / school cards */
.dcard { display: flex; flex-direction: column; height: 100%; }
.dcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dcard-icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-size: 1.4rem; background: var(--grad-soft); border: 1px solid var(--border); }
.dcard h3 { font-size: 1.16rem; margin-bottom: 6px; }
.dcard .field-tag { font-size: .82rem; color: var(--brand-600); font-weight: 600; }
.dcard p { font-size: .92rem; margin: 10px 0 16px; }
.dcard-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); color: var(--text-soft); border: 1px solid var(--border); }
.badge-green { background: rgba(16,185,129,.12); color: var(--success); border-color: rgba(16,185,129,.25); }
.badge-brand { background: var(--brand-50); color: var(--brand-600); border-color: var(--brand-100); }
:root[data-theme="dark"] .badge-brand { background: var(--surface-2); color: var(--brand-400); }

.salary { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--text); }

/* School card */
.scard-logo { width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; }
.scard-loc { color: var(--text-mute); font-size: .88rem; display: flex; align-items: center; gap: 6px; }
.rating { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: .9rem; }

/* -------------------------------------------------------------------------- */
/* Stats                                                                        */
/* -------------------------------------------------------------------------- */
.stats { background: var(--grad-brand); color: #fff; border-radius: var(--radius-xl); padding: 48px; }
.stats .grid-4 { gap: 16px; }
.stat b { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; display: block; line-height: 1; }
.stat span { color: rgba(255,255,255,.82); font-size: .95rem; }

/* -------------------------------------------------------------------------- */
/* Steps                                                                        */
/* -------------------------------------------------------------------------- */
.step { position: relative; padding-left: 4px; }
.step-num { width: 46px; height: 46px; border-radius: 13px; background: var(--grad-brand); color: #fff; font-family: var(--font-display); font-weight: 800; display: grid; place-items: center; margin-bottom: 16px; }

/* -------------------------------------------------------------------------- */
/* CTA band                                                                     */
/* -------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; background: var(--brand-500) url("/images/cta-bg.jpg") center center / cover no-repeat; color: #fff; border-radius: var(--radius-xl); padding: 64px; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(23, 63, 138, .80); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,.9); position: relative; max-width: 52ch; margin-inline: auto; }
.cta-band .hero-cta { justify-content: center; position: relative; }

/* -------------------------------------------------------------------------- */
/* Filters / toolbar                                                            */
/* -------------------------------------------------------------------------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); margin-bottom: 28px; position: sticky; top: calc(var(--nav-h) + 12px); z-index: 20; }
.toolbar .grow { flex: 1 1 220px; }
.search-wrap { position: relative; flex: 1 1 260px; }
.search-wrap .control { padding-left: 42px; }
.search-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-mute); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-soft); font-size: .88rem; font-weight: 600; cursor: pointer; transition: .16s; }
.chip:hover { border-color: var(--brand-400); color: var(--brand-600); }
.chip.active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.result-count { color: var(--text-mute); font-size: .92rem; margin-bottom: 18px; }
.empty { text-align: center; padding: 60px 20px; color: var(--text-mute); }

/* -------------------------------------------------------------------------- */
/* Page header                                                                  */
/* -------------------------------------------------------------------------- */
.page-head { position: relative; padding: 40px 0 26px; overflow: hidden; }
.page-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad-soft); }
.page-head h1 { margin-bottom: 14px; }
.page-head .lead { max-width: 58ch; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .86rem; color: var(--text-mute); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-mute); }
.breadcrumb a:hover { color: var(--brand-600); }

/* -------------------------------------------------------------------------- */
/* Earnings explorer                                                            */
/* -------------------------------------------------------------------------- */
.explorer { display: grid; grid-template-columns: 1fr 1.15fr; gap: 30px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.slider-row { margin-bottom: 24px; }
.slider-row .lbl { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.slider-row .lbl b { font-family: var(--font-display); color: var(--brand-600); font-size: 1.05rem; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-600); border: 3px solid var(--surface); box-shadow: var(--shadow-md); cursor: pointer; transition: transform .12s; }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-600); border: 3px solid var(--surface); cursor: pointer; }
.result-hero { background: var(--grad-brand); color: #fff; border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-md); }
.result-hero .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; margin: 6px 0; }
.result-hero small { color: rgba(255,255,255,.85); }
.result-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.mini-stat { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); border-radius: 14px; padding: 14px; }
.mini-stat b { font-family: var(--font-display); font-size: 1.4rem; display: block; }
.mini-stat span { font-size: .82rem; color: rgba(255,255,255,.82); }
.bars { display: flex; align-items: flex-end; gap: 14px; height: 150px; margin-top: 18px; }
.bar { flex: 1; background: var(--grad-brand); border-radius: 10px 10px 4px 4px; position: relative; min-height: 8px; transition: height .5s cubic-bezier(.2,.8,.2,1); }
.bar span { position: absolute; top: -22px; left: 0; right: 0; text-align: center; font-size: .78rem; font-weight: 700; color: var(--text); }
.bar small { position: absolute; bottom: -24px; left: 0; right: 0; text-align: center; font-size: .74rem; color: var(--text-mute); }

/* -------------------------------------------------------------------------- */
/* Feature list / checks                                                        */
/* -------------------------------------------------------------------------- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-soft); }
.checks .ci { flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(16,185,129,.14); color: var(--success); display: grid; place-items: center; font-size: .78rem; font-weight: 800; margin-top: 2px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* Testimonials */
.quote { font-size: 1.02rem; color: var(--text); font-style: italic; }
.quote-author { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote-author .qa { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.quote-author b { display: block; font-family: var(--font-display); }
.quote-author small { color: var(--text-mute); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.info-item .ii { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-50); border: 1px solid var(--brand-100); display: grid; place-items: center; font-size: 1.2rem; flex: none; }
:root[data-theme="dark"] .info-item .ii { background: var(--surface-2); }
.info-item b { display: block; font-family: var(--font-display); }
.info-item span { color: var(--text-soft); font-size: .94rem; }
.alert-success { background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.3); color: var(--success); padding: 14px 18px; border-radius: 12px; font-weight: 600; margin-bottom: 20px; }
.field-error { color: #e5484d; font-size: .82rem; }
.inquiry-note { background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-700); border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; font-size: .92rem; }
.contact-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-method { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 20px; }
.contact-method .ii { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-50); border: 1px solid var(--brand-100); display: grid; place-items: center; font-size: 1.3rem; margin: 0 auto 12px; }
.contact-method b { display: block; font-family: var(--font-display); margin-bottom: 4px; }
.contact-method a, .contact-method span { color: var(--text-soft); font-size: .94rem; }
.contact-method a:hover { color: var(--brand-600); }
@media (max-width: 680px) { .contact-methods { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------- */
/* Footer                                                                       */
/* -------------------------------------------------------------------------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 64px 0 28px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-family: var(--font-sans); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--text-soft); font-size: .94rem; }
.footer ul a:hover { color: var(--brand-600); }
.footer .brand { margin-bottom: 12px; }
.footer-tag { font-family: var(--font-display); font-weight: 700; color: var(--brand-500); font-size: 1.05rem; margin: 0 0 8px; }
.footer-about { color: var(--text-mute); font-size: .92rem; max-width: 34ch; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-mute); font-size: .88rem; }
.footer-legal { display: inline-flex; gap: 20px; }
.footer-legal a { color: var(--text-mute); }
.footer-legal a:hover { color: var(--brand-600); }

/* Data sources block (tool pages) */
.sources h3 { margin-bottom: 6px; }
.sources > p { font-size: .95rem; margin-bottom: 16px; max-width: 70ch; }
.table-wrap { overflow-x: auto; }
.source-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.source-table th, .source-table td { text-align: left; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.source-table th { font-weight: 700; color: var(--text); }
.source-table td { color: var(--text-soft); }
.source-table tbody tr:last-child td { border-bottom: none; }
.source-table td a { color: var(--brand-600); }
.source-table td a:hover { color: var(--brand-700); text-decoration: underline; }

/* Legal / long-form content */
.legal h2 { font-size: 1.25rem; margin: 28px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal ul { margin: 0 0 6px; padding-left: 22px; }
.legal li { color: var(--text-soft); margin-bottom: 8px; }
.legal p { color: var(--text-soft); }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-soft); }
.socials a:hover { border-color: var(--brand-400); color: var(--brand-600); }

/* -------------------------------------------------------------------------- */
/* Reveal on scroll                                                             */
/* -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* -------------------------------------------------------------------------- */
/* Responsive                                                                   */
/* -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero .lead { max-width: none; }
  .explorer { grid-template-columns: 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 820px) {
  .nav-links, .nav-actions .desk { display: none; }
  .nav-burger { display: grid; place-items: center; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg-soft); border-bottom: 1px solid var(--border);
    padding: 14px 24px 20px; box-shadow: var(--shadow-md); margin: 0;
  }
  .nav.open .has-drop .drop-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 4px 0 4px 12px; }
}

@media (max-width: 680px) {
  section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4, .result-split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats, .cta-band { padding: 36px 24px; }
  .toolbar { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Funnel — dedicated matching flow (/search). Built on the same
   DegreeGoals tokens as the rest of the site so it reads as one
   product, with a focused, conversion-first chrome of its own.
   ============================================================ */
.funnel-body { background: var(--bg-soft); }
.funnel-shell { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 20px; }
.funnel-wide { max-width: 900px; }

/* Slim brand bar (no site nav — keeps the flow distraction-free) */
.funnel-topbar { background: var(--surface); border-bottom: 1px solid var(--border); }
.funnel-topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.funnel-topbar .brand { display: inline-flex; align-items: center; }
.funnel-topbar .brand-logo { height: 30px; width: auto; color: var(--text); }
.funnel-trust { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600; color: var(--text-soft); }
.funnel-trust .dg-ico { color: var(--success); font-size: 1.05rem; }
@media (max-width: 560px) { .funnel-trust span { display: none; } }

.funnel-main { padding: 0 0 48px; }
.funnel-foot { border-top: 1px solid var(--border); background: var(--surface); }
.funnel-foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; font-size: .82rem; color: var(--text-mute); flex-wrap: wrap; }
.funnel-foot-links { display: inline-flex; gap: 18px; }
.funnel-foot-links a { color: var(--text-soft); }
.funnel-foot-links a:hover { color: var(--brand-600); }

/* Segmented stepper — distinct from a plain progress bar */
.funnel-progress { padding: 26px 0 4px; }
.funnel-steps { display: flex; align-items: center; gap: 8px; }
.funnel-seg { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.funnel-seg > i { display: block; height: 100%; width: 0; background: var(--brand-500); border-radius: 999px; transition: width .45s ease; }
.funnel-seg.done > i { width: 100%; }
.funnel-seg.current > i { width: 100%; }
.funnel-progress-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.funnel-progress-meta .lbl { font-family: var(--font-display); font-weight: 700; color: var(--text); font-size: .95rem; }
.funnel-progress-meta .pct { font-size: .85rem; color: var(--text-mute); font-weight: 600; }

/* School-arrival banner */
.funnel-banner { background: var(--brand-500); color: #fff; }
.funnel-banner-inner { display: flex; align-items: center; gap: 18px; padding: 22px 0; }
.funnel-banner .logo-plate { background: #fff; border-radius: 12px; width: 128px; height: 66px; flex: none; display: grid; place-items: center; padding: 8px; overflow: hidden; }
.funnel-banner .logo-plate img { max-width: 100%; max-height: 100%; object-fit: contain; }
.funnel-banner .logo-plate span { color: var(--brand-600); font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.funnel-banner .eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-100); }
.funnel-banner h1 { color: #fff; font-size: 1.5rem; margin: 4px 0 4px; }
.funnel-banner p { color: rgba(255,255,255,.85); font-size: .92rem; max-width: 46ch; }
@media (max-width: 560px) { .funnel-banner-inner { flex-direction: column; text-align: center; } }

/* Question step */
.funnel-step { display: none; }
.funnel-step.active { display: block; animation: fSlide .34s ease-out; }
.funnel-step.back { animation: fBack .34s ease-out; }
@keyframes fSlide { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes fBack { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.funnel-q { text-align: center; margin: 30px 0 22px; }
.funnel-q h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
.funnel-q p { color: var(--text-soft); margin-top: 8px; }
.funnel-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.funnel-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 26px; }
.funnel-nav .spacer { flex: 1; }

/* FieldsRenderer output (Bootstrap grid + form-control) restyled to dg-site.
   Scoped to .funnel-fields so it never leaks to other pages. */
.funnel-fields .row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 18px; }
.funnel-fields .form-group { grid-column: 1 / -1; margin-bottom: 16px; }
.funnel-fields .row:last-child .form-group:last-child { margin-bottom: 0; }
.funnel-fields .form-group[class*="col-md-"] { grid-column: 1 / -1; }
.funnel-fields .form-group.col-md-6 { grid-column: span 6; }
.funnel-fields .form-group.col-md-4 { grid-column: span 4; }
.funnel-fields .form-group.col-md-8 { grid-column: span 8; }
.funnel-fields .form-group.col-md-3 { grid-column: span 3; }
@media (max-width: 640px) { .funnel-fields .form-group[class*="col-md-"] { grid-column: 1 / -1; } }

.funnel-fields .form-group > label:not(.group):not(.container_check) {
  display: block; font-size: .84rem; font-weight: 600; color: var(--text-soft); margin-bottom: 6px;
}
.funnel-fields sup { color: #d0342c; }
.funnel-fields input.form-control:not([type="radio"]):not([type="checkbox"]),
.funnel-fields select.form-control {
  width: 100%; height: 48px; padding: 0 14px; font-size: .96rem; font-family: inherit;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; color: var(--text);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.funnel-fields select.form-control {
  appearance: none; cursor: pointer; padding-right: 40px;
  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='%23767b93' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.funnel-fields input.form-control:focus, .funnel-fields select.form-control:focus {
  outline: none; border-color: var(--brand-400); box-shadow: var(--ring); background: var(--surface);
}

/* Radio options as full-width selectable cards */
.funnel-fields .form-group:has(label.group) { display: grid; grid-template-columns: 1fr; gap: 10px; }
.funnel-fields .form-group:has(label.group) > label:not(.group):not(.container_check) { margin-bottom: 2px; }
.funnel-fields label.group {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px;
  font-size: .98rem; font-weight: 600; color: var(--text); transition: border-color .15s, background .15s;
}
.funnel-fields label.group:hover { border-color: var(--brand-400); }
.funnel-fields label.group input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.funnel-fields label.group .checkmark {
  margin-left: auto; flex: none; width: 22px; height: 22px; border: 2px solid var(--border);
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: all .15s;
}
.funnel-fields label.group:has(input:checked) { border-color: var(--brand-500); background: var(--brand-50); color: var(--brand-700); }
.funnel-fields label.group:has(input:checked) .checkmark { border-color: var(--brand-500); background: var(--brand-500); }
.funnel-fields label.group:has(input:checked) .checkmark::after {
  content: ""; width: 6px; height: 10px; margin-top: -2px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
/* Compact variant inside offer cards */
.funnel-fields.compact .form-group:has(label.group) { grid-template-columns: 1fr 1fr; }
.funnel-fields.compact label.group { padding: 11px 14px; font-size: .9rem; font-weight: 500; }
@media (max-width: 560px) { .funnel-fields.compact .form-group:has(label.group) { grid-template-columns: 1fr; } }

/* Consent / TCPA lines */
.funnel-fields label.container_check { display: flex; align-items: flex-start; gap: 9px; font-size: .78rem; font-weight: 400; color: var(--text-mute); line-height: 1.45; }
.funnel-fields label.container_check input[type="checkbox"] { margin-top: 2px; flex: none; accent-color: var(--brand-500); }

/* Validation (jquery.validate adds .error) */
.funnel-fields label.error { display: block; margin: 6px 0 0; color: #d0342c !important; font-size: .8rem !important; font-weight: 500 !important; }
.funnel-fields .form-control.error { border-color: #d0342c; }
.funnel-fields .form-control.error:focus { box-shadow: 0 0 0 4px rgba(208,52,44,.18); }

/* Results */
.funnel-result-head { text-align: center; margin: 30px 0 22px; }
.funnel-result-head h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); }
.funnel-result-head p { color: var(--text-soft); margin-top: 6px; }
.funnel-count { display: inline-flex; align-items: center; gap: 7px; background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); border-radius: 999px; padding: 6px 14px; font-size: .84rem; font-weight: 700; margin-bottom: 6px; }

.offer-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.offer-card-top { display: flex; align-items: center; gap: 18px; }
.offer-logo { width: 128px; height: 66px; flex: none; display: grid; place-items: center; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.offer-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.offer-card h3 { font-size: 1.15rem; }
.offer-card .offer-desc { font-size: .9rem; color: var(--text-soft); margin-top: 8px; }
.offer-actions { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.offer-skip { background: none; border: none; color: var(--text-mute); font-size: .84rem; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.offer-skip:hover { color: var(--text-soft); background: var(--surface-2); }
.offer-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(47,163,107,.12); color: var(--success); border-radius: 999px; padding: 5px 12px; font-size: .8rem; font-weight: 700; margin-top: 6px; }
.offer-card.is-done { opacity: .92; }

/* Empty / status cards */
.funnel-status { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 46px 28px; text-align: center; margin-top: 32px; }
.funnel-status .fx { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; font-size: 2rem; }
.funnel-status .fx.blue { background: var(--brand-50); color: var(--brand-600); }
.funnel-status .fx.green { background: rgba(47,163,107,.12); color: var(--success); }
.funnel-status .fx.amber { background: #fff3d6; color: #b8860b; }
.funnel-status h2 { margin-bottom: 10px; }
.funnel-status p { color: var(--text-soft); max-width: 48ch; margin: 0 auto 22px; }
.funnel-status-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Matching overlay */
.funnel-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(255,255,255,.96); backdrop-filter: blur(3px); display: grid; place-items: center; text-align: center; padding: 24px; }
.funnel-overlay[hidden] { display: none !important; }
.funnel-overlay .fx { width: 72px; height: 72px; border-radius: 50%; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; margin: 0 auto 18px; font-size: 2rem; }
.funnel-overlay h3 { font-size: 1.35rem; }
.funnel-overlay p { color: var(--text-soft); margin-top: 6px; }
.funnel-pulse { animation: fPulse 1.15s ease-in-out infinite; }
@keyframes fPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.16); opacity: .55; } }
:root[data-theme="dark"] .funnel-overlay { background: rgba(14,16,23,.96); }

/* Button spinner */
.btn-spinner { display: inline-block; width: 1em; height: 1em; margin-right: .5em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -0.125em; animation: btnSpin .6s linear infinite; }
@keyframes btnSpin { to { transform: rotate(360deg); } }
