/* =========================================================
   Gamutso Investments — site stylesheet
   ========================================================= */
:root {
  --navy: #0B2E4E;
  --navy-deep: #08223B;
  --navy-mid: #0F3A61;
  --green: #1E7145;
  --gold: #D9A441;
  --gold-dark: #B9862A;
  --paper: #FAFAF8;
  --ink: #2B2B2B;
  --sky: #CFE0EC;
  --sky-tint: #EEF4F8;
  --muted: #56626C;
  --line: #E2E5E7;
  --field: #B9C3CB;
  --white: #FFFFFF;
  --danger: #B42318;
  --danger-bg: #FDECEA;

  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Open Sans", "Segoe UI", Arial, sans-serif;

  --wrap: 1160px;
  --radius: 4px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

h1, h2, h3, h4, .h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); font-weight: 700; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); font-weight: 700; letter-spacing: -0.01em; }
h3, .h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
.prose { max-width: 68ch; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }
.small-print { font-size: .9rem; color: var(--muted); }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--white); padding: 10px 16px; z-index: 100; border-radius: var(--radius); }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.swoosh-band { height: 6px; background: linear-gradient(90deg, var(--gold) 0%, var(--green) 55%, var(--navy) 100%); }
.js .js-hide { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem; line-height: 1.2;
  padding: 13px 24px; min-height: 46px; border-radius: var(--radius);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-dark); color: var(--navy); }
.btn-outline { border-color: currentColor; color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.on-dark .btn-outline { color: var(--white); }
.on-dark .btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-small { padding: 7px 13px; min-height: 36px; font-size: .86rem; border-width: 1.5px; }
.btn-large { padding: 16px 32px; font-size: 1.05rem; }
.btn[disabled] { opacity: .65; cursor: progress; }
.link-btn { background: none; border: 0; color: var(--green); font: inherit; font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 2px; }
.link-btn:hover { color: var(--navy); }
.link-btn.danger { color: var(--danger); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 50px; width: auto; }
.brand-name { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.05rem; line-height: 1.15; }
.brand-name small { display: block; font-weight: 500; color: var(--green); font-size: .78rem; }
.nav-toggle { display: none; background: none; border: 2px solid var(--navy); color: var(--navy); border-radius: var(--radius); font-family: var(--font-head); font-weight: 600; padding: 8px 14px; min-height: 42px; cursor: pointer; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.site-nav a { display: block; padding: 10px 11px; font-family: var(--font-head); font-weight: 500; font-size: .92rem; color: var(--navy); text-decoration: none; border-bottom: 3px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--sky); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--gold); font-weight: 600; }
.site-nav .nav-cta a { background: var(--gold); border-radius: var(--radius); border-bottom: 0; padding: 10px 16px; margin-left: 8px; font-weight: 600; }
.site-nav .nav-cta a:hover { background: var(--gold-dark); }
.site-nav .nav-cta a[aria-current="page"] { background: var(--navy); color: var(--white); }
@media (max-width: 1000px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 12px 24px rgba(11, 46, 78, .12); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px 24px 20px; gap: 0; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--green); }
  .site-nav .nav-cta a { margin: 14px 0 0; text-align: center; }
}
@media (max-width: 560px) { .brand-name { display: none; } }

/* ---------- Heroes ---------- */
.hero, .page-hero { position: relative; overflow: hidden; background: var(--navy); color: var(--white); }
.hero { padding: 72px 0 84px; }
.page-hero { padding: 52px 0 50px; }
.hero h1, .page-hero h1 { color: var(--white); }
.hero h1 { max-width: 15em; }
.hero .lead, .page-hero .lead { color: #D6E3EE; margin: 0; }
.hero .lead { margin-bottom: 0; }
.hero-swoosh { position: absolute; right: -160px; bottom: -90px; width: 760px; max-width: 90vw; opacity: .85; pointer-events: none; }
.page-hero .hero-swoosh { width: 560px; right: -140px; bottom: -70px; opacity: .5; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.hero-inner { position: relative; }
.hero-actions { margin-top: 28px; }
.breadcrumb { font-size: .88rem; color: #A9C1D6; margin-bottom: 14px; }
.breadcrumb a { color: #D6E3EE; }
.course-search { margin-top: 32px; max-width: 560px; }
.course-search label { display: block; font-family: var(--font-head); font-weight: 600; margin-bottom: 8px; color: var(--white); }
.course-search.inline label { color: var(--navy); }
.search-row { display: flex; gap: 8px; }
.search-row input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: 12px 16px; border: 2px solid var(--field); border-radius: var(--radius); background: var(--white); color: var(--ink); }
.hero .search-row input { border-color: transparent; }
.search-row input:focus { border-color: var(--gold); outline: none; }
.search-hint { font-size: .9rem; color: #A9C1D6; margin: 8px 0 0; }
.field-index { position: relative; z-index: 1; background: var(--navy-mid); border: 1px solid rgba(255, 255, 255, .16); border-radius: 6px; padding: 22px 22px 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .25); }
.field-index h2 { color: var(--white); font-size: 1.05rem; margin-bottom: 10px; }
.field-index ul { list-style: none; margin: 0; padding: 0; }
.field-index li { border-top: 1px solid rgba(255, 255, 255, .1); }
.field-index li:first-child { border-top: 0; }
.field-index a { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; color: #E6EEF5; text-decoration: none; font-size: .93rem; }
.field-index a:hover { color: var(--gold); }
.field-index .count { color: var(--gold); font-family: var(--font-head); font-weight: 600; font-size: .85rem; }
@media (max-width: 900px) {
  .hero { padding: 44px 0 52px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-swoosh { opacity: .3; }
  .page-hero { padding: 40px 0 38px; }
  .page-hero .hero-swoosh { display: none; }
}
@media (max-width: 520px) { .search-row { flex-direction: column; } }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-white { background: var(--white); }
.section-head { max-width: 64ch; margin-bottom: 32px; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section-head-row > div { max-width: 64ch; }
@media (max-width: 720px) { .section { padding: 52px 0; } .section-tight { padding: 36px 0; } }

.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.practice { border-top: 4px solid var(--gold); padding-top: 22px; }
.practice:nth-child(2) { border-top-color: var(--green); }
.practice:nth-child(3) { border-top-color: var(--navy); }
.practice p { color: var(--muted); }
.practice .big { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 2.4rem; line-height: 1; display: block; margin-bottom: 8px; }
@media (max-width: 860px) { .practice-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Upcoming intakes */
.intake-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.intake { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; }
.intake-date { font-family: var(--font-head); font-weight: 700; color: var(--green); font-size: .95rem; margin-bottom: 6px; }
.intake h3 { font-size: 1.02rem; margin-bottom: 8px; }
.intake-meta { color: var(--muted); font-size: .88rem; margin-bottom: 14px; }
.intake .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 1000px) { .intake-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .intake-list { grid-template-columns: 1fr; } }

.feature { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.feature-img { border-radius: 6px; overflow: hidden; box-shadow: 0 20px 40px rgba(11, 46, 78, .18); }
.feature-facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 18px 0 22px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-facts div { font-size: .92rem; color: var(--muted); }
.feature-facts strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1.15rem; }
.module-list { margin: 0 0 18px; padding-left: 1.3em; }
.module-list li { margin-bottom: 6px; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 28px; } .feature-img { max-width: 420px; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 58px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--gold); font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; }
.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.cta-band { background: var(--green); color: var(--white); padding: 52px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin: 0 0 4px; }
.cta-band p { margin: 0; color: #DCEDE3; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- About / director ---------- */
.split { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.aside-panel { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); padding: 22px; }
.aside-panel dl { margin: 0; }
.aside-panel dt { font-size: .85rem; color: var(--muted); margin-top: 12px; }
.aside-panel dt:first-child { margin-top: 0; }
.aside-panel dd { margin: 2px 0 0; font-weight: 600; color: var(--navy); }
.vmg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.vmg > div { padding: 28px; border-left: 1px solid var(--line); }
.vmg > div:first-child { border-left: 0; }
.vmg svg { width: 34px; height: 34px; color: var(--green); margin-bottom: 12px; }
.vmg p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .vmg { grid-template-columns: 1fr; } .vmg > div { border-left: 0; border-top: 1px solid var(--line); } .vmg > div:first-child { border-top: 0; } }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.person { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: start; }
.portrait { width: 200px; aspect-ratio: 1; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 3.4rem; box-shadow: inset 0 0 0 6px var(--gold), inset 0 0 0 12px var(--navy); overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.credentials { color: var(--green); font-family: var(--font-head); font-weight: 600; font-size: .95rem; }
@media (max-width: 720px) { .person { grid-template-columns: 1fr; gap: 24px; } .portrait { width: 140px; font-size: 2.4rem; } }
blockquote.pull { margin: 28px 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--gold); font-family: var(--font-head); font-weight: 500; font-size: 1.22rem; line-height: 1.45; color: var(--navy); max-width: 40ch; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 30px 40px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--gold); }
.timeline .when { font-family: var(--font-head); font-weight: 600; color: var(--green); font-size: .88rem; }
.timeline h3 { margin: 2px 0; font-size: 1.06rem; }
.timeline .who { color: var(--navy); font-size: .93rem; margin-bottom: 6px; }
.timeline p { color: var(--muted); margin: 0; max-width: 68ch; }
.plain-list { margin: 0; padding-left: 1.2em; }
.plain-list li { margin-bottom: 10px; max-width: 75ch; }

/* ---------- Consultancy ---------- */
.cluster { background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: var(--radius); margin-bottom: 14px; }
.cluster:nth-of-type(2) { border-left-color: var(--green); }
.cluster:nth-of-type(3) { border-left-color: var(--navy); }
.cluster:nth-of-type(4) { border-left-color: #2E6E9E; }
.cluster summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; color: var(--navy); }
.cluster summary::-webkit-details-marker { display: none; }
.cluster summary > span:first-child { flex: 1; }
.cluster summary .meta { font-family: var(--font-body); font-weight: 400; font-size: .88rem; color: var(--muted); white-space: nowrap; }
.cluster summary::after { content: "+"; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--navy); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; line-height: 1; }
.cluster[open] summary::after { content: "−"; background: var(--navy); color: var(--white); }
.cluster-body { padding: 0 24px 22px; }
.cluster-body ul { columns: 2; column-gap: 40px; margin: 0; padding-left: 1.1em; }
.cluster-body li { break-inside: avoid; margin-bottom: 8px; }
.cluster-sub { color: var(--green); margin: 18px 0 8px; font-size: .98rem; }
@media (max-width: 720px) { .cluster-body ul { columns: 1; } .cluster summary .meta { display: none; } .cluster summary { padding: 18px; } .cluster-body { padding: 0 18px 18px; } }

/* ---------- Tables (catalogue + calendar) ---------- */
.table-card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
table.courses, table.cal-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.courses thead th, .cal-table thead th { background: var(--navy); color: var(--white); text-align: left; font-family: var(--font-head); font-weight: 600; font-size: .85rem; padding: 12px 14px; }
.courses td, .cal-table td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.courses tr.course:hover td, .cal-table tbody tr:hover td { background: #F6F9FB; }
.code { font-family: var(--font-head); font-weight: 600; color: var(--green); white-space: nowrap; font-size: .86rem; }
.fee { font-family: var(--font-head); font-weight: 600; color: var(--navy); white-space: nowrap; }
.dur { white-space: nowrap; }
.act { text-align: right; white-space: nowrap; }
.group-head th { text-align: left; background: var(--sky-tint); color: var(--navy); font-family: var(--font-head); font-weight: 700; font-size: .98rem; padding: 14px; border-top: 1px solid var(--line); }
.group-count { font-weight: 500; color: var(--muted); font-size: .85rem; margin-left: 8px; }
.cal-date strong { display: block; font-family: var(--font-head); color: var(--navy); }
.cal-date span { font-size: .88rem; color: var(--muted); white-space: nowrap; }
.cal-course .code { display: block; }
.cal-course .t { display: block; }
.cal-venue { font-size: .93rem; }
@media (max-width: 760px) {
  .courses thead, .cal-table thead { display: none; }
  .courses, .courses tbody, .courses tr, .courses td, .courses th,
  .cal-table, .cal-table tbody, .cal-table tr, .cal-table td { display: block; width: 100%; }
  .courses tbody.group[hidden], .courses tr[hidden], #no-results[hidden] { display: none !important; }
  .courses tr.course, .cal-table tbody tr { display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); }
  .courses td, .cal-table td { border: 0; padding: 0; width: auto; }
  .courses .code, .courses .title, .cal-table .cal-date, .cal-table .cal-course, .cal-table .cal-venue { flex: 0 0 100%; }
  .courses .title { font-weight: 600; margin: 2px 0 6px; }
  .courses .dur, .courses .fee, .cal-table .fee { font-size: .9rem; }
  .courses .act, .cal-table .act { margin-left: auto; text-align: left; }
  .cal-table .cal-date { display: flex; gap: 8px; align-items: baseline; }
  .cal-table .cal-course .t { font-weight: 600; margin: 2px 0; }
  .cal-table .cal-venue { color: var(--muted); font-size: .9rem; margin-bottom: 6px; }
}

.filters { position: sticky; top: var(--header-h); z-index: 20; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 16px; margin-bottom: 16px; display: grid; grid-template-columns: 1.6fr 1.4fr .8fr auto; gap: 12px; align-items: end; box-shadow: 0 6px 18px rgba(11, 46, 78, .06); }
.filters label { display: block; font-size: .82rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.f-actions { display: flex; align-items: center; gap: 10px; min-height: 44px; }
@media (max-width: 900px) { .filters { position: static; grid-template-columns: 1fr 1fr; } .filters .f-search { grid-column: 1 / -1; } }
@media (max-width: 520px) { .filters { grid-template-columns: 1fr; } }
.result-count { color: var(--muted); font-size: .95rem; margin: 0 0 12px; }
.state-msg { padding: 40px 24px; text-align: center; color: var(--muted); }
.state-msg strong { display: block; color: var(--navy); font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 6px; }
.info-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.info-strip > div { border-top: 3px solid var(--gold); padding-top: 14px; }
.info-strip p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .info-strip { grid-template-columns: 1fr; } }

/* ---------- Form controls (shared) ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="password"], input[type="date"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  min-height: 46px; padding: 10px 12px;
  border: 1.5px solid var(--field); border-radius: var(--radius); background: var(--white);
}
textarea { resize: vertical; min-height: 72px; line-height: 1.5; }
select { -webkit-appearance: none; appearance: none; padding-right: 36px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230B2E4E' stroke-width='1.8'/%3E%3C/svg%3E") right 12px center/12px no-repeat; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: 3px solid rgba(30, 113, 69, .22); outline-offset: 0; }
.is-invalid { border-color: var(--danger) !important; background-color: #FFFBFA; }

/* ---------- Registration form ---------- */
.register-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.reg-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }
@media (max-width: 980px) {
  .register-layout { grid-template-columns: 1fr; }
  .reg-aside { position: static; order: -1; }
  .help-card { display: none; }
}
.form-step { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 28px; margin-bottom: 20px; }
.form-step > h2 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; margin-bottom: 18px; }
.step-no { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--gold); font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; }
.step-intro { color: var(--muted); margin-top: -8px; font-size: .97rem; }
@media (max-width: 600px) { .form-step { padding: 20px 16px; } .form-step > h2 { font-size: 1.15rem; } }

.field { margin-bottom: 16px; min-width: 0; }
.field label, .checks legend { display: block; font-weight: 600; color: var(--navy); font-size: .95rem; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); font-size: .88rem; }
.hint { color: var(--muted); font-size: .9rem; margin: 6px 0 0; }
.field-error { color: var(--danger); font-size: .9rem; font-weight: 600; margin: 6px 0 0; }
.grid { display: grid; gap: 0 16px; }
.g-2 { grid-template-columns: 1fr 1fr; }
.g-title { grid-template-columns: 110px 1fr 1fr; }
.span-2 { grid-column: span 2; }
@media (max-width: 640px) {
  .g-2, .g-title { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .g-title > .field:first-child { max-width: 140px; }
}
.course-filter { margin-bottom: 8px; }
#course_code { font-size: .97rem; }
.intake-hint { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; padding: 12px 14px; background: #EAF4EE; border: 1px solid #BFDCCB; border-radius: var(--radius); }
.intake-hint p { margin: 0; font-size: .95rem; color: var(--navy); }

.delegate { border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 16px 18px 4px; margin: 0 0 16px; background: var(--paper); position: relative; }
.delegate legend { padding: 0 6px; margin-left: -6px; font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1rem; }
.delegate-tools { display: flex; justify-content: flex-end; gap: 16px; margin: -8px 0 6px; }
.delegate:first-child .js-remove-delegate { display: none; }
#delegates .delegate:not(:first-child) .js-copy-contact { display: none; }
#add-delegate { margin-bottom: 4px; }
@media (max-width: 600px) { .delegate { padding: 12px 12px 2px; } .delegate-tools { justify-content: flex-start; margin-top: 0; } }

.checks { border: 0; margin: 4px 0 16px; padding: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink); margin: 0 0 10px; cursor: pointer; line-height: 1.5; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--green); }
.consents { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.consents .field-error { margin: -4px 0 10px 30px; }

.submit-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 8px 0 20px; }
.submit-row .hint { margin: 0; }
@media (max-width: 600px) { .submit-row .btn { width: 100%; } }
.form-alert { background: var(--danger-bg); border: 1px solid #F5C2BD; border-left: 5px solid var(--danger); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 20px; color: #6B1610; }
.form-alert:focus { outline: 3px solid var(--gold); }
.form-alert ul { margin: 8px 0 0; padding-left: 1.2em; }
.form-alert a { color: #6B1610; font-weight: 600; }
.draft-note { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--sky-tint); border: 1px solid var(--sky); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 20px; font-size: .95rem; }
.draft-note p { margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error-list { color: var(--danger); }

.summary-card { background: var(--navy); color: #D6E3EE; border-radius: 6px; padding: 22px; }
.summary-card h2 { color: var(--white); }
.summary-card dl { margin: 0 0 12px; }
.summary-card dt { font-size: .82rem; color: #A9C1D6; margin-top: 12px; }
.summary-card dt:first-child { margin-top: 0; }
.summary-card dd { margin: 2px 0 0; color: var(--white); font-weight: 600; }
#sum-fee { font-family: var(--font-head); font-size: 1.35rem; color: var(--gold); }
.summary-card .small-print { color: #A9C1D6; margin: 0; }
@media (max-width: 980px) { .summary-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; } .summary-card dt:nth-child(3) { margin-top: 0; } }
@media (max-width: 480px) { .summary-card dl { grid-template-columns: 1fr; } .summary-card dt:nth-child(3) { margin-top: 12px; } }

/* Confirmation page */
.done { max-width: 720px; }
.done-mark { margin-bottom: 12px; }
.ref-box { display: inline-block; background: var(--white); border: 2px dashed var(--gold); border-radius: 6px; padding: 12px 20px; margin: 4px 0 20px; color: var(--muted); }
.ref-box strong { display: block; font-family: var(--font-head); font-size: 1.8rem; color: var(--navy); letter-spacing: .04em; }
.done-summary { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; margin: 20px 0; }
.done-summary dt { color: var(--muted); }
.done-summary dd { margin: 0; font-weight: 600; color: var(--navy); }
.done-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
@media (max-width: 480px) { .done-summary { grid-template-columns: 1fr; } .done-summary dd { margin-bottom: 8px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 26px; }
.contact-card .role { color: var(--green); font-family: var(--font-head); font-weight: 600; font-size: .9rem; margin-bottom: 2px; }
.contact-card h2 { margin-bottom: 4px; }
.contact-card dl { margin: 14px 0 0; }
.contact-card dt { font-size: .82rem; color: var(--muted); margin-top: 12px; }
.contact-card dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.contact-card dd a { color: var(--navy); font-weight: 600; text-decoration: none; }
.contact-card dd a:hover { color: var(--green); text-decoration: underline; }
.contact-card.primary { border-top: 4px solid var(--gold); }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.map-frame { margin-top: 32px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: #E8EDF0; }
.map-frame iframe { width: 100%; height: 400px; border: 0; display: block; }
.map-link { margin-top: 8px; }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #C3D3E0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr; gap: 48px; padding-top: 56px; padding-bottom: 40px; }
.site-footer h2 { color: var(--white); font-size: 1rem; margin-bottom: 12px; }
.site-footer a { color: #E6EEF5; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; overflow-wrap: anywhere; }
.footer-brand img { height: 46px; width: auto; background: var(--white); padding: 6px 10px; border-radius: var(--radius); margin-bottom: 16px; }
.footer-brand p { max-width: 36ch; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; padding-bottom: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #8FA6BA; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 54px; height: 54px; border-radius: 50%; background: #1E8E4E; color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.wa-float:hover { background: var(--green); color: var(--white); }
@media print { .wa-float, .site-header, .site-footer, .cta-band { display: none; } }

.notfound .big { font-family: var(--font-head); font-weight: 700; font-size: 5rem; color: var(--gold); line-height: 1; margin-bottom: 8px; }
