/* ============================================================
   Oversea Education UK — shared site styles
   Brand: navy / orange
   ============================================================ */
:root {
  --navy: #12294b;
  --navy-dark: #0b1c34;
  --navy-light: #1d3d6b;
  --orange: #f47b20;
  --orange-dark: #d9660e;
  --orange-soft: #fdeadb;
  --ink: #24303f;
  --muted: #5b6b7d;
  --line: #dfe6ee;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(11, 28, 52, 0.10);
  --shadow-lg: 0 14px 40px rgba(11, 28, 52, 0.18);
  --font: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-light); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.section-title { font-size: 32px; line-height: 1.2; color: var(--navy); margin: 0 0 8px; }
.section-kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 10px;
}
.section-sub { color: var(--muted); max-width: 640px; margin: 0 0 32px; }
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 8px; border: 2px solid transparent;
  font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: var(--orange-dark); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-light); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ---------- Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy); border-bottom: 3px solid var(--orange);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 9px; background: var(--orange);
  color: #fff; font-weight: 800; font-size: 17px; display: flex; align-items: center;
  justify-content: center; letter-spacing: -0.5px; flex-shrink: 0;
}
.brand__name { color: #fff; font-weight: 700; font-size: 18px; line-height: 1.15; }
.brand__name small { display: block; font-weight: 400; font-size: 11px; color: #b8c6da; letter-spacing: 0.08em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: #dce5f0; text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: #fff; }
.site-nav a.is-active { color: #fff; border-bottom-color: var(--orange); }
.site-nav .btn { padding: 10px 20px; font-size: 14px; }
.nav-toggle {
  display: none; background: none; border: 0; color: #fff; font-size: 26px;
  cursor: pointer; padding: 6px 10px; line-height: 1;
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-dark); padding: 10px 20px 20px; box-shadow: var(--shadow-lg);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .site-nav .btn { margin-top: 14px; text-align: center; }
}

/* ---------- Hero (rotating) ---------- */
.hero {
  position: relative; min-height: 560px; display: flex; align-items: center;
  background: var(--navy-dark); overflow: hidden; isolation: isolate;
}
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide {
  position: absolute; inset: 0; opacity: 0;
  background-size: cover; background-position: center;
  transition: opacity 1.6s ease-in-out;
  transform: scale(1.04);
}
.hero__slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: no-preference) and (min-width: 769px) {
  .hero__slide.is-active { animation: heroDrift 9s ease-out forwards; }
  @keyframes heroDrift { from { transform: scale(1.08); } to { transform: scale(1.0); } }
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(11,28,52,0.90) 0%, rgba(11,28,52,0.72) 45%, rgba(11,28,52,0.48) 100%);
}
.hero__content { padding: 90px 0; max-width: 720px; }
.hero__headline {
  color: #fff; font-size: clamp(32px, 5vw, 52px); line-height: 1.12;
  margin: 0 0 18px; font-weight: 800; min-height: 2.3em;
}
.hero__headline em { font-style: normal; color: var(--orange); }
.hero__sub { color: #d9e2ee; font-size: clamp(16px, 2vw, 19px); margin: 0 0 30px; max-width: 560px; min-height: 3.2em; }
.hero__text-rotator .hero__headline,
.hero__text-rotator .hero__sub { transition: opacity 0.7s ease; }
.hero__text-rotator.is-fading .hero__headline,
.hero__text-rotator.is-fading .hero__sub { opacity: 0; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__dots { display: flex; gap: 8px; margin-top: 38px; }
.hero__dot {
  width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,0.35);
}
.hero__dot.is-active { background: var(--orange); }
@media (max-width: 768px) {
  .hero { min-height: 480px; }
  .hero__content { padding: 64px 0; }
  .hero__slide { transition: opacity 0.8s ease-in-out; transform: none; }
}

/* ---------- Trust bar ---------- */
.trust-bar { background: #fff; border-bottom: 1px solid var(--line); padding: 26px 0; }
.trust-bar__label {
  text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 18px;
}
.trust-bar__track { display: flex; align-items: center; justify-content: center; gap: 44px; flex-wrap: wrap; }
.trust-bar__logo {
  height: 44px; min-width: 120px; display: flex; align-items: center; justify-content: center;
  color: #9aa8b8; font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  border: 1px dashed var(--line); border-radius: 6px; padding: 0 16px;
  filter: grayscale(1); opacity: 0.85; transition: filter 0.2s, opacity 0.2s;
}
.trust-bar__logo:hover { filter: grayscale(0); opacity: 1; }
.trust-bar__logo img { max-height: 36px; width: auto; }

/* ---------- Stats ---------- */
.stats { background: var(--navy); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.stat { text-align: center; padding: 10px; }
.stat__number { font-size: clamp(34px, 4vw, 46px); font-weight: 800; color: var(--orange); line-height: 1.1; }
.stat__label { color: #c3d0e0; font-size: 15px; margin-top: 8px; }
@media (max-width: 860px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Card grids ---------- */
.card-grid { display: grid; gap: 24px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .card-grid--3, .card-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid--3, .card-grid--4 { grid-template-columns: 1fr; } }

.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow);
}
.info-card h3 { color: var(--navy); margin: 0 0 10px; font-size: 20px; }
.info-card p { color: var(--muted); font-size: 15px; margin: 0; }
.info-card__icon {
  width: 48px; height: 48px; border-radius: 10px; background: var(--orange-soft);
  color: var(--orange-dark); display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}

/* Photo cards (nations / destination preview) */
.photo-card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 240px;
  display: flex; align-items: flex-end; text-decoration: none;
  background: linear-gradient(135deg, var(--navy-light), var(--navy-dark));
  box-shadow: var(--shadow); cursor: pointer; border: 0; text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.photo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.photo-card__img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.photo-card__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,28,52,0.88) 0%, rgba(11,28,52,0.25) 55%, rgba(11,28,52,0.05) 100%);
}
.photo-card__body { position: relative; padding: 22px; width: 100%; }
.photo-card__title { color: #fff; font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.photo-card__meta { color: #cfdae8; font-size: 14px; margin: 0; }
.photo-card.is-selected { outline: 3px solid var(--orange); outline-offset: 2px; }
.photo-card__badge {
  position: absolute; top: 14px; right: 14px; background: var(--orange); color: #fff;
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
}

/* ---------- Testimonials ---------- */
.testimonials { background: var(--bg-soft); }
.testimonial-rotator { position: relative; }
.testimonial {
  display: none; grid-template-columns: 340px 1fr; gap: 40px; align-items: center;
}
.testimonial.is-active { display: grid; }
.testimonial__photo {
  border-radius: var(--radius); min-height: 300px; background: linear-gradient(135deg, var(--navy-light), var(--navy-dark));
  background-size: cover; background-position: center; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; color: #8fa3bd; font-size: 13px;
}
.testimonial__quote { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.5; color: var(--navy); margin: 0 0 20px; font-weight: 500; }
.testimonial__quote::before { content: "\201C"; color: var(--orange); font-size: 1.6em; line-height: 0; vertical-align: -0.35em; margin-right: 6px; font-weight: 800; }
.testimonial__who { color: var(--muted); font-size: 15px; }
.testimonial__who strong { color: var(--navy); }
.testimonial-nav { display: flex; gap: 8px; margin-top: 28px; align-items: center; }
.testimonial-nav button {
  width: 11px; height: 11px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: #c3cfdd;
}
.testimonial-nav button.is-active { background: var(--orange); }
@media (max-width: 820px) {
  .testimonial { grid-template-columns: 1fr; }
  .testimonial__photo { min-height: 220px; }
}

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--navy); font-size: 14px; margin-bottom: 6px; }
.field .req { color: var(--orange-dark); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 15px; color: var(--ink); background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244,123,32,0.18);
}
.field .field-error { display: none; color: #c0392b; font-size: 13px; margin-top: 5px; }
.field.has-error input, .field.has-error textarea { border-color: #c0392b; }
.field.has-error .field-error { display: block; }
.field .hint { color: var(--muted); font-size: 13px; margin-top: 5px; }

/* Consultation form panel */
.consult-panel {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--orange); padding: 34px 30px;
}
.consult-panel h3 { margin: 0 0 6px; color: var(--navy); font-size: 24px; }
.consult-panel > p { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.consult-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .consult-grid { grid-template-columns: 1fr; } }

.form-status { display: none; padding: 14px 16px; border-radius: 8px; font-size: 14px; margin-top: 14px; }
.form-status.is-ok { display: block; background: #e8f6ec; color: #1e6b34; border: 1px solid #bfe4c8; }
.form-status.is-err { display: block; background: #fdecea; color: #a4362a; border: 1px solid #f2c4bd; }

/* ---------- Destinations page ---------- */
.page-hero {
  background: var(--navy); color: #fff; padding: 56px 0 48px; position: relative; overflow: hidden;
}
.page-hero h1 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 42px); }
.page-hero p { color: #c9d6e5; max-width: 640px; margin: 0; }

.step-label {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy);
  font-size: 15px; margin-bottom: 16px;
}
.step-label__num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0;
}

.city-pick { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .city-pick { grid-template-columns: 1fr; } }
.city-overview {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.city-overview__img {
  height: 190px; background-size: cover; background-position: center;
  background-color: var(--navy-light);
  background-image: linear-gradient(135deg, var(--navy-light), var(--navy-dark));
  display: flex; align-items: flex-end;
}
.city-overview__img span {
  color: #fff; font-weight: 700; font-size: 20px; padding: 14px 18px; width: 100%;
  background: linear-gradient(to top, rgba(11,28,52,0.85), transparent);
}
.city-overview__body { padding: 18px 20px; }
.city-overview__body p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Searchable university dropdown */
.uni-search { position: relative; }
.uni-search input {
  width: 100%; padding: 13px 44px 13px 16px; border: 1.5px solid var(--line);
  border-radius: 8px; font-size: 15px; font-family: inherit;
}
.uni-search input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244,123,32,0.18); }
.uni-search__icon { position: absolute; right: 14px; top: 13px; color: var(--muted); pointer-events: none; }
.uni-search__list {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg);
  max-height: 300px; overflow-y: auto; display: none;
}
.uni-search__list.is-open { display: block; }
.uni-search__item {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  padding: 12px 16px; font-size: 15px; font-family: inherit; cursor: pointer; color: var(--ink);
  border-bottom: 1px solid var(--bg-soft);
}
.uni-search__item:hover, .uni-search__item.is-highlighted { background: var(--orange-soft); }
.uni-search__item small { display: block; color: var(--muted); font-size: 12.5px; }
.uni-search__empty { padding: 14px 16px; color: var(--muted); font-size: 14px; }

/* ---------- Filter panel ---------- */
.filter-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 28px;
}
.filter-panel__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .filter-panel__row { grid-template-columns: 1fr; } }
.filter-group__label {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 10px; display: block;
}
.seg { display: inline-flex; flex-wrap: wrap; background: var(--bg-soft); border-radius: 8px; padding: 4px; gap: 4px; }
.seg button {
  border: 0; background: transparent; padding: 8px 14px; border-radius: 6px; cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.seg button.is-active { background: var(--navy); color: #fff; }
.seg button:hover:not(.is-active) { color: var(--navy); }

.test-checks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.test-checks label {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink);
  background: var(--bg-soft); border-radius: 999px; padding: 7px 14px; cursor: pointer;
  border: 1.5px solid transparent; user-select: none;
}
.test-checks label.is-checked { border-color: var(--orange); background: var(--orange-soft); color: var(--orange-dark); font-weight: 600; }
.test-checks input { accent-color: var(--orange); margin: 0; }

/* Fee range (dual slider) */
.fee-slider { margin-top: 6px; }
.fee-slider__values { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.fee-slider__track { position: relative; height: 34px; }
.fee-slider__track input[type="range"] {
  position: absolute; left: 0; right: 0; top: 8px; width: 100%; margin: 0;
  -webkit-appearance: none; appearance: none; background: none; pointer-events: none; height: 18px;
}
.fee-slider__rail {
  position: absolute; left: 0; right: 0; top: 14px; height: 6px; border-radius: 3px; background: var(--line);
}
.fee-slider__fill { position: absolute; top: 14px; height: 6px; border-radius: 3px; background: var(--orange); }
.fee-slider__track input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto;
  width: 20px; height: 20px; border-radius: 50%; background: var(--navy);
  border: 3px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,0.3); cursor: grab;
}
.fee-slider__track input[type="range"]::-moz-range-thumb {
  pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--navy);
  border: 3px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,0.3); cursor: grab;
}
.filter-panel__meta { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; flex-wrap: wrap; gap: 10px; }
.filter-count { font-size: 14px; color: var(--muted); }
.filter-count strong { color: var(--navy); }
.filter-reset { background: none; border: 0; color: var(--orange-dark); font-weight: 600; font-size: 14px; cursor: pointer; font-family: inherit; padding: 0; }
.filter-reset:hover { text-decoration: underline; }

/* ---------- Course cards ---------- */
.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 820px) { .course-grid { grid-template-columns: 1fr; } }
.course-card {
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--orange);
  border-radius: 10px; padding: 22px 24px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
}
.course-card--placeholder { border-left-color: #b9c5d3; background: repeating-linear-gradient(45deg, #fff, #fff 12px, #fafbfd 12px, #fafbfd 24px); }
.course-card__top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.course-card__title { font-size: 17.5px; font-weight: 700; color: var(--navy); margin: 0; line-height: 1.35; }
.badge {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 4px 11px; border-radius: 999px; white-space: nowrap;
}
.badge--foundation { background: #e7eef9; color: #2a5aa8; }
.badge--undergraduate { background: var(--orange-soft); color: var(--orange-dark); }
.badge--postgraduate { background: #12294b; color: #fff; }
.badge--pending { background: #eef1f5; color: #7c8a99; }
.badge--intl { background: #e6f4ea; color: #1e7a3d; margin-left: 8px; vertical-align: middle; }
.course-card__where { color: var(--muted); font-size: 14px; margin: 0; }
.course-card__where strong { color: var(--ink); }
.course-card__facts { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: var(--muted); }
.course-card__facts span strong { color: var(--navy); font-weight: 700; }
.course-card__fee { font-size: 20px; font-weight: 800; color: var(--navy); }
.course-card__fee small { font-size: 12px; font-weight: 500; color: var(--muted); }
.course-card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; gap: 12px; flex-wrap: wrap; }
.course-card__eng { font-size: 13px; color: var(--muted); }
.eng-pill { display: inline-block; font-size: 11px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; margin-left: 4px; color: var(--navy); }
.results-empty {
  background: #fff; border: 1.5px dashed var(--line); border-radius: var(--radius);
  padding: 44px 24px; text-align: center; color: var(--muted);
}
.results-empty strong { color: var(--navy); display: block; font-size: 17px; margin-bottom: 6px; }
.results-note { font-size: 13px; color: var(--muted); background: var(--orange-soft); border-radius: 8px; padding: 10px 16px; margin: 0 0 18px; }

/* ---------- Apply wizard ---------- */
.wizard { max-width: 680px; margin: 0 auto; }
.wizard-progress { display: flex; gap: 0; margin-bottom: 34px; }
.wizard-progress__step { flex: 1; text-align: center; position: relative; }
.wizard-progress__step::before {
  content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 3px; background: var(--line);
}
.wizard-progress__step:first-child::before { display: none; }
.wizard-progress__step.is-done::before, .wizard-progress__step.is-current::before { background: var(--orange); }
.wizard-progress__dot {
  width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 3px solid var(--line);
  color: var(--muted); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center;
  justify-content: center; position: relative; z-index: 1;
}
.wizard-progress__step.is-current .wizard-progress__dot { border-color: var(--orange); color: var(--orange-dark); }
.wizard-progress__step.is-done .wizard-progress__dot { background: var(--orange); border-color: var(--orange); color: #fff; }
.wizard-progress__label { display: block; font-size: 12.5px; color: var(--muted); margin-top: 7px; font-weight: 600; }
.wizard-progress__step.is-current .wizard-progress__label { color: var(--navy); }

.wizard-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--orange); padding: 36px 34px;
}
.wizard-step { display: none; }
.wizard-step.is-active { display: block; }
.wizard-step h2 { color: var(--navy); margin: 0 0 6px; font-size: 23px; }
.wizard-step > p { color: var(--muted); font-size: 14.5px; margin: 0 0 24px; }
.wizard-actions { display: flex; justify-content: space-between; margin-top: 28px; gap: 12px; }
.wizard-actions .btn { min-width: 120px; }

.confirm-box {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px;
}
.confirm-box dl { margin: 0; display: grid; grid-template-columns: 130px 1fr; row-gap: 10px; }
.confirm-box dt { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.confirm-box dd { margin: 0; color: var(--navy); font-weight: 600; font-size: 14.5px; }
.confirm-box .lock { color: var(--muted); font-size: 12.5px; margin-top: 14px; display: block; }

.wizard-success { text-align: center; padding: 20px 0; }
.wizard-success__icon {
  width: 74px; height: 74px; border-radius: 50%; background: #e8f6ec; color: #1e6b34;
  font-size: 36px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.wizard-success h2 { color: var(--navy); margin: 0 0 10px; }
.wizard-success p { color: var(--muted); max-width: 440px; margin: 0 auto 10px; }
.wizard-success .ref { font-weight: 700; color: var(--navy); background: var(--orange-soft); display: inline-block; padding: 6px 16px; border-radius: 999px; margin: 10px 0 20px; }

/* ---------- Who we work with ---------- */
.audience-card { border-top: 4px solid var(--orange); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #a9b8cb; padding: 48px 0 28px; margin-top: 0; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 34px; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 15px; margin: 0 0 14px; letter-spacing: 0.04em; }
.site-footer a { color: #a9b8cb; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; font-size: 14px; }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 13px; text-align: center; }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.28); transition: transform 0.15s;
}
.whatsapp-fab:hover { transform: scale(1.07); }
.whatsapp-fab svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- consent checkbox ---------- */
.consent-check {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13.5px; color: var(--muted); font-weight: 400; cursor: pointer;
}
.consent-check input { margin: 3px 0 0; accent-color: var(--orange); flex-shrink: 0; width: 16px; height: 16px; }
.consent-check a { color: var(--navy-light); }

/* ---------- 404 page ---------- */
.notfound { text-align: center; padding: 90px 20px; }
.notfound__code { font-size: clamp(80px, 16vw, 150px); font-weight: 800; color: var(--navy); line-height: 1; }
.notfound__code em { font-style: normal; color: var(--orange); }
.notfound h1 { color: var(--navy); margin: 10px 0 12px; font-size: 26px; }
.notfound p { color: var(--muted); max-width: 460px; margin: 0 auto 28px; }

/* ---------- Visa guide page ---------- */
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 620px) { .card-grid--2 { grid-template-columns: 1fr; } }

.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); font-size: 14.5px; }
.data-table th { background: var(--navy); color: #fff; text-align: left; padding: 12px 16px; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: var(--orange-soft); }
.data-table a { color: var(--navy-light); font-weight: 600; }
.table-wrap { overflow-x: auto; }

.alert-banner {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--orange-soft); border: 1.5px solid var(--orange);
  border-left-width: 6px; border-radius: 10px; padding: 18px 20px; margin: 24px 0;
}
.alert-banner__icon { font-size: 22px; line-height: 1.2; flex-shrink: 0; }
.alert-banner strong { color: var(--navy); }
.alert-banner p { margin: 0; color: var(--ink); font-size: 14.5px; }

.last-checked {
  display: inline-block; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.35);
  color: #fff; font-size: 12.5px; font-weight: 600; padding: 5px 14px; border-radius: 999px; margin-top: 14px;
}

.source-link { font-size: 13px; color: var(--muted); margin-top: 18px; }
.source-link a { color: var(--navy-light); }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding-left: 28px; position: relative; margin-bottom: 10px; color: var(--muted); font-size: 15px; }
.check-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--orange); font-weight: 800; }
.cross-list li::before { content: "\2715"; color: #c0392b; }

.faq { border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 12px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--navy); font-size: 15.5px; list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--orange); font-weight: 400; }
.faq[open] summary::after { content: "\2212"; }
.faq summary:focus-visible { outline: 3px solid rgba(244,123,32,0.5); border-radius: 10px; }
.faq__body { padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; }
.faq__body p { margin: 0 0 10px; }

/* ---------- Course search + subject grouping ---------- */
.course-search-input, #subjectSelect {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 15px; color: var(--ink); background: #fff;
}
.course-search-input:focus, #subjectSelect:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244,123,32,0.18);
}

.subject-group { border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; }
.subject-group > summary {
  cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--navy); font-size: 16px;
  list-style: none; display: flex; align-items: center; gap: 12px; position: relative; padding-right: 46px;
  background: var(--bg-soft); border-left: 5px solid var(--orange);
}
.subject-group > summary::-webkit-details-marker { display: none; }
.subject-group > summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 24px; color: var(--orange); font-weight: 400; line-height: 1;
}
.subject-group[open] > summary::after { content: "\2212"; }
.subject-group > summary:focus-visible { outline: 3px solid rgba(244,123,32,0.5); }
.subject-group__count {
  margin-left: auto; margin-right: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px;
}
.subject-group__body { padding: 18px 18px 6px; }
.subject-group__body .course-grid { margin-bottom: 6px; }
.subject-more { display: block; margin: 4px auto 16px; }
.course-card__link { font-size: 13px; color: var(--navy-light); font-weight: 600; text-decoration: none; }
.course-card__link:hover { text-decoration: underline; }
.course-card__foot .course-card__actions { display: flex; gap: 10px; align-items: center; }

/* ---------- Mega menu (Visa Guide) ---------- */
.nav-mega { position: static; }
.nav-mega__toggle {
  background: none; border: 0; cursor: pointer; font-family: inherit;
  color: #dce5f0; font-size: 15px; font-weight: 500; padding: 6px 0;
  border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: 6px;
}
.nav-mega__toggle:hover { color: #fff; }
.nav-mega__toggle.is-active { color: #fff; border-bottom-color: var(--orange); }
.nav-mega__caret { font-size: 11px; transition: transform 0.2s; color: var(--orange); }
.nav-mega.is-open .nav-mega__caret { transform: rotate(180deg); }

.nav-mega__panel {
  display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 99;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 24px 48px rgba(11,28,52,0.22);
}
.nav-mega.is-open .nav-mega__panel { display: block; }
@media (min-width: 861px) {
  .nav-mega:focus-within .nav-mega__panel { display: block; }
}
.nav-mega__grid {
  max-width: 1160px; margin: 0 auto; padding: 30px 20px 34px;
  display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr; gap: 34px;
}
.nav-mega__feature {
  border-radius: 10px; overflow: hidden; position: relative; min-height: 210px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(135deg, var(--navy-light), var(--navy-dark));
  background-size: cover; background-position: center;
}
.nav-mega__feature::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,28,52,0.9), rgba(11,28,52,0.15));
}
.nav-mega__feature > * { position: relative; }
.nav-mega__feature h4 { color: #fff; margin: 0 18px 6px; font-size: 17px; }
.nav-mega__feature p { color: #cfdae8; margin: 0 18px 14px; font-size: 13px; line-height: 1.5; }
.nav-mega__feature .btn { margin: 0 18px 18px; align-self: flex-start; padding: 9px 18px; font-size: 13.5px; }
.nav-mega__col h4 {
  color: var(--navy); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase;
  margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--orange-soft);
}
.nav-mega__col a {
  display: block; color: var(--ink); text-decoration: none; font-size: 14.5px;
  padding: 8px 10px; margin: 0 -10px; border-radius: 7px; border-bottom: 0;
}
.nav-mega__col a:hover { background: var(--orange-soft); color: var(--orange-dark); }
.nav-mega__col a.is-active { background: var(--orange-soft); color: var(--orange-dark); font-weight: 600; }
@media (max-width: 860px) {
  .nav-mega__panel { position: static; box-shadow: none; border-top: 0; background: transparent; }
  .nav-mega:hover .nav-mega__panel { display: none; }
  .nav-mega.is-open .nav-mega__panel { display: block; }
  .nav-mega__toggle { width: 100%; text-align: left; padding: 13px 4px; justify-content: space-between; display: flex; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-mega__grid { grid-template-columns: 1fr; gap: 18px; padding: 12px 4px 6px; }
  .nav-mega__feature { display: none; }
  .nav-mega__col h4 { color: var(--orange); border-bottom-color: rgba(255,255,255,0.12); }
  .nav-mega__col a { color: #dce5f0; }
  .nav-mega__col a:hover { background: rgba(255,255,255,0.08); color: #fff; }
}

/* ---------- Visa jump dropdown ---------- */
.visa-jump {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 20px; margin-bottom: 28px;
}
.visa-jump__label { font-weight: 700; color: var(--navy); font-size: 15px; }
.visa-jump select {
  flex: 1; min-width: 240px; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 8px; font-family: inherit; font-size: 15px; color: var(--ink); background: #fff;
}
.visa-jump select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244,123,32,0.18); }

/* ---------- CSS bar chart (statistics) ---------- */
.bar-chart { display: grid; gap: 10px; margin-top: 8px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 74px; align-items: center; gap: 12px; font-size: 14px; }
.bar-row__label { color: var(--navy); font-weight: 600; text-align: right; }
.bar-row__track { background: var(--bg-soft); border-radius: 6px; overflow: hidden; height: 22px; }
.bar-row__fill { height: 100%; background: linear-gradient(90deg, var(--navy-light), var(--navy)); border-radius: 6px 0 0 6px; min-width: 4px; }
.bar-row:first-child .bar-row__fill, .bar-row:nth-child(2) .bar-row__fill { background: linear-gradient(90deg, var(--orange), var(--orange-dark)); }
.bar-row__value { color: var(--muted); font-weight: 600; font-size: 13px; }
@media (max-width: 560px) { .bar-row { grid-template-columns: 84px 1fr 64px; font-size: 12.5px; } }

/* ---------- Honeypot (anti-spam) ----------
   Off-screen field that humans never see or fill; bots do.
   The server silently discards any submission where it has a value. */
.hp-field {
  position: absolute !important; left: -9999px !important; top: -9999px !important;
  height: 1px; width: 1px; overflow: hidden; opacity: 0; pointer-events: none;
}

/* ---------- Mobile hero images (smaller downloads) ---------- */
@media (max-width: 768px) {
  .hero__slides .hero__slide:first-child {
    background-image: url('../img/hero/hero-1-mobile.jpg'), linear-gradient(120deg, #1d3d6b, #0b1c34) !important;
  }
  .hero__slides .hero__slide--worker {
    background-image: url('../img/hero/hero-skilled-worker-mobile.jpg'), linear-gradient(120deg, #16345c, #0b1c34) !important;
  }
  .hero__slides .hero__slide--visit {
    background-image: url('../img/hero/hero-visit-mobile.jpg'), linear-gradient(120deg, #0f2a4a, #0b1c34) !important;
  }
  .hero__slides .hero__slide--settle {
    background-image: url('../img/hero/hero-settle-mobile.jpg'), linear-gradient(120deg, #1d3d6b, #0b1c34) !important;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__slide { transition: none !important; animation: none !important; transform: none !important; }
  .hero__text-rotator .hero__headline, .hero__text-rotator .hero__sub { transition: none !important; }
  .photo-card, .btn { transition: none; }
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }

/* ============================================================
   Consent banner (analytics.js)
   Fixed bottom bar; sits above the WhatsApp fab (z-index 90).
   ============================================================ */
.consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px 24px;
  padding: 16px 20px;
  background: #12294b; color: #eef2f8;
  font-size: 14px; line-height: 1.5;
  box-shadow: 0 -8px 30px rgba(11, 28, 52, 0.28);
}
.consent-banner__text { margin: 0; flex: 1 1 320px; }
.consent-banner__text a { color: #fff; text-decoration: underline; }
.consent-banner__actions {
  display: flex; gap: 12px; flex-shrink: 0; margin-left: auto;
}
.consent-banner .btn { padding: 10px 20px; font-size: 14px; }

/* Ghost button on the navy bar — pairs with the base .btn class. */
.btn--ghost-navy {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.6);
}
.btn--ghost-navy:hover { background: rgba(255,255,255,0.14); color: #fff; }

/* Stack vertically on small screens. */
@media (max-width: 640px) {
  .consent-banner { flex-direction: column; align-items: stretch; }
  .consent-banner__actions { margin-left: 0; justify-content: flex-end; }
}

.course-card__uni-link { color: var(--navy); font-weight: 700; text-decoration: none; border-bottom: 1px dotted var(--navy-light); }
.course-card__uni-link:hover { color: var(--orange-dark); border-bottom-color: var(--orange-dark); }

/* ============================================================
   Chat assistant (assets/js/chat-assistant.js)
   A pop-up help window opened from the round launcher button
   (.whatsapp-fab / #chatLauncher). Sits ABOVE the mega menu
   (99) and the consent banner (120) so it's always reachable.
   All classes are prefixed .chat- to avoid collisions.
   ============================================================ */
.chat-panel {
  position: fixed; right: 22px; bottom: 90px; z-index: 130;
  display: none; /* shown by JS via .is-open */
  flex-direction: column;
  width: 360px; max-width: calc(100vw - 44px);
  height: 500px; max-height: calc(100vh - 120px);
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg);
  font-family: var(--font);
}
.chat-panel.is-open { display: flex; }

/* ---- header bar ---- */
.chat-header {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--navy); color: #fff; padding: 12px 14px;
}
.chat-header__title { font-weight: 700; font-size: 15px; line-height: 1.2; }
.chat-header__sub { font-size: 12px; color: rgba(255,255,255,0.75); margin-top: 2px; }
.chat-close {
  flex: 0 0 auto;
  background: transparent; border: 0; color: #fff; cursor: pointer;
  font-size: 18px; line-height: 1; width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-family: inherit;
  transition: background 0.15s;
}
.chat-close:hover { background: rgba(255,255,255,0.16); }

/* ---- scrollable message list ---- */
.chat-messages {
  flex: 1 1 auto; overflow-y: auto;
  padding: 14px; background: var(--bg-soft);
  display: flex; flex-direction: column; gap: 10px;
}
.chat-msg { display: flex; }
.chat-msg--bot { justify-content: flex-start; }
.chat-msg--user { justify-content: flex-end; }
.chat-bubble {
  max-width: 82%; padding: 9px 12px; border-radius: 14px;
  font-size: 14.5px; line-height: 1.45; word-wrap: break-word; overflow-wrap: anywhere;
}
.chat-msg--bot .chat-bubble {
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-bottom-left-radius: 4px;
}
.chat-msg--user .chat-bubble {
  background: var(--navy); color: #fff; border-bottom-right-radius: 4px;
}
.chat-link { color: var(--orange-dark); font-weight: 600; text-decoration: underline; }
.chat-msg--bot .chat-bubble .chat-link:hover { color: var(--orange); }

/* ---- quick-reply chips ---- */
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-chip {
  background: #fff; border: 1.5px solid var(--orange); color: var(--orange-dark);
  border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; line-height: 1.3; transition: background 0.15s;
}
.chat-chip:hover { background: var(--orange-soft); }

/* ---- "speak to a person" handoff action ---- */
.chat-action-row { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.chat-action {
  display: inline-block; background: var(--orange); color: #fff;
  text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 10px 16px; border-radius: 8px; transition: background 0.15s;
}
.chat-action:hover { background: var(--orange-dark); color: #fff; }
.chat-action-secondary { font-size: 13px; color: var(--muted); }
.chat-action-secondary a { color: var(--navy-light); }

/* ---- input row ---- */
.chat-input {
  flex: 0 0 auto; display: flex; gap: 8px;
  padding: 10px; border-top: 1px solid var(--line); background: #fff;
}
.chat-input__field {
  flex: 1 1 auto; min-width: 0;
  padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px;
  font-size: 14px; font-family: inherit; color: var(--ink);
}
.chat-input__field:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244,123,32,0.18);
}
.chat-send {
  flex: 0 0 auto; background: var(--orange); color: #fff; border: 0;
  border-radius: 8px; padding: 0 16px; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: background 0.15s;
}
.chat-send:hover { background: var(--orange-dark); }

/* ---- small screens: near full-width bottom sheet (like .consent-banner) ---- */
@media (max-width: 480px) {
  .chat-panel {
    right: 0; left: 0; bottom: 0; width: auto; max-width: none;
    height: 82vh; max-height: none;
    border-radius: var(--radius) var(--radius) 0 0;
  }
}

/* ---- respect reduced-motion: drop the (non-essential) hover fades ---- */
@media (prefers-reduced-motion: reduce) {
  .chat-close, .chat-chip, .chat-action, .chat-send { transition: none; }
}
