/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: hidden; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0f172a;
  background: #f8fafc;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 15px; max-width: 100%; }
img { max-width: 100%; height: auto; }

:root {
  --primary:        #2D6A4F;
  --primary-dark:   #1B4332;
  --primary-light:  #D8F3DC;
  --primary-pale:   #F0FFF4;

  --accent:         #E8772E;
  --accent-dark:    #C2410C;
  --accent-light:   #FFEDD5;
  --accent-pale:    #FFF7ED;

  --green:          #40916C;
  --amber:          #f59e0b;
  --red:            #ef4444;

  --bg:             #FAFAF8;
  --card:           #ffffff;
  --border:         #E5E7EB;
  --text:           #1A1A1A;
  --muted:          #6B7280;

  --grad:       linear-gradient(135deg, #2D6A4F 0%, #40916C 100%);
  --grad-soft:  linear-gradient(135deg, #F0FFF4 0%, #FAFAF8 100%);
  --grad-cta:   linear-gradient(135deg, #E8772E 0%, #D4651E 100%);

  --shadow-sm:  0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
  --shadow:     0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 20px 60px -10px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-cta: 0 8px 24px -6px rgba(232,119,46,0.4);
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 24px); }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.muted { color: var(--muted); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 16px -4px rgba(16,185,129,0.4);
}
.btn-primary:hover { box-shadow: 0 10px 24px -6px rgba(16,185,129,0.5); }
/* CTA cam — dùng cho "Nhận tư vấn", "Đăng ký" — conversion buttons */
.btn-cta {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn-cta:hover { box-shadow: 0 12px 28px -6px rgba(249,115,22,0.55); }
.btn-ghost {
  background: #fff;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: #f1f5f9; border-color: #cbd5e1; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 14px; }
.full-width { width: 100%; }

/* ============ NAV — koreauni.vn clean style ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: clamp(8px, 2vw, 32px);
  min-width: 0;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-weight: 800;
  font-size: 16px;
}
.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}
.logo-img-footer {
  height: 48px;
}
.logo-text { color: var(--text); font-size: 20px; }
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
}
.nav-actions {
  display: flex; align-items: center; gap: 16px;
  flex-shrink: 0;
}
.nav-login {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: color .15s;
}
.nav-login:hover { color: var(--primary); }
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  transition: transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -4px rgba(45,106,79,0.4);
}
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  border: none;
  background: none;
}
.nav-mobile-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-login { display: none; }
  .nav-cta { padding: 8px 16px; font-size: 13px; }
  .nav-mobile-toggle { display: flex; }
}

/* ============ HERO — Two column layout ============ */
.hero-section {
  padding: 56px 0 64px;
  background: var(--bg);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-text { max-width: 560px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  background: #fff;
  border: 1px solid var(--primary-light);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}
.hero-text h1 {
  font-size: clamp(36px, 4.5vw, 54px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  font-weight: 800;
  color: var(--text);
}
.hero-text h1 .accent {
  color: var(--primary);
}
.hero-text h1 .highlight {
  color: var(--accent);
}
.hero-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 480px;
}
.hero-buttons {
  display: flex;
  gap: 14px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.hero-cta {
  background: var(--grad);
  color: #fff;
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: 0 6px 16px -4px rgba(45,106,79,0.4);
}
.hero-cta:hover {
  box-shadow: 0 10px 24px -6px rgba(45,106,79,0.5);
}
.hero-cta .arrow { margin-left: 4px; }
.hero-demo {
  padding: 16px 28px;
  font-size: 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-weight: 600;
}
.hero-demo:hover { background: #f5f5f4; }

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 40px;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-stat strong {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
.hero-stat strong .plus {
  color: var(--primary);
  font-size: 28px;
}
.hero-stat span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* ============ HERO FORM WRAP (finder card in hero) ============ */
.hero-form-wrap {
  display: flex;
  justify-content: flex-end;
}
.hero-form-wrap .finder-card {
  width: 100%;
  max-width: 540px;
}

/* Hero responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-text { max-width: 100%; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-form-wrap { justify-content: center; }
  .hero-form-wrap .finder-card { max-width: 580px; }
  .hero-badge { margin-left: auto; margin-right: auto; }
}
@media (max-width: 600px) {
  .hero-section { padding: 32px 0 40px; }
  .hero-text h1 { font-size: 32px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-stat strong { font-size: 26px; }
}


/* ============ SECTION ============ */
.section { padding: clamp(40px, 8vw, 80px) 0; }
.section-alt { background: #fff; }
.section-head { text-align: center; margin-bottom: clamp(28px, 5vw, 48px); }
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.section-head p { color: var(--muted); font-size: clamp(14px, 2.5vw, 17px); margin: 0; }
h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; word-wrap: break-word; }
/* ============ CONSULT BANNER ============ */
.consult-banner-section {
  padding: 0;
}
.consult-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 auto;
  max-width: 820px;
  padding: 24px 32px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 0% 50%, rgba(249,115,22,0.12) 0%, transparent 60%),
    radial-gradient(circle at 100% 50%, rgba(16,185,129,0.10) 0%, transparent 60%),
    linear-gradient(135deg, #fff8f3 0%, #f0fdf4 100%);
  border: 1.5px solid rgba(249,115,22,0.25);
  box-shadow: 0 4px 24px -6px rgba(249,115,22,0.15);
  position: relative;
  overflow: hidden;
}
.consult-banner::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(249,115,22,0.06);
}
.consult-banner-icon {
  font-size: 42px;
  flex-shrink: 0;
  width: 64px; height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249,115,22,0.1);
  border-radius: 16px;
}
.consult-banner-body {
  flex: 1;
  min-width: 0;
}
.consult-banner-body h3 {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--text);
}
.consult-banner-body p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}
.btn-consult-expert {
  display: inline-block;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  animation: pulse-cta 2s ease-in-out infinite;
}
@keyframes pulse-cta {
  0%, 100% { box-shadow: var(--shadow-cta); }
  50% { box-shadow: 0 8px 32px -4px rgba(249,115,22,0.55); }
}
@media (max-width: 700px) {
  .consult-banner {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
    gap: 14px;
  }
  .consult-banner-icon { margin: 0 auto; }
  .btn-consult-expert { width: 100%; text-align: center; }
}

/* ============ CHECKER ============ */
.checker {
  max-width: 800px; margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow);
}
.progress {
  display: flex; align-items: center;
  margin-bottom: 36px;
}
.progress-step {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  position: relative;
  flex-shrink: 0;
}
.ps-num {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: #f1f5f9;
  border-radius: 50%;
  font-weight: 700;
  color: var(--muted);
  transition: all .3s;
}
.ps-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.progress-step.active .ps-num,
.progress-step.done .ps-num {
  background: var(--grad); color: #fff;
  box-shadow: 0 4px 12px -2px rgba(37,99,235,0.4);
}
.progress-step.active .ps-label,
.progress-step.done .ps-label { color: var(--primary); }
.progress-line {
  flex: 1; height: 2px; background: #e2e8f0;
  margin: 0 12px; margin-bottom: 24px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.progress-line-fill {
  position: absolute; inset: 0;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease;
}
.progress-line.done .progress-line-fill { transform: scaleX(1); }

.step { display: none; }
.step.active { display: block; animation: stepIn .3s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.grid-2 {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 13px; font-weight: 600; color: var(--text);
}
.field input, .field select {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
  transition: all .2s ease;
}
.field input:hover, .field select:hover {
  background: #fff;
  border-color: #cbd5e1;
}
.field input:focus, .field select:focus {
  outline: none;
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.15);
  transform: translateY(-1px);
}
.field input::placeholder { color: #94a3b8; }

/* Ẩn spinner arrows trên input number — tránh user vô tình click */
.field input[type="number"]::-webkit-inner-spin-button,
.field input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.field input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* State invalid */
.field input.invalid,
.field select.invalid {
  border-color: #ef4444 !important;
  background: #fef2f2;
}
.field input.invalid:focus,
.field select.invalid:focus {
  box-shadow: 0 0 0 4px rgba(239,68,68,0.12);
}
.field-error {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: #dc2626;
  margin-top: 2px; font-weight: 500;
  animation: fieldErrIn .2s ease;
}
.field-error::before { content: '⚠'; font-size: 13px; }
@keyframes fieldErrIn {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: none; }
}
.field-hint {
  font-size: 12px; color: var(--muted);
  margin-top: 2px; font-style: italic;
}
.field-hint.success {
  color: var(--green); font-weight: 500; font-style: normal;
}
.field-hint::before { content: ''; }
.field-hint.success::before { content: '✓ '; }

.step-actions {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 28px;
}
.step-actions .btn:only-child { margin-left: auto; }

/* Result */
.result-box { padding: 4px; }
.result-header {
  text-align: center; margin-bottom: 28px;
}
.result-emoji { font-size: 56px; margin-bottom: 8px; }
.result-title { font-size: 24px; font-weight: 800; margin: 0 0 6px; }
.result-sub { color: var(--muted); margin: 0; }
.score-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 24px;
}
.score-card {
  background: var(--grad-soft);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  border: 1px solid var(--border);
}
.score-card h4 { font-size: 13px; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
.score-pct {
  font-size: 40px; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.score-bar { background: #fff; height: 8px; border-radius: 999px; overflow: hidden; margin-top: 10px; }
.score-bar-fill { height: 100%; background: var(--grad); transition: width .8s ease; }

.result-block {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 18px; margin-bottom: 14px;
}
.result-block h5 {
  font-size: 14px; margin: 0 0 10px;
  display: flex; align-items: center; gap: 8px;
}
.tag {
  display: inline-block; padding: 4px 10px;
  border-radius: 999px; font-size: 12px; font-weight: 600;
  margin-right: 6px;
}
.tag-good { background: #d1fae5; color: #065f46; }
.tag-warn { background: #fef3c7; color: #92400e; }
.tag-bad { background: #fee2e2; color: #991b1b; }

.school-suggest {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 8px;
}
.school-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 10px;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.school-chip:hover { background: #bfdbfe; }

.cta-block {
  margin-top: 24px;
  background: var(--grad);
  color: #fff;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}
.cta-block h4 { margin: 0 0 8px; font-size: 20px; }
.cta-block p { margin: 0 0 16px; opacity: 0.9; }
.cta-block .btn {
  background: #fff; color: var(--primary); font-weight: 700;
}

/* ============ SCHOOL GRID ============ */
.school-search {
  max-width: 600px; margin: 0 auto 32px;
}
.school-search input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: #fff;
  font-size: 15px;
}
.school-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

.school-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: clamp(12px, 2vw, 18px);
}
.school-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(16px, 3vw, 22px);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  min-width: 0;
}
.sc-head > div:first-child { min-width: 0; flex: 1; }
.school-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #cbd5e1;
}
.school-card.is-featured {
  border-color: #f59e0b;
  box-shadow: 0 0 0 1px #fcd34d inset;
}
.sc-featured-badge {
  position: absolute;
  top: -8px; left: 16px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
}

.grid-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 24px;
}
.grid-pagination .page-tab {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: none;
  background: transparent;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.grid-pagination .page-tab:hover:not(:disabled):not(.active) { color: var(--primary); background: var(--primary-pale); }
.grid-pagination .page-tab.active {
  background: var(--primary);
  color: #fff;
}
.grid-pagination .page-arrow { color: var(--muted); font-size: 18px; line-height: 1; }
.grid-pagination .page-arrow:disabled { opacity: 0.3; cursor: not-allowed; }
.sc-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 12px;
}
.sc-name { font-weight: 700; font-size: 17px; margin: 0; line-height: 1.3; }
.sc-region { font-size: 12px; color: var(--muted); margin-top: 2px; }
.sc-flag {
  min-width: 44px; height: 44px;
  padding: 0 8px;
  background: var(--grad-soft);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; letter-spacing: -0.02em;
}
.sc-flag-t1 { background: var(--accent); color: #fff; }
.sc-flag-t2 { background: var(--accent-light); color: var(--accent-dark); }
.sc-flag-t3 { background: #fee2e2; color: #b91c1c; }
.sc-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin: 14px 0;
  padding: 12px;
  background: #f8fafc;
  border-radius: 10px;
}
.sc-stat { font-size: 12px; }
.sc-stat strong { display: block; font-size: 14px; color: var(--text); margin-top: 2px; }
.sc-stat span { color: var(--muted); }
.sc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.sc-tags .tag {
  background: #f1f5f9; color: var(--muted);
  padding: 3px 8px; font-size: 11px; font-weight: 500;
}

/* ============ FILTER ============ */
.filter-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
}
.filter-sidebar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  height: fit-content;
  position: sticky; top: 80px;
}
.filter-group {
  padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.filter-group:last-of-type { border: none; margin-bottom: 12px; }
.filter-group h4 {
  font-size: 13px; margin: 0 0 12px; font-weight: 700;
  color: var(--text); text-transform: uppercase; letter-spacing: 0.05em;
}
.filter-group label {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  cursor: pointer;
  color: var(--text);
}
.filter-group input[type="checkbox"],
.filter-group input[type="radio"] {
  accent-color: var(--primary);
}
.filter-summary {
  margin-bottom: 16px;
  font-size: 14px; color: var(--muted);
}
.filter-summary span { color: var(--primary); font-weight: 700; font-size: 18px; }

/* ============ CHAT ============ */
.chatbox {
  max-width: 760px; margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.chat-messages {
  padding: 24px;
  min-height: 320px;
  max-height: 480px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
  background: #f8fafc;
}
.msg { display: flex; gap: 10px; }
.msg-user { flex-direction: row-reverse; }
.msg-avatar {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.msg-user .msg-avatar { background: #e2e8f0; }
.msg-bubble {
  max-width: 70%;
  padding: 12px 16px;
  background: #fff;
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
}
.msg-user .msg-bubble {
  background: var(--grad); color: #fff;
}
.chat-quick {
  padding: 12px 24px;
  display: flex; gap: 8px; flex-wrap: wrap;
  border-top: 1px solid var(--border);
  background: #fff;
}
.quick-chip {
  padding: 8px 14px;
  background: var(--primary-light); color: var(--primary-dark);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  transition: background .15s;
}
.quick-chip:hover { background: #bfdbfe; }
.chat-input {
  display: flex; gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.chat-input input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
}
.chat-input input:focus { outline: none; border-color: var(--primary); }

/* ============ LEAD SECTION ============ */
.lead-section { background: var(--grad-soft); }
.lead-card {
  background: #fff;
  border-radius: 24px;
  padding: clamp(20px, 4vw, 48px);
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.lead-text { min-width: 0; }
.lead-text h2 { font-size: clamp(22px, 5vw, 32px); margin: 0 0 16px; line-height: 1.2; overflow-wrap: break-word; }
.lead-text p { color: var(--muted); font-size: clamp(14px, 2.4vw, 16px); margin: 0 0 20px; overflow-wrap: break-word; }
.check-list li { overflow-wrap: break-word; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  padding: 8px 0;
  font-weight: 500;
  color: var(--text);
}
.lead-form {
  background: #f8fafc;
  border-radius: 16px;
  padding: clamp(20px, 3.5vw, 32px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  min-width: 0;
  align-content: start;
}
.lead-form .field.full,
.lead-form > button,
.lead-form > .form-note { grid-column: 1 / -1; }
.lead-form input, .lead-form select, .lead-form textarea, .lead-form button { width: 100%; max-width: 100%; }
.lead-form .field label .req { color: var(--accent); }
.lead-form textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
  transition: all .2s ease;
}
.lead-form textarea:hover { background: #fff; border-color: #cbd5e1; }
.lead-form textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.15);
}
@media (max-width: 520px) {
  .lead-form { grid-template-columns: 1fr; }
}
.form-note {
  font-size: 12px; color: var(--muted);
  text-align: center; margin: 0;
}

/* ============ FOOTER ============ */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 56px 0 0;
}
.footer-inner {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 36px;
}
.footer .logo { color: #fff; }
.footer .logo em { color: #94a3b8; }
.footer-cols {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.footer-cols h5 {
  color: #fff; font-size: 14px; margin: 0 0 14px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.footer-cols a {
  display: block; padding: 4px 0;
  color: #94a3b8; font-size: 14px;
}
.footer-cols a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}


/* ============ TIER CARDS (Reach – Match – Safe) ============ */
.tier-block { padding: 0; background: transparent; border: none; }
.tier-intro {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tier-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
  animation: tierIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.tier-card:nth-child(1) { animation-delay: 0.1s; }
.tier-card:nth-child(2) { animation-delay: 0.25s; }
.tier-card:nth-child(3) { animation-delay: 0.4s; }
@keyframes tierIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.tier-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -10px rgba(15,23,42,0.18);
}
.tier-empty { opacity: 0.65; cursor: default; border-style: dashed !important; }
.tier-empty:hover { transform: none; box-shadow: none; }

/* Header với gradient theo tier */
.tier-header {
  padding: 20px 18px;
  color: #fff;
  position: relative;
}
.tier-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,0.3);
}
.tier-header h6 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}
.tier-meta {
  margin: 0;
  font-size: 12.5px;
  opacity: 0.92;
  font-weight: 500;
}

/* Reach — purple/pink */
.tier-reach { border-color: #c026d3; }
.tier-reach .tier-header {
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
}

/* Match — blue/cyan */
.tier-match { border-color: #06b6d4; }
.tier-match .tier-header {
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
}

/* Safe — green/emerald */
.tier-safe { border-color: #10b981; }
.tier-safe .tier-header {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Body */
.tier-body {
  padding: 16px 18px 18px;
  display: flex; flex-direction: column;
  gap: 14px;
  flex: 1;
}
.tier-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 10px;
}
.tier-stats > div { font-size: 11px; }
.tier-stats > div span { color: var(--muted); display: block; font-weight: 600; }
.tier-stats > div strong { font-size: 14px; color: var(--text); display: block; margin-top: 1px; }

.tier-cost {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: #78350f;
  display: flex; flex-direction: column;
  gap: 2px;
}
.tier-cost strong { font-weight: 700; }
.tier-cost-breakdown {
  font-size: 11.5px;
  color: #92400e;
  opacity: 0.9;
}

.tier-why {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.tier-reasons {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex; flex-direction: column;
  gap: 8px;
  flex: 1;
}
.tier-reasons li {
  font-size: 13px;
  line-height: 1.45;
  color: #334155;
  padding-left: 18px;
  position: relative;
}
.tier-reach .tier-reasons li::before { content: '✦'; color: #c026d3; position: absolute; left: 0; font-weight: 700; }
.tier-match .tier-reasons li::before { content: '✓'; color: #06b6d4; position: absolute; left: 0; font-weight: 700; }
.tier-safe  .tier-reasons li::before { content: '●'; color: #10b981; position: absolute; left: 0; font-weight: 700; }

.tier-cta {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .15s;
  margin-top: auto;
}
.tier-reach .tier-cta {
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  color: #fff;
}
.tier-match .tier-cta {
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  color: #fff;
}
.tier-safe .tier-cta {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
}
.tier-cta:hover { transform: translateY(-1px); filter: brightness(1.05); }

@media (max-width: 900px) {
  .tier-grid { grid-template-columns: 1fr; }
}

/* ============ SKIPPED TOP SCHOOLS BLOCK ============ */
.skipped-block {
  margin-top: 20px;
  background: linear-gradient(135deg, #fafaf9 0%, #f5f5f4 100%);
  border: 1px solid #e7e5e4;
  border-radius: 14px;
  padding: 22px;
}
.skipped-block h5 {
  font-size: 16px !important;
  margin: 0 0 4px !important;
  color: #44403c;
}
.skipped-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.skipped-card {
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  padding: 14px 16px;
  position: relative;
  border-left: 4px solid #d6d3d1;
}
.skipped-head {
  display: flex; align-items: baseline; gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}
.skipped-head strong { font-size: 15.5px; color: var(--text); }
.skipped-meta { font-size: 12px; color: var(--muted); font-weight: 500; }

.skipped-blockers {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex; flex-direction: column;
  gap: 8px;
}
.skipped-blockers li {
  display: flex; gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  align-items: flex-start;
}
.bk-icon { font-size: 16px; flex-shrink: 0; line-height: 1.4; }
.bk-text { display: flex; flex-direction: column; gap: 2px; }
.bk-text strong { color: #44403c; font-weight: 600; }
.bk-text em {
  font-style: normal;
  font-size: 12.5px;
  color: var(--primary-dark);
  font-weight: 500;
}

.skipped-cta {
  display: block;
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--grad);
  color: #fff;
  text-align: center;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.skipped-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -4px rgba(37,99,235,0.35);
}

/* ============ FILTER HINTS / EMPTY STATE / NOTES ============ */
.filter-hint {
  font-size: 11.5px;
  color: var(--muted);
  margin: -6px 0 8px;
  font-weight: 500;
  font-style: italic;
}

.suggest-note {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 0 12px;
  font-size: 13.5px;
  color: #78350f;
  line-height: 1.5;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  background: #fff;
  border-radius: 16px;
  border: 1.5px dashed var(--border);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state h3 { margin: 0 0 8px; font-size: 18px; }
.empty-state p { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.empty-suggestions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.empty-chip {
  padding: 10px 16px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  transition: background .15s, transform .15s;
}
.empty-chip:hover { background: #bfdbfe; transform: translateY(-1px); }
.empty-chip strong { font-weight: 700; }


/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .filter-wrap { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .lead-card { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

/* Tablet: chip-style filter labels wrap in rows to save vertical space */
@media (min-width: 600px) and (max-width: 900px) {
  .filter-sidebar .filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
  }
  .filter-sidebar .filter-group h4 { flex: 0 0 100%; margin: 0 0 4px; }
  .filter-sidebar .filter-group .filter-hint { flex: 0 0 100%; margin: 0 0 6px; }
  .filter-sidebar .filter-group label {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    gap: 6px;
    transition: border-color .15s, background .15s;
  }
  .filter-sidebar .filter-group label:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
  }
  .filter-sidebar #filter-reset { flex: 0 0 100%; margin-top: 4px; }
}
@media (max-width: 600px) {
  .grid-2 { grid-template-columns: 1fr; }
  .checker { padding: 24px; }
  .ps-label { display: none; }
  .trust-row { gap: 20px; }
  .score-grid { grid-template-columns: 1fr; }
  .modal-stat-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FINDER V2 — Full form section + Result list + Modal popup
   ============================================================ */

#home, #check { display: none !important; }

/* === Tabs D4 / D2 === */
.finder-card {
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.finder-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: #fafafa;
}
.finder-tab {
  flex: 1;
  padding: 18px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color .15s, background .15s;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.finder-tab:hover { color: var(--primary-dark); background: #f5f5f5; }
.finder-tab.active {
  color: var(--primary-dark);
  background: #fff;
}
.finder-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  border-radius: 3px 3px 0 0;
}
.finder-tab .tab-name { font-size: 16px; }
.finder-tab .tab-sub { font-size: 12px; font-weight: 500; color: var(--muted); }
.finder-tab.active .tab-sub { color: var(--primary); }

/* === Form === */
.finder-form {
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.finder-form .field.full { grid-column: 1 / -1; }
.finder-form .field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.finder-form .field label .req { color: var(--accent); }

/* GPA bucket selector — pill style */
.gpa-buckets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.gpa-buckets label {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all .15s;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0;
}
.gpa-buckets label:hover { border-color: var(--primary); background: var(--primary-pale); }
.gpa-buckets label input { accent-color: var(--primary); }
.gpa-buckets label input:checked + span,
.gpa-buckets label:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
}
.gpa-buckets .bucket-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-left: auto;
}

/* Tier buckets — reuse gpa-buckets look */
.tier-buckets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.tier-buckets label {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all .15s;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0;
}
.tier-buckets label:hover { border-color: var(--primary); background: var(--primary-pale); }
.tier-buckets label input { accent-color: var(--primary); }
.tier-buckets label:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
}
.tier-buckets .bucket-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-left: auto;
}

/* Region grid checkbox */
.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 8px;
}
.region-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 0;
}
.region-chip:hover { border-color: var(--primary); }
.region-chip input { accent-color: var(--primary); }
.region-chip:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* Top tier preference */
.top-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pill-radio {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 10px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
  margin-bottom: 0;
}
.pill-radio:hover { border-color: var(--accent); }
.pill-radio input { display: none; }
.pill-radio:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-light);
}
.pill-tier {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}
.pill-radio:has(input:checked) .pill-tier { color: var(--accent-dark); }
.pill-desc {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

/* Submit button */
.finder-form .field.submit-row {
  grid-column: 1 / -1;
  margin-top: 8px;
}
.finder-submit {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  background: var(--grad);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 20px -6px rgba(16,185,129,0.45);
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, filter .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.finder-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -6px rgba(16,185,129,0.55);
  filter: brightness(1.04);
}

/* TOPIK select for D2 tab — only visible when D2 active */
.field-d2-only { display: none; }
.finder-form.is-d2 .field-d2-only { display: block; }
.field-d2-only select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
}

/* ============================================================
   EXPERT CONSULT CTA BAND — between hero and school lookup
   ============================================================ */
.expert-cta-band {
  padding: 28px 0 12px;
  background: var(--bg);
}
.expert-cta {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--primary-pale) 0%, #e8f5ee 100%);
  border: 1px solid var(--primary-light, #c6e7d3);
  border-radius: 20px;
  box-shadow: 0 10px 26px -18px rgba(16, 122, 66, 0.35);
}
.expert-cta-text { flex: 1 1 auto; min-width: 0; }
.expert-cta-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--primary-dark);
  background: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  border: 1px solid var(--primary-light, #c6e7d3);
}
.expert-cta h3 {
  margin: 0 0 6px;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}
.expert-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}
.expert-cta-btn {
  flex: 0 0 auto;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 20px -10px rgba(16, 122, 66, 0.6);
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.expert-cta-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -10px rgba(16, 122, 66, 0.7);
}
.expert-cta-btn:active { transform: translateY(0); }

@media (max-width: 720px) {
  .expert-cta-band { padding: 18px 0 4px; }
  .expert-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 22px 20px;
    gap: 18px;
  }
  .expert-cta-btn { width: 100%; padding: 14px 18px; }
}

/* ============================================================
   FINDER RESULTS — list of school cards
   ============================================================ */
.finder-results {
  padding: 32px 0 60px;
  background: #fff;
}
.finder-results .results-head {
  text-align: center;
  margin-bottom: 18px;
}
.finder-results .results-head h2 {
  font-size: clamp(20px, 3vw, 30px);
  margin: 0 0 6px;
  font-weight: 800;
  line-height: 1.2;
}
.finder-results .results-head p {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0;
  line-height: 1.4;
}
.results-count-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-left: 4px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 760px;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .results-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* === Result Card — Compact row layout === */
.result-card {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color .15s, box-shadow .15s;
  animation: resultIn 0.3s ease both;
  cursor: pointer;
}
.result-card.is-featured {
  border-color: #f59e0b;
  box-shadow: 0 0 0 1px #fcd34d inset;
}
.rc-featured-badge {
  position: absolute;
  top: -8px;
  left: 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 2px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
  line-height: 1.4;
  white-space: nowrap;
}
@keyframes resultIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.result-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.result-card:hover .rc-btn-detail {
  color: var(--primary-dark);
}
.rc-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.rc-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.rc-name {
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.25;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.rc-tier-badge {
  flex-shrink: 0;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.02em;
  line-height: 1.4;
  white-space: nowrap;
}
.rc-tier-badge.rc-tier-1 { background: #dcfce7; color: #15803d; }
.rc-tier-badge.rc-tier-2 { background: #fef3c7; color: #b45309; }
.rc-tier-badge.rc-tier-3 { background: #fee2e2; color: #b91c1c; }
.rc-name-kr {
  font-weight: 600;
  font-size: 12px;
  color: var(--primary);
}
.rc-tuition-line {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.3;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.rc-tuition-line .rc-tuition-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
}
.result-card .rc-btn-detail {
  padding: 0 2px;
  font-size: 22px;
  font-weight: 400;
  color: var(--primary);
  background: transparent;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}

/* Mobile: thu gọn card kết quả cho vừa khung điện thoại */
@media (max-width: 720px) {
  .finder-results { padding: 20px 0 40px; }
  .finder-results .results-head { margin-bottom: 12px; }
  .finder-results .results-head h2 { font-size: 17px; line-height: 1.25; }
  .finder-results .results-head p { font-size: 12px; }
  .results-count-tag { font-size: 12px; padding: 3px 9px; }

  .result-card { padding: 7px 10px; gap: 8px; border-radius: 8px; }
  .rc-name-row { gap: 6px; }
  .rc-name { font-size: 12.5px; }
  .rc-name-kr { display: none; }
  .rc-tier-badge { font-size: 9.5px; padding: 2px 6px; }
  .rc-tuition-line { font-size: 11px; margin-top: 1px; }
  .rc-tuition-line .rc-tuition-val { font-size: 11.5px; }
  .result-card .rc-btn-detail { font-size: 18px; }
}

/* Pagination */
.results-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}
.rp-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rp-btn:hover:not(:disabled):not(.is-active) {
  background: var(--primary-pale);
  color: var(--primary-dark);
}
.rp-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.rp-btn.is-active {
  background: var(--primary);
  color: #fff;
}
.rp-arrow { color: var(--muted); font-size: 18px; line-height: 1; }

/* Image area */
.rc-image {
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: #e5e7eb;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 12px 14px;
}
.rc-image .rc-tier-tag {
  position: absolute;
  top: 10px; left: 10px;
}
.rc-image .rc-name-kr {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Tier tag */
.rc-tier-tag {
  padding: 4px 10px;
  font-size: 11px; font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.rc-tier-1 { background: var(--accent); color: #fff; }
.rc-tier-2 { background: var(--accent-light); color: var(--accent-dark); }
.rc-tier-3 { background: #fee2e2; color: #b91c1c; }

/* Body */
.rc-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.rc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.rc-name {
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 2px;
  line-height: 1.3;
  color: var(--text);
}
.rc-region {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* Score bars */
.rc-scores {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rc-score-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rc-score-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  width: 48px;
  flex-shrink: 0;
}
.rc-score-bar {
  flex: 1;
  height: 8px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}
.rc-score-fill {
  height: 100%;
  border-radius: 999px;
  transition: width .6s ease;
}
.rc-score-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  width: 44px;
  text-align: right;
  flex-shrink: 0;
}

/* Major tags */
.rc-majors {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.rc-major-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  background: #f1f5f9;
  color: var(--muted);
  border-radius: 6px;
}

/* Note tags (admin notes) */
.rc-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rc-note-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--accent-light);
  color: var(--accent-dark);
  border-radius: 6px;
}

/* Footer — tuition + CTA */
.rc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f3f4f6;
  margin-top: auto;
}
.rc-tuition {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.rc-tuition-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.rc-tuition-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.rc-btn-detail {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.rc-btn-detail:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: var(--primary-pale);
}

/* Empty state */
.results-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 24px;
  background: #f8fafc;
  border-radius: 18px;
  border: 1.5px dashed var(--border);
}
.results-empty .icon { font-size: 48px; margin-bottom: 12px; }
.results-empty h3 { margin: 0 0 8px; font-size: 19px; }
.results-empty p { color: var(--muted); margin: 0; font-size: 14px; }
.results-empty-hints {
  list-style: none;
  padding: 0;
  margin: 12px auto 0;
  max-width: 380px;
  text-align: left;
  font-size: 14px;
  color: var(--muted);
}
.results-empty-hints li {
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 6px;
}
.results-empty-hints strong { color: var(--text, #0f172a); }

/* ============================================================
   SCHOOL DETAIL — Fullscreen Lightbox (article style)
   ============================================================ */
.school-modal {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  display: none;
  z-index: 1000;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
}
.school-modal.is-open {
  display: block;
  animation: modalFadeIn 0.22s ease;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.school-modal-card {
  background: #fff;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  position: relative;
  animation: modalSlideUp 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-sizing: border-box;
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.school-modal-close {
  position: fixed; top: 18px; right: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  z-index: 1010;
  transition: background .15s, transform .15s;
  border: 1px solid var(--border);
  cursor: pointer;
  box-shadow: 0 6px 16px -4px rgba(15, 23, 42, 0.2);
}
.school-modal-close:hover {
  background: var(--primary-pale);
  color: var(--primary-dark);
  transform: rotate(90deg);
}

.smc-article {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding-bottom: 40px;
  box-sizing: border-box;
  overflow: hidden;
}

/* HERO image header */
.smc-hero {
  position: relative;
  height: clamp(280px, 42vh, 460px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.smc-hero-inner {
  width: 100%;
  padding: 36px 40px;
}
.smc-flag-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  margin-bottom: 14px;
  backdrop-filter: blur(6px);
}
.smc-name {
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 6px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.smc-name-kr {
  font-size: 18px;
  opacity: 0.95;
  margin: 0 0 8px;
  font-weight: 500;
}
.smc-loc {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500;
  background: rgba(255, 255, 255, 0.18);
  padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  margin: 0;
}

/* KEY STATS */
.smc-keystats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  padding: 28px 40px;
  background: linear-gradient(180deg, var(--primary-pale) 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
}
.smc-keystat {
  background: #fff;
  border: 1px solid var(--primary-light);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.smc-ks-icon { font-size: 22px; line-height: 1; margin-bottom: 4px; }
.smc-ks-label { font-size: 11.5px; color: var(--primary-dark); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.smc-ks-value { font-size: 18px; font-weight: 800; color: var(--text); }
.smc-ks-sub { font-size: 11.5px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.smc-keystat-accent {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--accent-pale) 0%, #fff 100%);
  border-color: var(--accent-light);
}
.smc-keystat-accent .smc-ks-label { color: var(--accent-dark); }
.smc-keystat-accent .smc-ks-value { color: var(--accent-dark); font-size: 22px; }

/* ARTICLE CONTENT */
.smc-content {
  padding: 36px 40px 24px;
}
.smc-block {
  font-size: 16px;
  line-height: 1.75;
  color: #334155;
  margin-bottom: 28px;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.smc-block a {
  overflow-wrap: anywhere;
}
.smc-block h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  position: relative;
  padding-left: 14px;
}
.smc-block h3::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 4px;
  background: var(--grad);
  border-radius: 2px;
}
.smc-block p { margin: 0 0 12px; }
.smc-block ul {
  margin: 0 0 12px;
  padding-left: 22px;
}
.smc-block li { margin-bottom: 6px; }
.smc-block strong { color: var(--primary-dark); }

/* Ảnh chèn trực tiếp trong content (content_overview / content_programs / content_requirements) */
.smc-block figure {
  margin: 18px 0;
  border-radius: 14px;
  overflow: hidden;
  background: #f8fafc;
  box-shadow: 0 4px 14px -8px rgba(15, 23, 42, 0.18);
}
.smc-block figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: cover;
}
.smc-block figure figcaption {
  padding: 8px 14px 10px;
  font-size: 12.5px;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--border);
}
.smc-block img:not(figure img) {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 14px 0;
}

.smc-block-quote {
  background: var(--primary-pale);
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  font-style: italic;
}
.smc-block-quote p { margin: 0 0 8px; color: #1e293b; }
.smc-block-quote cite {
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
}

/* Figures (text + image) */
.smc-figure {
  margin: 0 0 28px;
  border-radius: 16px;
  overflow: hidden;
  background: #f1f5f9;
  box-shadow: 0 6px 18px -8px rgba(15, 23, 42, 0.18);
}
.smc-figure img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.smc-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--border);
  text-align: center;
}

.smc-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 28px;
}
.smc-tag {
  padding: 7px 14px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.smc-tag.top {
  background: var(--accent-light);
  color: var(--accent-dark);
}

/* CTA — Liên hệ với chuyên gia (phong cách học thuật) */
.smc-cta {
  position: relative;
  margin: 8px 40px 0;
  padding: 44px 36px 40px;
  background:
    /* Paper grid mỏng cho cảm giác văn bằng */
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(45, 106, 79, 0.045) 27px 28px),
    repeating-linear-gradient(90deg, transparent 0 27px, rgba(45, 106, 79, 0.035) 27px 28px),
    /* Highlights góc */
    radial-gradient(circle at 0% 0%, rgba(16, 185, 129, 0.14) 0%, transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(249, 115, 22, 0.18) 0%, transparent 55%),
    linear-gradient(135deg, var(--accent-pale) 0%, var(--primary-pale) 100%);
  border: 1.5px solid var(--accent-light);
  border-radius: 22px;
  text-align: center;
  /* Viền kép phía trong — gợi văn bằng / chứng chỉ */
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    inset 0 0 0 2px rgba(45, 106, 79, 0.08);
  overflow: hidden;
  isolation: isolate;
}
/* 4 ngôi sao ở 4 góc — gợi con dấu / nẹp văn bằng */
.smc-cta::before,
.smc-cta::after {
  content: '✦  ✦';
  position: absolute;
  left: 0; right: 0;
  font-size: 12px;
  letter-spacing: 18px;
  color: var(--primary);
  opacity: 0.45;
  pointer-events: none;
}
.smc-cta::before { top: 10px; }
.smc-cta::after  { bottom: 10px; }

/* Tiêu đề: laurel SVG 2 bên */
.smc-cta h3 {
  position: relative;
  display: inline-block;
  max-width: 100%;
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin: 0 auto 12px;
  letter-spacing: -0.01em;
  padding: 0 56px;
  box-sizing: border-box;
}
.smc-cta h3::before,
.smc-cta h3::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 44px;
  height: 22px;
  /* Laurel branch — màu primary (xanh koreauni.vn) */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 22' fill='none'><path d='M2 14 Q 10 8, 22 9 T 42 14' stroke='%232D6A4F' stroke-width='1.3' stroke-linecap='round' fill='none'/><ellipse cx='8' cy='10' rx='3.6' ry='1.7' transform='rotate(-32 8 10)' fill='%232D6A4F' opacity='0.85'/><ellipse cx='14' cy='6.5' rx='3.6' ry='1.7' transform='rotate(-18 14 6.5)' fill='%232D6A4F' opacity='0.85'/><ellipse cx='21' cy='5' rx='3.6' ry='1.7' transform='rotate(-2 21 5)' fill='%232D6A4F' opacity='0.85'/><ellipse cx='28' cy='6' rx='3.6' ry='1.7' transform='rotate(14 28 6)' fill='%232D6A4F' opacity='0.85'/><ellipse cx='35' cy='9.5' rx='3.6' ry='1.7' transform='rotate(28 35 9.5)' fill='%232D6A4F' opacity='0.85'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: translateY(-50%);
  opacity: 0.85;
}
.smc-cta h3::before { left: 0; }
.smc-cta h3::after  { right: 0; transform: translateY(-50%) scaleX(-1); }

.smc-cta p {
  font-size: 15px;
  color: #475569;
  margin: 0 auto 24px;
  max-width: 520px;
  line-height: 1.65;
}

/* Button học thuật: halo ring + shimmer sweep + emboss */
.smc-cta-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 40px;
  background: var(--grad-cta);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.015em;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  /* halo ring + emboss + shadow gốc */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 0 rgba(120, 50, 0, 0.18),
    var(--shadow-cta),
    0 0 0 4px rgba(232, 119, 46, 0.14);
  transition: transform .15s, box-shadow .25s;
  overflow: hidden;
  isolation: isolate;
}
/* Shimmer sweep mỗi lần hover */
.smc-cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
  transform: translateX(-110%);
  transition: transform .85s ease;
  z-index: -1;
}
.smc-cta-btn:hover::before { transform: translateX(110%); }
.smc-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(120, 50, 0, 0.18),
    0 14px 32px -6px rgba(249, 115, 22, 0.6),
    0 0 0 5px rgba(232, 119, 46, 0.22);
}
.smc-cta-btn:active { transform: translateY(0); }
/* Ngôi sao 2 bên text */
.smc-cta-btn::after {
  content: '✦';
  font-size: 11px;
  opacity: 0.85;
  margin-left: 2px;
}

/* Divider ngôi sao trước note */
.smc-cta-note {
  position: relative;
  font-size: 12.5px;
  color: var(--muted);
  margin: 18px 0 0;
}
.smc-cta-note::before {
  content: '✦  ❖  ✦';
  display: block;
  font-size: 10px;
  letter-spacing: 14px;
  color: var(--primary);
  opacity: 0.45;
  margin-bottom: 10px;
  padding-left: 14px; /* offset cho letter-spacing */
}

/* Mobile */
@media (max-width: 720px) {
  .smc-hero-inner { padding: 24px 20px; }
  .smc-keystats {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    padding: 20px;
    gap: 10px;
  }
  .smc-keystat { padding: 12px 14px; }
  .smc-ks-value { font-size: 16px; }
  .smc-content { padding: 24px 20px 16px; }
  .smc-block { font-size: 15px; }
  .smc-block h3 { font-size: 19px; }
  .smc-cta { margin: 8px 20px 0; padding: 28px 22px; }
  .smc-cta h3 {
    font-size: 20px;
    padding: 0 36px;
  }
  .smc-cta h3::before,
  .smc-cta h3::after {
    width: 32px;
  }
  .smc-cta-btn { padding: 14px 26px; font-size: 15px; width: 100%; }
  .school-modal-close { top: 12px; right: 14px; width: 40px; height: 40px; }
}

@media (max-width: 480px) {
  .smc-keystats {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   CONSULT POPUP — Lead capture cho từng trường
   ============================================================ */
.consult-popup {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.7);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 1100;
  padding: 16px;
}
.consult-popup.is-open {
  display: flex;
  animation: modalFadeIn 0.2s ease;
}
.consult-card {
  background: #fff;
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalSlideIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.consult-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  font-size: 18px;
  border: none;
  cursor: pointer;
}
.consult-card .icon-circle {
  width: 56px; height: 56px;
  background: var(--grad-cta);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin: 0 auto 14px;
  box-shadow: var(--shadow-cta);
}
.consult-card h3 { text-align: center; margin: 0 0 6px; font-size: 19px; }
.consult-card .school-ref {
  text-align: center;
  color: var(--accent-dark);
  font-weight: 700;
  margin: 0 0 18px;
  font-size: 15px;
}
.consult-form { display: flex; flex-direction: column; gap: 12px; }
.consult-form input {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  width: 100%;
}
.consult-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(249,115,22,0.15);
}
.consult-submit {
  padding: 14px;
  background: var(--grad-cta);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-cta);
  margin-top: 4px;
}
.consult-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 8px 0 0;
}
.consult-success {
  text-align: center;
  padding: 16px 0;
}
.consult-success .check {
  font-size: 48px;
  margin-bottom: 10px;
}
.consult-success h3 { margin: 0 0 6px; }
.consult-success p { color: var(--muted); margin: 0; font-size: 14px; }

/* Body scroll lock when modal open */
body.modal-open { overflow: hidden; }

/* Mobile responsive */
@media (max-width: 700px) {
  .finder-form { grid-template-columns: 1fr; padding: 22px; }
  .finder-tab { font-size: 14px; padding: 14px 8px; }
  .top-pills { grid-template-columns: 1fr; }
  .gpa-buckets { grid-template-columns: 1fr; }
  .tier-buckets { grid-template-columns: 1fr; }
  .smc-stat-cost { grid-column: span 1; }
  .rc-actions { grid-template-columns: 1fr; }
  .smc-banner, .smc-body, .consult-card { padding: 24px; }
}
