:root {
  --navy: #172d5b;
  --navy2: #1b3164;
  --gold: #d0a33d;
  --ink: #182d58;
  --muted: #69717e;
  --bg: #f5f6fa;
  --line: #dfe2e8;
  --white: #fff;
  --shadow: 0 3px 11px rgba(18, 34, 66, 0.08);
  --radius: 18px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header & Navigation */
.site-header {
  height: clamp(70px, 10vh, 98px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #eceef2;
  display: flex;
  align-items: center;
  padding: 0 clamp(16px, 4vw, 36px);
  justify-content: space-between;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.03);
}

.brand {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 13px);
}

.brand img {
  width: clamp(42px, 6vw, 62px);
  height: clamp(42px, 6vw, 62px);
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  font-size: clamp(20px, 3.5vw, 30px);
  letter-spacing: 1px;
  line-height: 1;
}

.brand-copy span {
  font-size: clamp(9px, 1.2vw, 13px);
  letter-spacing: clamp(1.5px, 0.3vw, 2.8px);
  color: #6b7079;
  margin-top: 4px;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.8vw, 40px);
}

.desktop-nav a {
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 600;
  color: #3f4958;
  transition: color 0.2s ease;
  padding: 8px 0;
}

.desktop-nav a:hover {
  color: var(--navy);
}

/* Mobile Hamburger Menu */
.menu-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  display: none;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 102;
  -webkit-tap-highlight-color: transparent;
}

.menu-btn span {
  width: 25px;
  height: 3px;
  background: var(--navy);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger active transformation */
.menu-btn.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.menu-btn.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
  position: absolute;
  right: 16px;
  top: clamp(65px, 9vh, 85px);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  padding: 10px;
  display: none;
  flex-direction: column;
  min-width: 220px;
  z-index: 101;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav a {
  padding: 12px 16px;
  font-weight: 700;
  border-radius: 8px;
  color: #3f4958;
}

.mobile-nav a:hover, .mobile-nav a:active {
  background: var(--bg);
  color: var(--navy);
}

/* Layout Shell */
.section-shell {
  max-width: 1180px;
  margin: auto;
  padding: clamp(35px, 6vw, 60px) clamp(16px, 4vw, 30px);
}

/* Hero Header */
.hero-header-section {
  text-align: center;
  padding: clamp(30px, 5vw, 50px) clamp(16px, 4vw, 30px) 10px;
}

.hero-header {
  max-width: 700px;
  margin: 0 auto;
}

.tagline {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold);
}

.hero-header h1 {
  font-size: clamp(24px, 4vw, 34px);
  margin: 10px 0 14px;
  line-height: 1.25;
}

.hero-header p {
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  margin: 0 0 20px;
}

.exam-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.exam-pills span {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* Section Headings */
.section-heading {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 42px);
}

.section-heading h2 {
  font-size: clamp(22px, 3.5vw, 30px);
  margin: 0 0 9px;
}

.section-heading p {
  color: var(--muted);
  margin: 0;
  font-size: clamp(14px, 1.8vw, 16px);
}

/* Services Section */
.services {
  background: var(--bg);
  max-width: none;
  padding-left: max(16px, calc((100vw - 1180px) / 2 + 16px));
  padding-right: max(16px, calc((100vw - 1180px) / 2 + 16px));
}

.service-grid {
  max-width: 1120px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 28px);
  min-height: 140px;
  display: flex;
  flex-direction: column;
}

.small-icon {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: #f0f2f6;
  display: grid;
  place-items: center;
  font-size: 21px;
  margin-bottom: 17px;
}

.service-card h3 {
  margin: 0 0 4px;
  font-size: clamp(15px, 1.8vw, 17px);
}

.service-card p {
  margin: 0;
  color: #777f89;
  font-size: clamp(12px, 1.4vw, 13px);
}

/* Form Section */
.apply-section {
  background: #fff;
}

.form-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: clamp(16px, 3vw, 23px);
  padding: clamp(20px, 4vw, 40px);
  box-shadow: var(--shadow);
  text-align: left;
}

.form-card h2 {
  font-size: clamp(20px, 3vw, 24px);
  margin: 0 0 6px;
  text-align: center;
}

.form-card p {
  color: var(--muted);
  font-size: clamp(13px, 1.6vw, 14px);
  margin: 0 0 24px;
  text-align: center;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.form-group label {
  font-weight: 700;
  font-size: 13px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  background: #fff;
  appearance: none;
}

.form-group input:focus {
  border-color: var(--navy);
}

.req {
  color: #d9534f;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.options-inline {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.radio-label, .check-label {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  min-height: 24px;
}

.other-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  grid-column: 1 / -1;
  width: 100%;
}

.other-inline input {
  min-height: 36px !important;
  padding: 4px 10px !important;
  font-size: 12px !important;
  flex: 1;
}

.gold-btn, .navy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 15px;
  transition: transform 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.gold-btn {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.navy-btn {
  background: var(--navy);
  color: #fff;
}

.submit-btn {
  width: 100%;
  margin-top: 10px;
  border-radius: 12px;
  min-height: 50px;
}

.gold-btn:hover, .navy-btn:hover {
  transform: translateY(-1px);
}

/* Service Charges Section */
.charges {
  padding-top: clamp(35px, 6vw, 60px);
}

.plan-group {
  max-width: 1120px;
  margin: 0 auto 40px;
}

.group-title {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.group-title > span {
  display: block;
  width: 4px;
  height: 38px;
  background: var(--gold);
  border-radius: 2px;
  flex-shrink: 0;
}

.group-title h3 {
  margin: 0;
  font-size: clamp(16px, 2vw, 19px);
}

.group-title p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.plan-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(18px, 2.5vw, 24px);
  box-shadow: var(--shadow);
  min-height: 160px;
  display: flex;
  flex-direction: column;
}

.plan-card.popular {
  background: #f7f8fc;
  border-color: #bfc5d0;
}

.popular-badge {
  position: absolute;
  right: 15px;
  top: 13px;
  background: #eeeae0;
  border-radius: 12px;
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 800;
  color: #5d5a52;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #777f89;
  margin-bottom: 5px;
}

.price {
  font-size: clamp(22px, 3vw, 25px);
  font-weight: 900;
  margin-bottom: 10px;
}

.plan-card p {
  font-size: 12px;
  color: #626b75;
  line-height: 1.4;
  margin: 0;
}

.cap-note {
  max-width: 1120px;
  margin: -16px auto 0;
  color: #737b86;
  font-size: 11px;
}

/* What You Get Section */
.get-section {
  background: var(--bg);
  max-width: none;
  padding-left: max(16px, calc((100vw - 1180px) / 2 + 16px));
  padding-right: max(16px, calc((100vw - 1180px) / 2 + 16px));
}

.benefits {
  max-width: 820px;
  margin: auto;
  display: grid;
  gap: 10px;
}

.benefit {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px 16px;
  color: #78816b;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(18, 34, 66, 0.04);
  font-size: clamp(13px, 1.6vw, 15px);
}

.benefit span {
  color: #4e5660;
  margin-left: 6px;
  font-weight: 500;
}

.note {
  max-width: 820px;
  margin: 20px auto 0;
  background: #f4f2e9;
  border: 1px solid #e7e1ca;
  border-radius: 12px;
  padding: 14px 16px;
  color: #6f736f;
  font-size: 11px;
  text-align: center;
  line-height: 1.45;
}

/* How to Apply Section */
.how {
  background: #fff;
}

.steps {
  max-width: 820px;
  margin: auto;
  display: grid;
  gap: 15px;
}

.step {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: clamp(18px, 2.5vw, 23px) 20px 20px clamp(60px, 8vw, 80px);
  min-height: 100px;
  box-shadow: var(--shadow);
}

.step > span {
  position: absolute;
  left: clamp(14px, 3vw, 22px);
  top: clamp(16px, 2.5vw, 22px);
  background: var(--navy);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.step h3 {
  margin: 0 0 4px;
  font-size: clamp(14px, 1.8vw, 15px);
}

.step p {
  margin: 0;
  color: #707783;
  font-size: clamp(12px, 1.5vw, 13px);
}

/* Need Help Section */
.help {
  background: var(--bg);
  max-width: none;
  padding-left: max(16px, calc((100vw - 1180px) / 2 + 16px));
  padding-right: max(16px, calc((100vw - 1180px) / 2 + 16px));
}

.contact-grid {
  max-width: 820px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: clamp(20px, 3vw, 26px);
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f0f2f6;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  font-size: 22px;
}

.contact-icon.gold {
  background: #f5efdd;
}

.contact-card h3 {
  margin: 0 0 2px;
  font-size: 15px;
}

.contact-card p {
  margin: 0 0 16px;
  color: #7a8088;
  font-size: 13px;
}

.contact-card .gold-btn,
.contact-card .navy-btn {
  width: 100%;
  min-height: 44px;
  font-size: 14px;
}

/* Footer */
.footer {
  text-align: center;
  padding: clamp(45px, 6vw, 75px) 20px 35px;
  background: #fff;
  color: #68707b;
}

.footer-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  margin-bottom: 16px;
}

.footer-brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.footer-brand strong {
  font-size: 22px;
}

.footer p {
  margin: 6px 0;
  font-size: 14px;
}

.footer-exams {
  color: var(--navy);
  font-weight: 600;
}

.footer-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 28px;
}

.footer-block strong {
  font-size: 16px;
  color: var(--navy);
}

.footer-block a {
  color: #68707b;
}

.copyright {
  border-top: 1px solid var(--line);
  max-width: 1050px;
  margin: 40px auto 0;
  padding-top: 24px;
  font-size: 12px;
}

/* Legal Pages */
.legal-header {
  gap: 16px;
}

.legal-home-link {
  min-height: 42px;
  padding: 0 18px;
  white-space: nowrap;
}

.legal-content {
  max-width: 850px;
  margin: 0 auto;
  padding: 58px 24px 72px;
}

.legal-content .tagline {
  display: block;
  margin-bottom: 10px;
}

.legal-content h1 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.2;
}

.legal-content p {
  color: var(--muted);
  line-height: 1.75;
}

.legal-content .legal-meta {
  margin: 0 0 24px;
  font-size: 14px;
}

.legal-section {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.legal-section p {
  margin: 0 0 10px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-content a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-links {
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Breakpoint Adaptations */
@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }
  .menu-btn {
    display: flex;
  }
  .desktop-break {
    display: none;
  }
}

@media (max-width: 600px) {
  .legal-content {
    padding: 40px 18px 52px;
  }

  .legal-content h1 {
    font-size: 28px;
  }

  .legal-links {
    gap: 14px;
  }

  .options-grid {
    grid-template-columns: 1fr;
  }
  
  .options-inline {
    flex-direction: column;
    gap: 10px;
  }

  .plans {
    grid-template-columns: 1fr;
  }

  .step {
    padding-left: 58px;
  }
}

@media (max-width: 360px) {
  .brand-copy span {
    display: none;
  }

  .form-card {
    padding: 16px 12px;
  }

  .benefit {
    font-size: 12px;
  }
}