/* =========================================================
   EduConnect Tutors — Stylesheet
   Palette: Deep Royal Blue + Soft Sky + White glass
   Fonts:   Sora (display) / Inter (body & UI)
   ========================================================= */

:root {
  /* ---- Color tokens ---- */
  --blue-900: #0B1E4D;
  --blue-800: #0B3FCB;
  --blue-700: #2F6BFF;
  --blue-500: #5B8DFF;
  --blue-200: #C7DBFF;
  --blue-100: #EAF1FF;
  --sky-glow: #DCE9FF;
  --white: #ffffff;
  --ink: #10193A;
  --ink-soft: #4A5578;
  --line: rgba(11, 30, 77, 0.09);

  /* ---- Surfaces ---- */
  --bg: #F5F8FF;
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-blur: 18px;

  /* ---- Type ---- */
  --font-display: "Sora", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  /* ---- Shape / motion ---- */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-soft: 0 20px 45px -20px rgba(11, 30, 77, 0.25);
  --shadow-card: 0 10px 30px -12px rgba(11, 30, 77, 0.18);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

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

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

input, select, textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--blue-900);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Ambient background texture across the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(700px 500px at 85% -5%, var(--sky-glow), transparent 60%),
    radial-gradient(600px 500px at -5% 20%, var(--blue-100), transparent 55%);
  pointer-events: none;
}

/* =========================================================
   REUSABLE UI
   ========================================================= */
.text-gradient {
  background: linear-gradient(100deg, var(--blue-800), var(--blue-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--blue-100);
  border: 1px solid var(--blue-200);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  box-shadow: var(--shadow-card);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), opacity .2s;
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn:disabled:hover svg { transform: none; }

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-800));
  box-shadow: 0 12px 28px -10px rgba(11, 63, 203, 0.55);
}
.btn--primary:hover:not(:disabled) {
  box-shadow: 0 16px 34px -8px rgba(11, 63, 203, 0.6);
  transform: translateY(-2px);
}

.btn--ghost {
  color: var(--blue-800);
  background: #fff;
  border: 1px solid var(--line);
}
.btn--ghost:hover:not(:disabled) {
  background: var(--blue-100);
  transform: translateY(-2px);
}

.btn--lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn--nav { display: none; }

/* Scroll reveal (JS toggles .is-visible) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.section-head {
  max-width: 620px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 0.75rem; }
.section-head p { color: var(--ink-soft); font-size: 1.02rem; }

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(245, 248, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--blue-900);
  flex-shrink: 0;
}
.brand__text b { font-weight: 700; color: var(--blue-800); }

.brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand__mark img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0 auto;
  font-weight: 500;
  font-size: 0.94rem;
}
.nav-links a {
  position: relative;
  color: var(--ink-soft);
  transition: color .2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--blue-700);
  transition: width .25s var(--ease);
  border-radius: 2px;
}
.nav-links a:hover { color: var(--blue-800); }
.nav-links a:hover::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}
.hamburger span {
  height: 2px;
  width: 100%;
  background: var(--blue-900);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: 5rem 0 6rem;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  opacity: 0.55;
}
.hero__glow--a {
  width: 480px; height: 480px;
  background: var(--blue-200);
  top: -180px; right: -120px;
}
.hero__glow--b {
  width: 380px; height: 380px;
  background: var(--sky-glow);
  bottom: -160px; left: -100px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.75rem;
}

.hero__stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.hero__stat { display: flex; flex-direction: column; }
.hero__stat strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--blue-800); }
.hero__stat span { font-size: 0.85rem; color: var(--ink-soft); }

/* Floating hero visual */
.hero__visual {
  position: relative;
  min-height: 380px;
}

.floating-card {
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
}

.floating-card--main {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 2.5rem auto 0;
  animation: float 6s ease-in-out infinite;
}

.fc-row { display: flex; align-items: center; gap: 0.8rem; }
.fc-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-800));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.fc-name { font-weight: 600; font-size: 0.95rem; }
.fc-sub { font-size: 0.8rem; color: var(--ink-soft); }
.fc-badge {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1a9e5c;
  background: rgba(26, 158, 92, 0.12);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.fc-divider { height: 1px; background: var(--line); margin: 1rem 0; }
.fc-row--stats { justify-content: space-between; text-align: center; }
.fc-row--stats > div { display: flex; flex-direction: column; gap: 0.15rem; }
.fc-row--stats strong { font-size: 0.95rem; color: var(--blue-800); }
.fc-row--stats span { font-size: 0.72rem; color: var(--ink-soft); }

.floating-card--small {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-900);
  padding: 0.8rem 1.1rem;
  animation: float 7s ease-in-out infinite;
}
.floating-card--top { top: 0; left: -10px; animation-delay: .3s; }
.floating-card--bottom { bottom: 10px; right: -10px; animation-delay: .8s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
  .floating-card, .floating-card--small, .floating-card--main { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* =========================================================
   BENEFITS
   ========================================================= */
.benefits { padding: 5rem 0; }

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.benefit-card {
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.benefit-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--blue-100), #fff);
  border: 1px solid var(--blue-200);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.benefit-icon svg { width: 24px; height: 24px; }

.benefit-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.benefit-card p { color: var(--ink-soft); font-size: 0.92rem; }

/* =========================================================
   REGISTRATION FORM
   ========================================================= */
.register { padding: 5rem 0 6rem; }

.form-shell {
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  max-width: 880px;
  margin: 0 auto;
}

/* ---- Progress bar ---- */
.progress { margin-bottom: 2.5rem; }
.progress__track {
  position: relative;
  height: 4px;
  background: var(--blue-100);
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.progress__fill {
  position: absolute;
  left: 0; top: 0; height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-500));
  border-radius: 999px;
  transition: width .5s var(--ease);
}

.progress__steps {
  display: flex;
  justify-content: space-between;
}
.progress__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  color: var(--ink-soft);
}
.progress__dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border: 2px solid var(--blue-200);
  color: var(--blue-200);
  transition: all .35s var(--ease);
}
.progress__dot svg { width: 16px; height: 16px; }
.progress__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
}

.progress__step.is-active .progress__dot {
  border-color: var(--blue-700);
  color: var(--blue-700);
  box-shadow: 0 0 0 5px var(--blue-100);
}
.progress__step.is-active .progress__label { color: var(--blue-800); }

.progress__step.is-complete .progress__dot {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-800));
  border-color: transparent;
  color: #fff;
}
.progress__step.is-complete .progress__label { color: var(--blue-800); }

/* ---- Steps ---- */
.form-step {
  display: none;
  animation: stepIn .45s var(--ease);
}
.form-step.is-active { display: block; }

@keyframes stepIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

.step-title { font-size: 1.4rem; margin-bottom: 0.35rem; }
.step-desc { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1.75rem; }

.group-title {
  font-size: 0.95rem;
  color: var(--blue-800);
  margin: 1.75rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--line);
}
.group-title:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
}
.field--full { grid-column: 1 / -1; }
.field--check { grid-column: 1 / -1; margin-top: -0.5rem; }

.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--blue-900);
}
.field label em {
  color: #E4573D;
  font-style: normal;
  margin-left: 2px;
}
.field label .optional {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="email"],
.field input[type="number"],
.field select,
.field textarea {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: rgba(255,255,255,0.85);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 60px; }

.field select[multiple] { min-height: 150px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-700);
  box-shadow: 0 0 0 4px var(--blue-100);
}

.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
  border-color: #E4573D;
}
.field input.is-invalid:focus,
.field select.is-invalid:focus,
.field textarea.is-invalid:focus {
  box-shadow: 0 0 0 4px rgba(228, 87, 61, 0.14);
}

.field-error {
  font-size: 0.78rem;
  color: #E4573D;
  min-height: 1em;
}

.field-hint {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.checkbox-inline {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.checkbox-inline input {
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--blue-700);
  flex-shrink: 0;
  cursor: pointer;
}

/* Checkbox pills — touch-friendly multi-select replacement for Preferred Class */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.65rem;
}
.check-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: rgba(255,255,255,0.85);
  cursor: pointer;
  font-size: 0.87rem;
  font-weight: 500;
  transition: all .2s;
  /* generous touch target for mobile */
  min-height: 44px;
}
.check-pill input {
  width: 18px; height: 18px;
  flex-shrink: 0;
  accent-color: var(--blue-700);
  cursor: pointer;
}
.check-pill:has(input:checked) {
  border-color: var(--blue-700);
  background: var(--blue-100);
  color: var(--blue-800);
  font-weight: 600;
}
.checkbox-grid.is-invalid .check-pill {
  border-color: #E4573D;
}

/* Radio pills (Home Tuition / Online / Both) */
.radio-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.radio-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: rgba(255,255,255,0.85);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all .2s;
}
.radio-pill input { accent-color: var(--blue-700); }
.radio-pill:has(input:checked) {
  border-color: var(--blue-700);
  background: var(--blue-100);
  color: var(--blue-800);
  font-weight: 600;
}

/* ---- Upload / dropzone ---- */
.upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.upload-field { display: flex; flex-direction: column; gap: 0.5rem; }
.upload-field label {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--blue-900);
}
.upload-field label em { color: #E4573D; font-style: normal; }

.dropzone {
  position: relative;
  border: 2px dashed var(--blue-200);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.6);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  overflow: hidden;
}
.dropzone:hover { border-color: var(--blue-700); background: var(--blue-100); }
.dropzone.is-dragover {
  border-color: var(--blue-700);
  background: var(--blue-100);
  box-shadow: 0 0 0 4px var(--blue-100);
}
.dropzone.is-invalid { border-color: #E4573D; }

.dropzone__prompt {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.dropzone__prompt strong { color: var(--blue-800); }
.dropzone__prompt svg { margin-bottom: 0.15rem; }

.dropzone__preview {
  display: none;
  position: relative;
  width: 100%;
  height: 100%;
}
.dropzone.has-file .dropzone__prompt { display: none; }
.dropzone.has-file .dropzone__preview { display: block; }

.dropzone__preview img {
  width: 100%;
  height: 156px;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 4px);
}
.dropzone__remove {
  position: absolute;
  top: 8px; right: 8px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(16, 25, 58, 0.75);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  z-index: 2;
}
.dropzone__filename {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(16, 25, 58, 0.65);
  color: #fff;
  font-size: 0.72rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0 0 calc(var(--radius-md) - 4px) calc(var(--radius-md) - 4px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Review step ---- */
.review {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.review-group {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,0.55);
}
.review-group h4 {
  font-size: 0.95rem;
  color: var(--blue-800);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.review-edit-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-700);
  cursor: pointer;
}
.review-edit-link:hover { text-decoration: underline; }

.review-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.5rem; }
.review-row { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.88rem; }
.review-row--full { grid-column: 1 / -1; }
.review-row span:first-child { color: var(--ink-soft); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; }
.review-row span:last-child { color: var(--ink); font-weight: 500; word-break: break-word; }

.review-thumbs { display: flex; gap: 0.75rem; grid-column: 1/-1; flex-wrap: wrap; }
.review-thumbs img {
  width: 80px; height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.review-thumbs .no-file {
  width: 80px; height: 80px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 0.3rem;
}

.declaration {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--blue-100);
  border: 1px solid var(--blue-200);
}

/* ---- Form nav buttons ---- */
.form-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.form-nav .btn--primary { margin-left: auto; }

/* =========================================================
   FAQ / ACCORDION
   ========================================================= */
.faq { padding: 5rem 0; }

.accordion {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.accordion__item {
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  overflow: hidden;
}
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--blue-900);
  text-align: left;
}
.accordion__trigger svg {
  width: 18px; height: 18px;
  color: var(--blue-700);
  transition: transform .3s var(--ease);
  flex-shrink: 0;
}
.accordion__item.is-open .accordion__trigger svg { transform: rotate(180deg); }

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
}
.accordion__panel p {
  padding: 0 1.4rem 1.15rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact { padding: 5rem 0 6rem; }
.contact__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: center;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}
.contact-card {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: left;
}
.contact-card h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.contact-card p { color: var(--ink-soft); font-size: 0.88rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--blue-900);
  color: rgba(255,255,255,0.75);
  padding-top: 3rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer__brand-row { display: flex; align-items: center; gap: 0.65rem; }
.footer__brand .brand__text { color: #fff; font-family: var(--font-display); font-size: 1.15rem; }
.footer__brand .brand__text b { color: var(--blue-200); }
.footer__brand p { max-width: 320px; margin-top: 0.6rem; font-size: 0.88rem; }

.footer__links {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}
.footer__links a { font-size: 0.9rem; transition: color .2s; }
.footer__links a:hover { color: #fff; }

.footer__bottom {
  text-align: center;
  padding: 1.4rem 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* =========================================================
   OVERLAYS: SUCCESS + LOADING
   ========================================================= */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 30, 77, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
  padding: 1.5rem;
}
.overlay.is-visible { opacity: 1; pointer-events: auto; }

.overlay__card {
  max-width: 420px;
  width: 100%;
  text-align: center;
  padding: 2.75rem 2.25rem;
  border-radius: var(--radius-xl);
  transform: scale(0.9);
  transition: transform .35s var(--ease);
}
.overlay.is-visible .overlay__card { transform: scale(1); }

.overlay__card h3 { font-size: 1.3rem; margin: 1.25rem 0 0.6rem; }
.overlay__card p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 1.75rem; }

.success-check { display: flex; justify-content: center; }
.success-check svg { width: 84px; height: 84px; }
.success-check__circle {
  stroke: var(--blue-700);
  stroke-width: 3;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: circleDraw .6s var(--ease) forwards;
}
.success-check__mark {
  stroke: var(--blue-700);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: markDraw .4s var(--ease) .55s forwards;
}
@keyframes circleDraw { to { stroke-dashoffset: 0; } }
@keyframes markDraw { to { stroke-dashoffset: 0; } }

.loading-card {
  text-align: center;
  color: #fff;
}
.spinner {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  margin: 0 auto 1.25rem;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { min-height: 320px; order: -1; }
  .floating-card--main { max-width: 300px; }
  .contact__inner { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .btn--nav { display: none; }
  .hamburger { display: flex; }

  .navbar.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    padding: 1.25rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }
  .navbar.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .navbar.nav-open .hamburger span:nth-child(2) { opacity: 0; }
  .navbar.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 720px) {
  .form-shell { padding: 1.5rem 1.1rem; border-radius: var(--radius-lg); }
  .form-grid { grid-template-columns: 1fr; }
  .upload-grid { grid-template-columns: 1fr; }
  .review-rows { grid-template-columns: 1fr; }
  .progress__label { display: none; }
  .progress__dot { width: 28px; height: 28px; }
}

@media (max-width: 520px) {
  .hero { padding: 3rem 0 4rem; }
  .hero__stats { gap: 1.5rem; }
  .section-head { margin-bottom: 2rem; }
  .benefits, .register, .faq, .contact { padding: 3.5rem 0; }
  .form-nav { flex-wrap: wrap; }
  .form-nav .btn { flex: 1; }
}
