/* ==================================================================
   MedAdmit v2 — site.css
   Loaded after tokens.css. Header/footer/nav, chat, SeniorConnect,
   forms extras, compliance panel, mobile bottom bar.
   ================================================================== */

.ico { display: inline-block; vertical-align: -.18em; flex: none; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 60; background: var(--cream); border-bottom: 1px solid var(--line); }
.head-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--navy); display: grid; place-items: center; flex: none; }
.brand img { max-height: 36px; max-width: 160px; width: auto; object-fit: contain; }

.head-icons { display: flex; align-items: center; gap: 2px; }
.icon-btn { width: 42px; height: 42px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink); text-decoration: none; position: relative; }
.icon-btn:hover { background: var(--cream-2); }
.icon-btn .dot { position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); border: 2px solid var(--cream); }

.site-nav { display: none; }
@media (min-width: 980px) {
  .site-nav { display: flex; gap: 26px; align-items: center; }
  .site-nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
  .site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }
}

/* Full-screen drawer menu, matching the reference screenshots. */
.drawer { position: fixed; inset: 0; z-index: 100; display: none; }
.drawer.open { display: block; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(14,31,61,.35); }
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(88vw, 380px);
  background: var(--cream); box-shadow: -20px 0 50px rgba(14,31,61,.25);
  display: flex; flex-direction: column; padding: 20px;
  animation: drawer-in .22s ease;
}
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.drawer-close { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: none; display: grid; place-items: center; cursor: pointer; }
.drawer-links { flex: 1; overflow-y: auto; padding: 8px 0; }
.drawer-links a { display: block; padding: 15px 14px; border-radius: 14px; text-decoration: none; color: var(--ink); font-size: 17px; }
.drawer-links a.on { background: var(--navy-wash); color: var(--navy); font-weight: 600; }
.drawer-links a:hover { background: var(--cream-2); }
.drawer-foot { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) { .drawer-panel { animation: none; } }

/* ---------- mobile bottom bar ---------- */
.bottombar { display: none; }
@media (max-width: 979px) {
  body.has-bottombar { padding-bottom: 72px; }
  .bottombar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: var(--surface); border-top: 1px solid var(--line);
    padding: 7px 4px calc(7px + env(safe-area-inset-bottom));
  }
  .bottombar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; text-decoration: none; color: var(--ink-faint); font-size: 10.5px; font-weight: 600; position: relative; }
  .bottombar a[aria-current="page"] { color: var(--navy); }
  .bottombar .ico { width: 22px; height: 22px; }
  .bottombar .nbadge { position: absolute; top: 2px; right: 22%; background: var(--coral); color: #fff; font-size: 9.5px; font-weight: 700; min-width: 15px; height: 15px; border-radius: 8px; display: grid; place-items: center; padding: 0 3px; }
}

/* ---------- footer ---------- */
.site-foot { background: var(--navy-deep); color: #B9C8E2; padding: 56px 0 26px; font-size: 14.5px; }
.site-foot a { color: #D6E2F5; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-social { display: flex; gap: 10px; margin-bottom: 34px; }
.foot-circle { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; color: #D6E2F5; }
.foot-cols { display: grid; gap: 30px; }
@media (min-width: 700px) { .foot-cols { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot-cols h4 { color: #7C93BC; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols li { margin-bottom: 11px; }
.foot-legal { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.13); font-size: 12.5px; line-height: 1.7; color: #8299BE; }

/* ---------- team grid ---------- */
.team-grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin: 26px 0; }
@media (min-width: 620px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.team-card { padding: 26px 22px; text-align: center; }
.team-photo-wrap { position: relative; width: 96px; margin: 0 auto 14px; }
.team-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--cream-3); border: 3px solid var(--surface); box-shadow: var(--sh-sm); }
.team-live { position: absolute; right: 4px; bottom: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--green); border: 3px solid var(--surface); }
.team-where { font-size: 13px; margin: 4px 0 10px; }
.team-where a { font-weight: 600; text-decoration: none; }
.team-bio { font-size: 14px; color: var(--ink-mute); text-align: left; margin-bottom: 12px; }
.team-langs { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-bottom: 12px; }
.team-links { display: flex; gap: 14px; justify-content: center; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.team-links a { font-size: 13px; font-weight: 600; }

/* ---------- FMGL compliance panel ---------- */
.fmgl { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.fmgl-head { background: var(--cream-2); padding: 16px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.fmgl-row { display: flex; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--line-soft); }
.fmgl-row:last-of-type { border-bottom: 0; }
.fmgl-mark { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.is-yes .fmgl-mark { background: var(--green); color: #fff; }
.is-no .fmgl-mark { background: var(--coral); color: #fff; }
.is-unk .fmgl-mark { background: var(--surface); border: 1.5px solid var(--line); color: var(--ink-faint); font-weight: 700; font-size: 13px; }
.fmgl-text b { display: block; font-size: 15px; }
.is-no .fmgl-text b { color: var(--coral); }
.is-unk .fmgl-text b { color: var(--ink-mute); }
.fmgl-text span { font-size: 12.5px; color: var(--ink-faint); }
.fmgl-foot { background: var(--cream); padding: 13px 22px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--ink-faint); }

/* ---------- university cards & dossier ---------- */
.ctile { display: block; text-decoration: none; color: var(--ink); padding: 20px 20px 18px; }
.ctile .flag { font-size: 28px; }
.ctile h3 { margin: 12px 0 4px; }
.ctile .tag { font-size: 13.5px; color: var(--ink-mute); min-height: 2.6em; }

.dossier { display: grid; gap: 30px; }
@media (min-width: 980px) { .dossier { grid-template-columns: minmax(0,1fr) 340px; gap: 40px; align-items: start; } .dossier-rail { position: sticky; top: 88px; } }
.factgrid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
@media (min-width: 700px) { .factgrid { grid-template-columns: repeat(4,1fr); } }
.factgrid div { background: var(--surface); padding: 16px 17px; }
.factgrid dt { font-size: 12px; color: var(--ink-faint); margin-bottom: 3px; }
.factgrid dd { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }

.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.data-table th, .data-table td { border: 1px solid var(--line); padding: 11px 13px; text-align: left; }
.data-table th { background: var(--cream-2); font-size: 13px; font-weight: 600; }
.data-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-card); }

.tab-bar { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.tab-bar a { padding: 13px 18px; text-decoration: none; color: var(--ink-mute); font-weight: 600; font-size: 14.5px; white-space: nowrap; border-bottom: 2.5px solid transparent; }
.tab-bar a[aria-current="page"] { color: var(--navy); border-color: var(--navy); }

/* ---------- forms extra ---------- */
.lead-form { padding: 24px 22px; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.guardian-block { margin: 8px 0 18px; padding: 20px 19px; border-radius: 16px; background: var(--gold-wash); border: 1px solid #ECD79F; }
.guardian-block h3 { display: flex; gap: 8px; align-items: center; font-size: 16px; margin: 0 0 6px; }
.consent-box { display: flex; gap: 11px; align-items: flex-start; margin-top: 8px; padding: 14px 15px; border-radius: 12px; background: rgba(255,255,255,.75); font-size: 13px; line-height: 1.55; cursor: pointer; }
.consent-box input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--navy); flex: none; }
.honey { position: absolute; left: -9999px; }

/* ---------- FAQ, quotes, blog cards ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.quote { padding: 22px 20px; }
.post-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; background: var(--cream-3); }
.post-card .pc-body { padding: 18px 19px 20px; }
.post-meta { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 8px; }
.cat-chip { display: inline-block; background: var(--navy-wash); color: var(--navy); padding: 4px 12px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; text-decoration: none; }

/* ---------- pager ---------- */
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 32px; }
.pager a, .pager span { padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); text-decoration: none; font-size: 14px; color: var(--ink); background: var(--surface); }
.pager-now { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ==================================================================
   Chat — shared by counsellor and SeniorConnect threads
   ================================================================== */

.stu-tabs { display: flex; gap: 5px; overflow-x: auto; margin-bottom: 24px; padding-bottom: 2px; }
.stu-tabs a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 10px 16px; border-radius: var(--r-pill); text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink-mute); background: var(--cream-2); position: relative; }
.stu-tabs a:hover { color: var(--navy); }
.stu-tabs a[aria-current="page"] { background: var(--navy); color: #fff; }
.stu-tabs .nbadge { background: var(--coral); color: #fff; font-size: 10.5px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; padding: 0 4px; }

.thread-list { display: grid; gap: 10px; }
.thread-row { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 16px 18px; text-decoration: none; color: inherit; }
.thread-row:hover { border-color: var(--navy); }
.thread-row.is-closed { opacity: .6; }
.thread-main b { display: block; font-size: 15.5px; }
.thread-last { display: block; font-size: 13px; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }
.thread-badge { background: var(--coral); color: #fff; font-size: 11.5px; font-weight: 700; min-width: 20px; text-align: center; padding: 2px 7px; border-radius: var(--r-pill); }

.mon-banner { background: var(--gold-wash); border-bottom: 1px solid #ECD79F; padding: 12px 20px; display: flex; gap: 10px; align-items: flex-start; border-radius: var(--r-card) var(--r-card) 0 0; }
.mon-banner svg { flex: none; margin-top: 2px; color: #8C6A1F; }
.mon-banner p { margin: 0; font-size: 13px; color: #6B5312; }

.chat-box { height: min(58vh, 480px); overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 18px 16px; background: var(--cream); display: flex; flex-direction: column; gap: 11px; }
.msg { max-width: 82%; padding: 11px 14px; border-radius: 17px; font-size: 14.5px; line-height: 1.5; }
.msg p { margin: 0; }
.msg.is-mine { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.msg.is-them { align-self: flex-start; background: var(--surface); border: 1px solid var(--line-soft); border-bottom-left-radius: 4px; }
.msg-who { display: block; font-size: 11.5px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.msg-time { display: block; font-size: 11px; margin-top: 5px; opacity: .7; }
.msg.is-mine .msg-time { color: #C3D3EE; }
.msg-sys { align-self: center; font-size: 12.5px; color: var(--ink-mute); background: var(--cream-3); padding: 6px 14px; border-radius: var(--r-pill); text-align: center; }
.msg-masked { background: var(--coral-wash); color: var(--coral); padding: 1px 8px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.msg-file { display: flex; gap: 10px; align-items: center; margin-top: 8px; padding: 10px 12px; border-radius: 12px; text-decoration: none; background: rgba(255,255,255,.9); border: 1px solid rgba(17,26,46,.1); color: var(--ink); }
.msg.is-mine .msg-file { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.28); color: #fff; }
.msg-file b { display: block; font-size: 13.5px; }
.chat-timer { align-self: center; background: var(--navy-wash); color: var(--navy); font-weight: 600; font-size: 13px; padding: 6px 16px; border-radius: var(--r-pill); }
.chat-timer.low { background: var(--coral-wash); color: var(--coral); }

.chat-compose { display: flex; gap: 8px; align-items: flex-end; padding: 12px; background: var(--surface); border-top: 1px solid var(--line-soft); border-radius: 0 0 var(--r-card) var(--r-card); }
.chat-compose textarea { flex: 1; resize: none; min-height: 44px; max-height: 140px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 14px; font: inherit; font-size: 15px; }
.chat-compose textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px var(--navy-wash); }

/* ---------- SeniorConnect ---------- */
.sr-card { text-align: center; padding: 24px 20px; }
.sr-avatar-wrap { position: relative; width: 78px; margin: 0 auto 14px; }
.sr-avatar { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 26px; }
.sr-online { position: absolute; right: 2px; bottom: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--green); border: 3px solid var(--surface); }
.sr-langs { display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.sr-rate { text-align: left; }
.sr-rate b { font-size: 20px; letter-spacing: -.03em; }

.sr-picker { display: grid; gap: 12px; }
@media (min-width: 760px) { .sr-picker { grid-template-columns: 1fr 1fr; } }

.minute-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.minute-pick label { flex: 1; min-width: 84px; text-align: center; padding: 13px 10px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 600; font-size: 14px; }
.minute-pick input { display: none; }
.minute-pick input:checked + span { color: var(--navy); }
.minute-pick label:has(input:checked) { border-color: var(--navy); background: var(--navy-wash); }

.wallet-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; padding: 8px 16px; border-radius: var(--r-pill); font-weight: 600; font-size: 14px; text-decoration: none; }
.wallet-chip:hover { background: var(--navy-lift); color: #fff; }

/* ---------- progress tracker ---------- */
.progress-card { border-radius: 20px; padding: 24px 22px 10px; background: linear-gradient(160deg, var(--navy-wash), #fff 60%); border: 1px solid var(--line-soft); }
.progress-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.progress-now { font-size: clamp(19px, 4vw, 25px); font-weight: 700; letter-spacing: -.02em; margin: 0; }
.progress-ring { --pct: 0; flex: none; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--navy) calc(var(--pct)*1%), var(--line-soft) 0); }
.progress-ring span { width: 60px; height: 60px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 700; }
.timeline { list-style: none; margin: 0; padding: 0 0 14px; }
.tl { display: flex; gap: 14px; position: relative; padding-bottom: 20px; }
.tl::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl-dot { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line); color: var(--ink-faint); z-index: 1; }
.tl.is-done .tl-dot { background: var(--navy); border-color: var(--navy); color: #fff; }
.tl.is-active .tl-dot { background: var(--gold); border-color: var(--gold); color: #3A2A05; animation: tlpulse 2.4s ease-in-out infinite; }
.tl.is-blocked .tl-dot { background: var(--coral); border-color: var(--coral); color: #fff; }
.tl.is-done::before { background: var(--navy); }
@keyframes tlpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(232,179,60,.5); } 50% { box-shadow: 0 0 0 7px rgba(232,179,60,0); } }
@media (prefers-reduced-motion: reduce) { .tl.is-active .tl-dot { animation: none; } }
.tl-body b { font-size: 14.5px; }
.tl.is-pending .tl-body b { color: var(--ink-faint); font-weight: 500; }
.tl-note { font-size: 13.5px; color: var(--ink-mute); margin: 4px 0 0; }

/* ---------- documents ---------- */
.doc-item { border-radius: 14px; padding: 15px 17px; }
.doc-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.doc-state { flex: none; font-size: 11.5px; font-weight: 600; padding: 3px 11px; border-radius: var(--r-pill); }
.doc-state.is-missing { background: var(--cream-2); color: var(--ink-faint); }
.doc-state.is-pending { background: var(--gold-wash); color: #8C6A1F; }
.doc-state.is-accepted { background: #DFF3E6; color: #14683A; }
.doc-state.is-rejected { background: var(--coral-wash); color: var(--coral); }

/* ---------- admin moderation ---------- */
.leak-bar { width: 100%; height: 6px; border-radius: 3px; background: var(--line-soft); overflow: hidden; }
.leak-bar > i { display: block; height: 100%; background: var(--coral); }

.empty-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; margin: 0 auto 14px; color: var(--ink-faint); }

/* ==================================================================
   Utility classes used across pages — found by the class-coverage audit
   ================================================================== */

.section-tight { padding: 40px 0; }
.mb0 { margin-bottom: 0 !important; }
.dossier-main { min-width: 0; }
.stu-grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .stu-grid { grid-template-columns: 1fr; } }

/* Long-form content: country guides, university "about", blog posts, CMS pages. */
.prose { font-size: 16.5px; line-height: 1.75; max-width: 68ch; color: var(--ink); }
.prose h2 { font-size: 24px; margin: 1.5em 0 .5em; letter-spacing: -.02em; }
.prose h3 { font-size: 19px; margin: 1.3em 0 .5em; letter-spacing: -.015em; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--r-card); margin: 1.4em 0; }
.prose blockquote { margin: 1.4em 0; padding: 2px 0 2px 20px; border-left: 3px solid var(--navy-soft); color: var(--ink-mute); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.3em 0; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.prose th { background: var(--cream-2); }
.prose a { color: var(--navy); }

/* A bordered card used to frame an interactive tool (calculator, eligibility, compare). */
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px 20px; }

.compare-pick { display: grid; gap: 10px; }
@media (min-width: 700px) { .compare-pick { grid-template-columns: repeat(3, 1fr); } }

.feature-wrap { display: grid; gap: 10px; }
@media (min-width: 640px) { .feature-wrap { grid-template-columns: repeat(2, 1fr); } }

/* Small helper/legal text under a form. */
.consent { font-size: 12.5px; color: var(--ink-faint); line-height: 1.6; }
.consent a { color: var(--ink-mute); }

/* Cost calculator output block (some rules are also applied inline; these
   are the fallback / base look). */
.calc-out { border-radius: var(--r-card); }
.calc-out .big { font-weight: 700; letter-spacing: -.02em; }

/* ---------- homepage hero: text + photo side by side ---------- */
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 0; align-items: center; }
.hero-text { min-width: 0; }
.hero-photo-col { display: flex; justify-content: center; margin-top: 28px; }
.hero-photo-stack { position: relative; width: 100%; max-width: 360px; aspect-ratio: 4/5; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center;
  border-radius: 22px; opacity: 0; transition: opacity 1s ease; filter: drop-shadow(0 24px 40px rgba(0,0,0,.35)); }
.hero-photo.is-active { opacity: 1; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 40px; }
  .hero-photo-col { margin-top: 0; justify-content: flex-end; }
  .hero-photo-stack { max-width: 420px; }
}
@media (prefers-reduced-motion: reduce) { .hero-photo { transition: none; } }

/* ---------- callback popup ---------- */
.callback-popup { position: fixed; right: 16px; bottom: 16px; z-index: 90; width: min(360px, calc(100vw - 32px));
  background: var(--surface); border-radius: 20px; box-shadow: 0 20px 60px rgba(14,31,61,.28); border: 1px solid var(--line);
  transform: translateY(20px) scale(.97); opacity: 0; pointer-events: none; transition: transform .25s ease, opacity .25s ease; }
.callback-popup.show { transform: none; opacity: 1; pointer-events: auto; }
.callback-popup-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 18px 18px 4px; }
.callback-popup-head h3 { margin: 0; font-size: 16px; }
.callback-popup-close { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--cream-2); display: grid; place-items: center; cursor: pointer; color: var(--ink-mute); }
.callback-popup p.cb-msg { margin: 4px 18px 14px; font-size: 13px; color: var(--ink-mute); }
.callback-popup form { padding: 0 18px 18px; display: grid; gap: 10px; }
.callback-popup input, .callback-popup select { width: 100%; }
.callback-popup .cb-thanks { padding: 28px 18px; text-align: center; }
@media (max-width: 480px) {
  .callback-popup { left: 12px; right: 12px; bottom: 12px; width: auto; }
}

/* ---------- share buttons ---------- */
.share-row { display: flex; align-items: center; gap: 8px; margin: 18px 0; }
.share-btn { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--ink-mute); cursor: pointer; text-decoration: none; font-size: 11px; font-weight: 600; }
.share-btn:hover { border-color: var(--navy); color: var(--navy); }

/* ---------- floating WhatsApp button ---------- */
.wa-float { position: fixed; left: 16px; bottom: 16px; z-index: 85; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(37,211,102,.45);
  text-decoration: none; transition: transform .15s ease; }
.wa-float:hover { transform: scale(1.06); color: #fff; }
@media (max-width: 979px) { .wa-float { bottom: calc(16px + 72px + env(safe-area-inset-bottom)); left: 12px; width: 50px; height: 50px; } }

/* ---------- site alert banner ---------- */
.alert-banner { background: var(--navy); color: #fff; position: relative; z-index: 61; }
.alert-banner-inner { max-width: 1160px; margin: 0 auto; padding: 10px 44px 10px 16px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: center; font-size: 13.5px; text-align: center; }
.alert-banner-inner a { color: #fff; text-decoration: underline; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.alert-banner-close { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; display: grid; place-items: center; cursor: pointer; }
.alert-banner-close:hover { background: rgba(255,255,255,.25); }

/* ---------- auto-scrolling marquee (logo carousel) ---------- */
.marquee-wrap { overflow: hidden; margin-inline: calc(var(--gut) * -1); padding: 4px var(--gut) 20px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation-name: marquee-scroll; animation-timing-function: linear; animation-iteration-count: infinite; }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } .marquee-wrap { overflow-x: auto; } }

/* ---------- scheduled session banner ---------- */
.sched-banner { background: var(--navy-wash); border-bottom: 1px solid var(--line-soft); padding: 20px 18px; text-align: center; }
.sched-banner b { display: block; font-size: 16px; color: var(--navy); }
.sched-banner p { margin: 6px 0 0; font-size: 14px; color: var(--ink-mute); }
.sched-countdown { font-size: 19px !important; font-weight: 700; color: var(--navy) !important; font-variant-numeric: tabular-nums; margin-top: 10px !important; }

/* ---------- student departure carousel ---------- */
.dep-card { flex: 0 0 auto; width: 210px; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--sh-sm); }
.dep-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: var(--cream-3); }
.dep-card figcaption { padding: 12px 14px 14px; text-align: center; }
.dep-card figcaption b { display: block; font-size: 14px; }
.dep-card figcaption span { display: block; font-size: 12.5px; color: var(--ink-mute); margin-top: 2px; }
.dep-card .dep-country { color: var(--coral); font-weight: 600; }

/* ---------- webinars ---------- */
.webinar-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: var(--cream-3); }
.webinar-when { display: flex; gap: 12px; align-items: center; }
.webinar-date { flex: none; width: 54px; height: 54px; border-radius: 14px; background: var(--coral-wash); color: var(--coral); display: grid; place-items: center; line-height: 1; }
.webinar-date b { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; }
.webinar-date i { display: block; font-style: normal; font-size: 21px; font-weight: 700; margin-top: 2px; }
.webinar-card details summary::-webkit-details-marker { display: none; }

/* =====================================================================
   v5 — consistent forms, side-by-side hero, animation, university page
   ===================================================================== */

/* Every text-like field is the same size and shape, with or without a type attribute. */
.field input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]):not([type=submit]):not([type=button]),
.field select, .field textarea, .input {
  display: block; width: 100%; box-sizing: border-box; min-height: 52px; padding: 13px 16px;
  font-size: 15px; line-height: 1.4; border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%2316305C' stroke-width='1.8' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 16px center; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px var(--navy-wash); }
.field > label { margin-bottom: 8px; }
.field-row > .field { min-width: 0; }

/* Hero: text on the left, photo on the right, on every screen width. */
.hx-two { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(12px, 3vw, 44px); align-items: center; }
.hx-col-text, .hx-col-photo { min-width: 0; }
.hx-col-photo .hx-slider { height: auto; aspect-ratio: 4 / 5; width: 100%;
  max-height: var(--hx-photo-max, 480px); }
.hx-slider.is-cutout { background: transparent; border-radius: 0 !important; }
.hx-slider.is-cutout .hx-slide img { object-fit: contain; object-position: bottom center;
  filter: drop-shadow(0 24px 30px rgba(0,0,0,.35)); }
.hx-foot { margin-top: clamp(20px, 4vw, 36px); }
.hx-stats { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 14px !important; }
@media (max-width: 560px) {
  .hx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .hx-col-text .badge { font-size: 10px; padding: 5px 10px; line-height: 1.35; white-space: normal; }
}
@keyframes hxIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes hxFade { from { opacity: 0; transform: translateX(18px) scale(.98); } to { opacity: 1; transform: none; } }
.hx-col-text > *:nth-child(1) { animation: hxIn .6s ease both; }
.hx-col-text > *:nth-child(2) { animation: hxIn .7s ease .1s both; }
.hx-col-text > *:nth-child(3) { animation: hxIn .7s ease .2s both; }
.hx-col-photo { animation: hxFade .9s ease .15s both; }

/* Scroll reveal. Only active when JavaScript runs, so content never gets stuck hidden. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Icon chips */
.ico-chip { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none;
  background: var(--navy-wash); color: var(--navy); }
.ico-chip.c-gold { background: #FFF4D6; color: #8C6A1F; }
.ico-chip.c-green { background: #DFF3E6; color: #14683A; }
.ico-chip.c-coral { background: var(--coral-wash); color: var(--coral); }
.ico-chip.c-sky { background: #E3F1FB; color: #1F6A9C; }

/* University page: hero band */
.uh { position: relative; overflow: hidden; color: #fff; padding: 52px 0 60px;
  background: linear-gradient(135deg, #0E1F3D 0%, #16305C 55%, #1E4A8C 100%); }
.uh-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .18; }
.uh-orb { position: absolute; border-radius: 50%; filter: blur(44px); opacity: .45; pointer-events: none;
  animation: uhFloat 14s ease-in-out infinite; }
.uh-orb.o1 { width: 280px; height: 280px; background: #E8B33C; right: -60px; top: -80px; }
.uh-orb.o2 { width: 220px; height: 220px; background: #5B7BB4; left: -70px; bottom: -90px; animation-delay: -6s; }
@keyframes uhFloat { 0%,100% { transform: translate(0,0); } 50% { transform: translate(18px,-14px); } }
.uh-inner { position: relative; z-index: 2; }
.uh h1 { color: #fff; font-size: clamp(28px, 5vw, 46px); line-height: 1.08; margin: 16px 0 12px; letter-spacing: -.02em; }
.uh-lede { color: #C9D8F0; font-size: clamp(15px, 2vw, 17px); max-width: 64ch; margin: 0; }
.uh-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); font-size: 13px; color: #fff; }
.uh-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.uh-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
@media (min-width: 760px) { .uh-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.uh-fact { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); min-width: 0; }
.uh-fact b { display: block; font-size: 14.5px; color: #fff; }
.uh-fact span { display: block; font-size: 12px; color: #A9BBD8; }
.uh .share-btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }

/* University page: body layout */
.up-wrap { padding-top: clamp(28px, 4vw, 44px); padding-bottom: 40px; }
.up-grid { display: grid; gap: clamp(24px, 4vw, 40px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .up-grid { grid-template-columns: minmax(0, 1fr) 340px; } .up-side { position: sticky; top: 92px; align-self: start; } }
.up-sec { margin-bottom: 44px; scroll-margin-top: 100px; }
.up-sec > h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(20px, 3vw, 26px); margin: 0 0 16px; }
.up-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--sh-sm); }
.up-feats { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 620px) { .up-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.up-feat { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.up-feat:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -16px rgba(14,31,61,.35); border-color: var(--navy-soft); }
.up-feat b { display: block; font-size: 14.5px; }
.up-feat span { display: block; font-size: 13px; color: var(--ink-mute); margin-top: 2px; }
.up-fee-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.up-cur { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--gold-wash); color: #8C6A1F; font-size: 12.5px; font-weight: 700; }
.up-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px;
  padding: 16px 20px; border-radius: 16px; background: linear-gradient(135deg, var(--navy), #1E4A8C); color: #fff; }
.up-total b { font-size: clamp(18px, 3vw, 24px); }
.up-score { display: flex; gap: 18px; align-items: center; }
.up-ring { --p: 0; width: 78px; height: 78px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(#2E9E5B calc(var(--p) * 1%), var(--line-soft) 0); }
.up-ring span { width: 62px; height: 62px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 700; font-size: 16px; }
.up-bars { display: grid; gap: 10px; margin-top: 16px; }
.up-bar { height: 8px; border-radius: 6px; background: var(--line-soft); overflow: hidden; }
.up-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #2E9E5B, #6FCF97); transition: width 1.1s ease .3s; }
.reveal.is-in .up-bar i { width: var(--w); }
.up-cta { background: linear-gradient(160deg, #16305C, #0E1F3D); color: #fff; border-radius: 20px; padding: 22px;
  box-shadow: 0 18px 40px -18px rgba(14,31,61,.6); }
.up-cta h3 { color: #fff; margin: 12px 0 6px; font-size: 18px; }
.up-cta p { color: #C9D8F0; font-size: 13.5px; margin: 0 0 16px; }
.up-cta .btn-light { width: 100%; justify-content: center; }
.up-steps { list-style: none; margin: 0; padding: 0; }
.up-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.up-steps li:last-child { border-bottom: 0; }
.up-steps .n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--navy); color: #fff; }
.up-steps b { font-size: 14px; display: block; }
.up-steps span { font-size: 12.5px; color: var(--ink-mute); }
.up-note { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-mute); margin-top: 12px; }
.up-faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.up-faq summary { cursor: pointer; padding: 14px 4px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.up-faq summary::-webkit-details-marker { display: none; }
.up-faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--navy); transition: transform .25s ease; }
.up-faq details[open] summary::after { transform: rotate(45deg); }
.up-faq .acc-body { padding: 0 4px 16px; color: var(--ink-mute); }
.up-tabs { position: sticky; top: 64px; z-index: 20; background: var(--cream); }
@media (max-width: 979px) { .up-tabs { top: 56px; } }

/* v5 */
.up-main { min-width: 0; }

/* ---- v6: buttons on dark heroes are readable; premium icon chips; motion ---- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ""; position: absolute; top: 0; left: -80%; width: 55%; height: 100%; z-index: -1;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.38), transparent); transform: skewX(-18deg); pointer-events: none; }
.btn:hover::after { left: 130%; transition: left .7s cubic-bezier(.2,.7,.2,1); }
.btn > svg:first-child { box-sizing: border-box; width: 30px; height: 30px; padding: 7px; margin-left: -10px;
  border-radius: 50%; background: rgba(127,127,127,.14); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.btn:hover > svg:first-child { transform: translateX(2px) rotate(-8deg); }

.uh .btn { font-size: 15px; padding: 13px 24px 13px 12px; }
.uh .btn-light { background: #fff; color: #0E1F3D; border-color: #fff;
  box-shadow: 0 12px 28px -12px rgba(0,0,0,.55); }
.uh .btn-light > svg:first-child { background: #0E1F3D; color: #fff; }
.uh .btn-light:hover { background: #F4F7FC; box-shadow: 0 16px 34px -12px rgba(232,179,60,.55); transform: translateY(-2px); }
.uh .btn-outline { color: #fff; background: rgba(255,255,255,.09); border: 1.5px solid rgba(255,255,255,.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.uh .btn-outline > svg:first-child { background: rgba(232,179,60,.22); color: #FFD987; }
.uh .btn-outline:hover { background: rgba(255,255,255,.18); border-color: #fff; transform: translateY(-2px); }

/* hero entrance */
@keyframes uhRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.uh-inner > * { animation: uhRise .7s cubic-bezier(.2,.7,.2,1) both; }
.uh-inner > *:nth-child(2) { animation-delay: .08s; }
.uh-inner > *:nth-child(3) { animation-delay: .16s; }
.uh-inner > *:nth-child(4) { animation-delay: .24s; }
.uh-chip { transition: background .2s ease, transform .2s ease; }
.uh-chip:hover { transform: translateY(-1px); background: rgba(255,255,255,.18); }

/* sidebar CTA: soft glow so it draws the eye */
.up-cta { position: relative; overflow: hidden; }
.up-cta::before { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: -70px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,179,60,.35), transparent 70%); animation: uhFloat 9s ease-in-out infinite; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .uh-inner > *, .up-cta::before, .btn::after { animation: none !important; transition: none !important; }
  .btn:hover { transform: none !important; }
}

/* ---- v7: study library, video player, PDF reader ---- */
.sub-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 14px; margin-bottom: 6px; }
.sub-chips a { white-space: nowrap; padding: 9px 16px; border-radius: 999px; background: var(--cream-2); color: var(--ink-mute);
  text-decoration: none; font-size: 14px; font-weight: 600; border: 1px solid var(--line-soft); transition: transform .2s ease, background .2s ease; }
.sub-chips a span { font-size: 12px; opacity: .6; margin-left: 4px; }
.sub-chips a:hover { transform: translateY(-1px); color: var(--navy); }
.sub-chips a.on { background: linear-gradient(135deg, #16305C, #2B56A8); color: #fff; border-color: transparent; box-shadow: 0 8px 18px -10px rgba(22,48,92,.6); }

.study-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 16px; }
.sc { background: #fff; border: 1px solid var(--line-soft); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(14,31,61,.05); transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease; }
.sc:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -18px rgba(14,31,61,.35); }
.sc-cover { height: 118px; display: grid; place-items: center; color: #fff; position: relative; overflow: hidden; }
.sc-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 10%, rgba(255,255,255,.35), transparent 55%); }
.sc-cover.c-sky { background: linear-gradient(135deg, #2B56A8, #5B8FD9); }
.sc-cover.c-gold { background: linear-gradient(135deg, #C98F1E, #E8B33C); }
.sc-cover.c-green { background: linear-gradient(135deg, #1F7A48, #2E9E5B); }
.sc-cover.c-coral { background: linear-gradient(135deg, #C2452F, #E0705A); }
.sc-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sc-kind { font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }
.sc h3 { font-size: 16.5px; margin: 0; line-height: 1.25; }
.sc .btn { margin-top: auto; align-self: flex-start; }

.sv-player { background: #0E1F3D; border-radius: 22px; padding: 14px; margin: 16px 0 22px; color: #fff; }
.sv-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.sv-frame iframe, .sv-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sv-fallback { display: grid; place-items: center; background: linear-gradient(135deg, #16305C, #2B56A8); }
.sv-title { color: #fff; font-size: 19px; margin: 14px 4px 4px; }
.sv-player p { color: #B9C9E6; margin: 0 4px; }

/* reader */
.rd { display: flex; flex-direction: column; height: calc(100vh - 110px); min-height: 520px; background: #E9EDF5; border-radius: 18px; overflow: hidden; }
.rd-bar { background: #fff; border-bottom: 1px solid var(--line-soft); padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; }
.rd-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--navy); text-decoration: none; }
.rd-back svg { transform: rotate(180deg); }
.rd-title { margin: 0; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-tools { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.rd-t { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--cream); display: grid; place-items: center; cursor: pointer; color: var(--ink); flex: none; transition: transform .15s ease, background .15s ease; }
.rd-t:hover { background: var(--cream-2); transform: translateY(-1px); }
.rd-t.is-on { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 8px 16px -8px rgba(14,31,61,.6); }
.rd-c { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; flex: none; }
.rd-c.is-on { box-shadow: 0 0 0 2px var(--navy); }
.rd-sel { height: 40px; border-radius: 12px; border: 1px solid var(--line-soft); padding: 0 8px; font-size: 13px; width: auto; }
.rd-sep { width: 1px; height: 26px; background: var(--line); margin: 0 4px; flex: none; }
.rd-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--ink-mute); }
.rd-finger { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.rd-mode { flex: 1; text-align: center; }
.rd-count { font-variant-numeric: tabular-nums; }
.rd-stage { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; padding: 16px 12px 40px; }
.rd-pages { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.rd-msg { color: var(--ink-mute); text-align: center; padding: 40px 10px; }
.rd-page { position: relative; background: #fff; box-shadow: 0 10px 30px -14px rgba(14,31,61,.45); border-radius: 4px; max-width: none; flex: none; }
.rd-page canvas { display: block; border-radius: 4px; }
.rd-ink { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; z-index: 2; }
.rd-notes { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.rd-note { position: absolute; width: 170px; pointer-events: auto; background: #FFF1A8; border-radius: 10px 10px 10px 2px;
  box-shadow: 0 10px 20px -10px rgba(120,90,0,.5); transform: rotate(-1deg); padding: 6px; }
.rd-note textarea { width: 100%; min-height: 70px; border: 0; background: transparent; resize: vertical; font-family: system-ui, sans-serif; font-size: 13.5px; line-height: 1.4; color: #3d3210; padding: 4px; }
.rd-note textarea:focus { outline: none; }
.rd-note-x { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; cursor: pointer; line-height: 1; font-size: 15px; }
@media (max-width: 640px) { .rd { height: calc(100vh - 96px); } .rd-title { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .sc, .rd-t { transition: none !important; } }

/* ---- v8: reader layout fixes, toolbar rows, status, animations ---- */
.rd { width: 100%; min-width: 0; height: calc(100vh - 96px); min-height: 480px; border-radius: 0; background: #E4E9F3;
  animation: rdIn .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rdIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rd-bar { gap: 6px; padding: 8px 10px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.rd-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rd-top .rd-title { flex: 1; min-width: 0; }
.rd-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #14683A; background: #DFF3E6; padding: 5px 10px; border-radius: 999px; white-space: nowrap; transition: background .3s ease, color .3s ease; }
.rd-status[data-kind="saving"] { color: #8C6A1F; background: #FFF4D6; }
.rd-status[data-kind="saving"] svg { animation: rdPulse 1s ease-in-out infinite; }
.rd-status[data-kind="warn"] { color: #A3341F; background: #FCE5E0; }
@keyframes rdPulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.rd-row { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.rd-row::-webkit-scrollbar { display: none; }
.rd-nav { border-top: 1px solid var(--line-soft); padding-top: 6px; }
.rd-t { flex: none; }
.rd-t:active { transform: scale(.92); }
.rd-t.is-on { background: linear-gradient(135deg, #16305C, #2B56A8); }
#rdBm.is-on { background: linear-gradient(135deg, #E8B33C, #F3CC6A); color: #3d2b00; border-color: #E8B33C; }
#rdNight.is-on { background: linear-gradient(135deg, #0E1F3D, #2B3A5C); }
.rd-count { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-mute); flex: none; font-variant-numeric: tabular-nums; }
.rd-count input { width: 58px; height: 36px; border-radius: 10px; border: 1px solid var(--line-soft); text-align: center; font-size: 14px; padding: 0 4px; }
.rd-zoom { min-width: 48px; text-align: center; font-size: 13px; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; flex: none; }
.rd-mode { margin: 0; font-size: 12px; color: var(--ink-mute); text-align: center; }
.rd-finger { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; white-space: nowrap; flex: none; cursor: pointer; }
.rd-stage { position: relative; touch-action: none; overscroll-behavior: contain; padding: 18px 14px 60px; }
.rd-pages { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; min-width: 100%; }
.rd-page { margin: 0 auto; flex: none; position: relative; background: #fff; border-radius: 4px; overflow: hidden;
  box-shadow: 0 14px 34px -16px rgba(14,31,61,.5); transition: box-shadow .3s ease; }
.rd-page:hover { box-shadow: 0 20px 44px -18px rgba(14,31,61,.55); }
.rd-page canvas { display: block; opacity: 0; transition: opacity .35s ease; }
.rd-page canvas.is-in { opacity: 1; }
.rd-ink { touch-action: none; }
.rd.is-night .rd-page canvas { filter: invert(.9) hue-rotate(180deg) brightness(.95); }
.rd.is-night { background: #1A2233; }
.rd.is-night .rd-bar { background: rgba(20,28,44,.92); color: #E6ECF8; }
.rd.is-night .rd-title, .rd.is-night .rd-count, .rd.is-night .rd-mode, .rd.is-night .rd-finger { color: #C9D5EE; }
.rd.is-night .rd-t { background: #223049; color: #E6ECF8; border-color: #2F3F5E; }
.rd.is-night .rd-count input, .rd.is-night .rd-sel { background: #223049; color: #E6ECF8; border-color: #2F3F5E; }
.rd.is-night .rd-back { color: #9FC0FF; }
.rd-note { animation: rdPop .3s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes rdPop { from { opacity: 0; transform: scale(.85) rotate(-3deg); } to { opacity: 1; transform: rotate(-1deg); } }
@media (max-width: 640px) {
  .rd { height: calc(100vh - 88px); }
  .rd-title { font-size: 14px; }
  .rd-back span { display: none; }
  .rd-note { width: 150px; }
}
@media (min-width: 900px) { .rd-pages { align-items: center; } .rd-page { margin: 0 auto; } }
@media (prefers-reduced-motion: reduce) {
  .rd, .rd-note, .rd-status[data-kind="saving"] svg, .rd-page canvas { animation: none !important; transition: none !important; }
}

/* ---- v9: reader find + print, own PDFs, callback layouts, switch, homepage motion ---- */
.rd-find { display: flex; align-items: center; gap: 6px; }
.rd-find input[type="search"] { flex: 1; min-width: 0; height: 40px; border-radius: 12px; border: 1px solid var(--line-soft); padding: 0 12px; font-size: 14px; background: #fff; }
.rd-find-res { max-height: 150px; overflow-y: auto; display: grid; gap: 6px; padding: 2px 0; }
.rd-find-res[hidden] { display: none; }
.rd-hit { display: flex; gap: 10px; align-items: baseline; text-align: left; border: 1px solid var(--line-soft); background: #fff; border-radius: 12px; padding: 8px 12px; cursor: pointer; font-size: 13px; color: var(--ink); animation: rdPop .25s ease both; }
.rd-hit:hover { border-color: #2B56A8; transform: translateX(2px); }
.rd-hit b { color: var(--navy); flex: none; }
.rd-hit span { color: var(--ink-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd.is-night .rd-find input[type="search"], .rd.is-night .rd-hit { background: #223049; color: #E6ECF8; border-color: #2F3F5E; }

.mp-notice { padding: 12px 16px; border-radius: 14px; margin: 12px 0; font-size: 14px; }
.mp-notice.is-ok { background: #DFF3E6; color: #14683A; }
.mp-notice.is-err { background: var(--coral-wash); color: var(--coral); }
.mp-upload { display: grid; gap: 14px; margin-top: 16px; }
.mp-drop { position: relative; display: grid; justify-items: center; gap: 6px; padding: 26px; border-radius: 18px;
  border: 2px dashed #9FB7E6; background: linear-gradient(135deg, #F4F8FF, #EAF1FF); color: #2B56A8; text-align: center; transition: transform .25s ease, border-color .25s ease; }
.mp-drop:hover { transform: translateY(-2px); border-color: #2B56A8; }
.mp-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.mp-drop p { margin: 0; color: var(--ink); }
.mp-actions { display: flex; gap: 8px; align-items: center; margin-top: auto; flex-wrap: wrap; }

/* callback popup layouts */
.callback-popup { overflow: hidden; background: #fff; border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(14,31,61,.45); }
.callback-popup .cb-art { display: none; }
.callback-popup.cb-l2 .cb-art, .callback-popup.cb-l5 .cb-art { display: block; background: var(--cb-bg, linear-gradient(135deg,#2B56A8,#16305C)) center/cover no-repeat; }
.callback-popup.cb-l2 { width: min(640px, calc(100vw - 32px)); padding-left: 40%; position: fixed; }
.callback-popup.cb-l2 .cb-art { position: absolute; left: 0; top: 0; bottom: 0; width: 40%; }
.callback-popup.cb-l5 .cb-art { height: 120px; }
.callback-popup.cb-l3 { color: #fff; background: linear-gradient(160deg, rgba(14,31,61,.72), rgba(14,31,61,.94)), var(--cb-bg, linear-gradient(135deg,#2B56A8,#16305C)) center/cover; }
.callback-popup.cb-l3 h3 { color: #fff; }
.callback-popup.cb-l3 .cb-msg { color: #C9D8F0; }
.callback-popup.cb-l3 input { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.callback-popup.cb-l3 input::placeholder { color: #B9C9E6; }
.callback-popup.cb-l3 .callback-popup-close { background: rgba(255,255,255,.14); color: #fff; }
.callback-popup.cb-l4 { background: rgba(255,255,255,.7); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border: 1px solid rgba(255,255,255,.8); isolation: isolate; }
.callback-popup.cb-l4::before { content: ""; position: absolute; inset: -30px; z-index: -1; opacity: .6;
  background: var(--cb-bg, linear-gradient(135deg,#F6D98A,#9FC0FF)) center/cover; filter: blur(28px) saturate(1.2); }
.callback-popup.cb-l2 .btn-primary, .callback-popup.cb-l5 .btn-primary { box-shadow: 0 12px 24px -12px rgba(14,31,61,.6); }
@media (max-width: 600px) {
  .callback-popup.cb-l2 { padding-left: 0; }
  .callback-popup.cb-l2 .cb-art { position: relative; width: auto; height: 110px; }
}

/* admin: switch and layout picker */
.cb-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(135deg, #F4F8FF, #FFF); border: 1px solid var(--line-soft); }
.switch { position: relative; display: inline-block; width: 56px; height: 32px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: #D5DCE8; border-radius: 999px; cursor: pointer; transition: background .3s ease; }
.switch span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .3s cubic-bezier(.3,1.4,.6,1); }
.switch input:checked + span { background: linear-gradient(135deg, #2E9E5B, #1F7A48); }
.switch input:checked + span::after { transform: translateX(24px); }
.switch input:focus-visible + span { outline: 3px solid rgba(43,86,168,.4); }
.cb-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.cb-pick label { position: relative; display: block; border: 2px solid var(--line-soft); border-radius: 16px; padding: 12px; cursor: pointer; background: #fff; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.cb-pick label:hover { transform: translateY(-2px); }
.cb-pick label:has(input:checked) { border-color: #2B56A8; box-shadow: 0 12px 24px -14px rgba(43,86,168,.7); }
.cb-pick .cb-thumb { display: block; height: 70px; border-radius: 10px; margin-bottom: 8px; }

/* homepage and site motion */
.band-navy { background-image: linear-gradient(120deg, #0E1F3D, #16305C, #1F4B8F, #0E1F3D); background-size: 220% 220%; animation: auroraShift 18s ease infinite; }
@keyframes auroraShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.card { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -20px rgba(14,31,61,.4); }
.btn-primary { box-shadow: 0 10px 22px -12px rgba(14,31,61,.6); }
.btn-primary:hover { box-shadow: 0 16px 30px -12px rgba(14,31,61,.7); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
  .band-navy, .card, .btn-primary, .rd-hit, .switch span::after, .mp-drop { animation: none !important; transition: none !important; }
  .card:hover, .btn-primary:hover, .mp-drop:hover { transform: none !important; }
}
@media print {
  body * { visibility: hidden !important; }
  #rdPages, #rdPages * { visibility: visible !important; }
  #rdPages { position: absolute; left: 0; top: 0; width: 100% !important; min-width: 0 !important; display: block !important; }
  .rd-page { width: 100% !important; height: auto !important; aspect-ratio: auto; box-shadow: none !important; margin: 0 !important; break-after: page; page-break-after: always; overflow: visible; background: #fff; }
  .rd-page canvas { width: 100% !important; height: auto !important; opacity: 1 !important; filter: none !important; }
  .rd-note-x { display: none !important; }
  .rd-note { box-shadow: none !important; }
  @page { margin: 10mm; }
}

/* ---- v10: chat contact chips, live class player ---- */
.cx-blur { display: inline-block; padding: 1px 9px; border-radius: 999px; background: rgba(14,31,61,.1); color: var(--ink-mute);
  filter: blur(3.5px); user-select: none; cursor: help; font-size: 13px; }
.lv-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.lv-head h1 { margin: 0; }
.lv-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--cream-2); font-size: 13px; font-weight: 600; color: var(--ink-mute); }
.lv-pill.is-live { background: #FCE5E0; color: #A3341F; }
.lv-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.is-live .lv-dot, .lv-badge .lv-dot { animation: lvBlink 1.4s ease-in-out infinite; }
@keyframes lvBlink { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.8); } }
.lv-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .lv-grid.has-chat { grid-template-columns: minmax(0, 1fr) 340px; } }
.lv-stage { position: relative; aspect-ratio: 16 / 9; background: #05090F; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -28px rgba(14,31,61,.7); }
.lv-video, .lv-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lv-shield { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.lv-badge { position: absolute; top: 14px; left: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  background: rgba(224,69,58,.92); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .06em; pointer-events: none; }
.lv-bar { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 18px; background: linear-gradient(180deg, rgba(14,31,61,.0), rgba(14,31,61,.85)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease; }
.lv-stage:hover .lv-bar, .lv-stage:focus-within .lv-bar, .lv-stage:not(.is-playing) .lv-bar { opacity: 1; transform: none; }
.lv-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: #fff; background: rgba(255,255,255,.14); transition: transform .15s ease, background .2s ease; flex: none; }
.lv-btn:hover { background: rgba(255,255,255,.26); transform: scale(1.06); }
.lv-btn:active { transform: scale(.94); }
.lv-btn .ic-pause, .lv-btn .ic-mute { display: none; }
.lv-stage.is-playing .ic-play { display: none; } .lv-stage.is-playing .ic-pause { display: inline-flex; }
.lv-stage.is-muted .ic-vol { display: none; } .lv-stage.is-muted .ic-mute { display: inline-flex; }
.lv-btn span { display: inline-flex; }
#lvVol { width: 110px; accent-color: #E8B33C; }
.lv-spacer { flex: 1; }
.lv-chat { padding: 0; overflow: hidden; display: flex; flex-direction: column; min-height: 420px; }
.lv-chat-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.lv-chat iframe { flex: 1; width: 100%; border: 0; min-height: 380px; }
.lv-empty { text-align: center; padding: 60px 20px; display: grid; justify-items: center; gap: 12px; color: var(--ink-mute); }
.lv-note { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .lv-dot, .lv-bar, .lv-btn { animation: none !important; transition: none !important; } }

/* ---- v11: SeniorConnect free messaging, call requests, reminders ---- */
.sc-intro-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--navy); }
.sc-intro-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.sc-state { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--cream-2); color: var(--ink-mute); }
.sc-state.is-requested { background: #FFF4D6; color: #8C6A1F; }
.sc-state.is-started, .sc-state.is-done { background: #DFF3E6; color: #14683A; }
.sc-call-alert { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0; padding: 14px 16px; border-radius: 18px;
  background: linear-gradient(135deg, #FFF4D6, #FFFBEF); border: 1px solid #F0D68A; animation: scCallPulse 2.4s ease-in-out infinite; }
.sc-call-alert > div { flex: 1; min-width: 180px; display: grid; gap: 2px; }
.sc-call-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: #E8B33C; color: #3d2b00; flex: none; }
@keyframes scCallPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(232,179,60,.35); } 50% { box-shadow: 0 0 0 8px rgba(232,179,60,0); } }
@media (prefers-reduced-motion: reduce) { .sc-call-alert { animation: none; } }

/* v12: stat-card icon chips are centred; logo in callback popup */
.uh-fact .ico-chip { display: grid !important; place-items: center; width: 46px; height: 46px; border-radius: 14px; flex: none; color: #0E1F3D; }
.uh-fact .ico-chip svg { width: 22px; height: 22px; }
.uh-fact > div { min-width: 0; }
.callback-popup .cb-logo { display: block; height: 34px; width: auto; max-width: 170px; object-fit: contain; margin: 16px 18px 0; }
.callback-popup.cb-l3 .cb-logo { filter: brightness(0) invert(1); }

/* ===== v14: beautiful animated callback popup ===== */
.callback-popup { overflow: hidden; isolation: isolate; border-radius: 26px; border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 34px 70px -22px rgba(14,31,61,.5), 0 0 0 6px rgba(43,86,168,.06);
  transition: transform .55s cubic-bezier(.2,1.25,.4,1), opacity .35s ease; }
.callback-popup.show { animation: cbPop .6s cubic-bezier(.2,1.2,.4,1) both; }
@keyframes cbPop { from { opacity: 0; transform: translateY(26px) scale(.94); } to { opacity: 1; transform: none; } }

/* decorative floating orbs behind the content */
.callback-popup::after { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: -70px; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,179,60,.35), transparent 70%); animation: cbFloat 8s ease-in-out infinite; pointer-events: none; }
@keyframes cbFloat { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-16px,22px); } }

/* close button: always visible, high contrast, springs on hover */
.callback-popup .callback-popup-head { padding: 22px 64px 6px 22px; position: relative; }
.callback-popup .callback-popup-head h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.callback-popup .callback-popup-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; z-index: 3;
  border-radius: 50%; border: 2px solid #fff; background: #0E1F3D; color: #fff; box-shadow: 0 8px 18px -6px rgba(14,31,61,.6);
  display: grid; place-items: center; cursor: pointer; transition: transform .35s cubic-bezier(.3,1.6,.5,1), background .2s ease; }
.callback-popup .callback-popup-close:hover { background: #E0453A; transform: rotate(90deg) scale(1.08); }
.callback-popup .callback-popup-close:focus-visible { outline: 3px solid #E8B33C; outline-offset: 3px; }
.callback-popup .callback-popup-close svg { width: 18px; height: 18px; }

.callback-popup p.cb-msg { margin: 6px 22px 16px; font-size: 14px; line-height: 1.5; color: var(--ink-mute); }

/* form fields */
.callback-popup form { padding: 0 22px 22px; gap: 12px; }
.callback-popup input, .callback-popup select {
  height: 50px; padding: 0 16px; border-radius: 16px; border: 1.5px solid #DCE4F2; background: #F7F9FD;
  font-size: 15px; color: var(--ink); transition: border-color .2s ease, box-shadow .25s ease, transform .2s ease, background .2s ease; }
.callback-popup input::placeholder { color: #8A97AE; }
.callback-popup input:focus, .callback-popup select:focus { outline: none; border-color: #2B56A8; background: #fff;
  box-shadow: 0 0 0 4px rgba(43,86,168,.16); transform: translateY(-1px); }
.callback-popup .honey { display: none; }

/* submit: gradient, glow and a light sweep */
.callback-popup button[type="submit"] { position: relative; overflow: hidden; height: 54px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, #16305C, #2B56A8 60%, #3F74D6); color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .01em;
  box-shadow: 0 14px 28px -12px rgba(22,48,92,.75); cursor: pointer; transition: transform .25s cubic-bezier(.2,.9,.3,1.3), box-shadow .3s ease; }
.callback-popup button[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 20px 34px -14px rgba(43,86,168,.8); }
.callback-popup button[type="submit"]:active { transform: scale(.98); }
.callback-popup button[type="submit"]::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.4), transparent); transform: skewX(-18deg); animation: cbSheen 3.2s ease-in-out infinite; }
@keyframes cbSheen { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.callback-popup button[type="submit"]:disabled { opacity: .7; cursor: wait; }

/* staggered entrance for each part */
.callback-popup.show .callback-popup-head,
.callback-popup.show .cb-msg,
.callback-popup.show form > * { animation: cbRise .55s cubic-bezier(.2,.8,.2,1) both; }
.callback-popup.show .cb-msg { animation-delay: .08s; }
.callback-popup.show form > :nth-child(1) { animation-delay: .14s; }
.callback-popup.show form > :nth-child(2) { animation-delay: .18s; }
.callback-popup.show form > :nth-child(3) { animation-delay: .22s; }
.callback-popup.show form > :nth-child(4) { animation-delay: .26s; }
.callback-popup.show form > :nth-child(5) { animation-delay: .30s; }
.callback-popup.show form > :nth-child(6) { animation-delay: .34s; }
.callback-popup.show form > :nth-child(7) { animation-delay: .38s; }
@keyframes cbRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* thank-you state */
.callback-popup .cb-thanks { padding: 36px 22px; display: grid; justify-items: center; gap: 10px; text-align: center; }
.callback-popup .cb-thanks b { font-size: 18px; }
.callback-popup .cb-thanks::before { content: ""; width: 64px; height: 64px; border-radius: 50%; background: #DFF3E6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E9E5B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/30px no-repeat;
  animation: cbPopCheck .6s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes cbPopCheck { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* layout accents */
.callback-popup.cb-l3 input, .callback-popup.cb-l3 select { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); color: #fff; }
.callback-popup.cb-l3 input:focus { background: rgba(255,255,255,.2); box-shadow: 0 0 0 4px rgba(232,179,60,.35); }
.callback-popup.cb-l3 button[type="submit"] { background: linear-gradient(135deg, #E8B33C, #F3CC6A); color: #3d2b00; }
.callback-popup.cb-l3 .callback-popup-close { background: #E8B33C; color: #3d2b00; border-color: #fff; }
.callback-popup.cb-l4 input { background: rgba(255,255,255,.7); }

@media (prefers-reduced-motion: reduce) {
  .callback-popup, .callback-popup *, .callback-popup::after { animation: none !important; transition: none !important; }
}

/* ===== v15: site-wide visual refresh (colours, depth, motion). Layout and content unchanged. ===== */
:root {
  --cream: #F8F6FF;
  --cream-2: #EEF1FA;
  --cream-3: #E2E7F3;
  --navy: #1B3A78;
  --navy-deep: #0B1A38;
  --navy-lift: #2650A6;
  --navy-soft: #6E8FD0;
  --navy-wash: #EAF0FD;
  --gold: #F0B93A;
  --gold-wash: #FFF6DE;
  --line: #DFE5F2;
  --line-soft: #EDF1F9;
  --ink: #0F1B33;
  --ink-mute: #566178;
  --brand-grad: linear-gradient(135deg, #0B1A38 0%, #1B3A78 55%, #3F74D6 100%);
  --glow: 0 18px 40px -20px rgba(27,58,120,.45);
}
body {
  background:
    radial-gradient(900px 500px at 100% -10%, rgba(240,185,58,.10), transparent 60%),
    radial-gradient(800px 500px at -10% 10%, rgba(63,116,214,.10), transparent 60%),
    var(--cream);
  background-attachment: fixed;
}
/* sections: soft alternating washes instead of flat blocks */
.band-cream { background: transparent; }
.band-alt { background: linear-gradient(180deg, rgba(234,240,253,.7), rgba(246,248,255,.2)); }

/* headings: a gold underline that draws in */
h1, h2 { letter-spacing: -.02em; }
h2 { position: relative; display: inline-block; }
.section h2::after, .head-row h2::after { content: ""; display: block; width: 46px; height: 4px; margin-top: 10px; border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), #F6D27A); transform-origin: left; animation: h2Line 1.2s cubic-bezier(.2,.8,.2,1) both; }
@keyframes h2Line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.eyebrow, .kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: linear-gradient(135deg, #FFF6DE, #FFFBF0); color: #8C6A1F; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid #F3DFA4; }

/* cards: glass-like depth, lift and a faint gradient edge on hover */
.card { background: linear-gradient(180deg, #fff, #FBFCFF); border: 1px solid var(--line-soft); border-radius: 22px;
  box-shadow: 0 1px 2px rgba(15,27,51,.04), 0 12px 28px -22px rgba(27,58,120,.35); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease; }
.card:hover { transform: translateY(-4px); border-color: #CAD6EE; box-shadow: 0 1px 2px rgba(15,27,51,.05), 0 24px 44px -24px rgba(27,58,120,.5); }

/* buttons */
.btn { transition: transform .25s cubic-bezier(.2,.9,.3,1.3), box-shadow .3s ease, background .25s ease, color .25s ease, border-color .25s ease; }
.btn-primary { background: var(--brand-grad); border-color: transparent; box-shadow: 0 12px 26px -14px rgba(11,26,56,.7); }
.btn-primary:hover { background: var(--brand-grad); box-shadow: 0 18px 34px -14px rgba(63,116,214,.7); transform: translateY(-2px); }
.btn-outline { border-color: #C9D5EA; background: rgba(255,255,255,.7); }
.btn-outline:hover { border-color: var(--navy); background: #fff; transform: translateY(-2px); }
.btn-light { box-shadow: 0 8px 20px -14px rgba(27,58,120,.4); }

/* navigation */
.head-bar { background: rgba(255,255,255,.82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(223,229,242,.9); box-shadow: 0 6px 24px -20px rgba(15,27,51,.45); }
.main-nav a, nav a { position: relative; transition: color .2s ease; }
.main-nav a::after, nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -6px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), #F6D27A); transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.main-nav a:hover::after, nav a:hover::after, nav a[aria-current="page"]::after { transform: scaleX(1); }

/* tabs and chips */
.tabs a, .tab, [role="tab"] { transition: color .2s ease, background .2s ease; }
.chip, .pill, .tag { border-radius: 999px; }

/* inputs */
input, select, textarea { border: 1.5px solid #D5DDEE; background: #FBFCFF; transition: border-color .2s ease, box-shadow .25s ease, background .2s ease; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #3F74D6; background: #fff; box-shadow: 0 0 0 4px rgba(63,116,214,.14); }

/* tables */
table { border-collapse: separate; border-spacing: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-soft); background: #fff; }
th { background: linear-gradient(180deg, #F3F6FD, #EAF0FB); color: var(--navy); font-weight: 700; }
tr:hover td { background: #F7F9FE; }

/* footer */
footer, .site-footer { background: linear-gradient(160deg, #0B1A38 0%, #15305F 60%, #1B3A78 100%); color: #C9D8F0; position: relative; overflow: hidden; }
footer a, .site-footer a { color: #DCE6F8; transition: color .2s ease; }
footer a:hover, .site-footer a:hover { color: var(--gold); }

/* scroll-in reveal keeps its motion, with a little more life */
.js .reveal { transition: opacity .8s ease, transform .9s cubic-bezier(.2,.8,.2,1); }

/* gentle floating glow behind hero areas */
.uh::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(240,185,58,.22), transparent 65%); animation: siteGlow 14s ease-in-out infinite; pointer-events: none; }
@keyframes siteGlow { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-30px,20px) scale(1.06); } }

/* selection and scrollbars */
::selection { background: rgba(240,185,58,.35); color: var(--navy-deep); }
html { scrollbar-color: #B8C6E2 transparent; }

@media (prefers-reduced-motion: reduce) {
  .section h2::after, .head-row h2::after, .uh::before, .reveal { animation: none !important; transition: none !important; }
  .card:hover, .btn:hover { transform: none !important; }
}

/* ===== v16: media strip and sticky quick-action bar ===== */
.media-strip { max-width: 1180px; margin: 0 auto; padding: 26px 20px 8px; text-align: center; }
.media-kicker { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.media-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 34px; }
.media-item { display: inline-flex; align-items: center; justify-content: center; min-width: 120px; height: 56px; padding: 0 16px;
  border-radius: 16px; background: rgba(255,255,255,.8); border: 1px solid var(--line-soft); filter: grayscale(1) opacity(.7);
  transition: filter .35s ease, transform .35s cubic-bezier(.2,.9,.3,1.3), box-shadow .35s ease; text-decoration: none; }
.media-item img { max-height: 30px; max-width: 150px; object-fit: contain; }
.media-item b { font-size: 16px; color: var(--navy); letter-spacing: -.01em; }
.media-item:hover { filter: none; transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(27,58,120,.5); }
@media (prefers-reduced-motion: reduce) { .media-item { transition: none !important; } .media-item:hover { transform: none; } }

.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 80;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; border-radius: 22px;
    background: rgba(255,255,255,.92); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: 0 18px 40px -16px rgba(11,26,56,.55); border: 1px solid rgba(255,255,255,.8); animation: stickyIn .6s cubic-bezier(.2,.9,.3,1.2) both; }
  .sticky-cta a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: 16px; text-decoration: none;
    color: var(--navy); font-size: 12px; font-weight: 600; transition: transform .2s ease, background .2s ease; }
  .sticky-cta a:active { transform: scale(.94); }
  .sticky-cta a:hover { background: var(--cream-2); }
  .sticky-cta a.sc-primary { background: linear-gradient(135deg, #0B1A38, #3F74D6); color: #fff; box-shadow: 0 10px 20px -10px rgba(11,26,56,.7); }
  body { padding-bottom: 92px; }
  .callback-popup { bottom: 96px !important; }
}
@keyframes stickyIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sticky-cta { animation: none; } }

/* ===== v17: animated country picker, shortlist ===== */
.cp { padding: 56px 0 30px; position: relative; }
.cp h2 { margin: 10px 0 6px; }
.cp-lede { color: var(--ink-mute); margin: 0 0 24px; }
.cp-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 760px) { .cp-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (min-width: 1100px) { .cp-grid { grid-template-columns: repeat(6, minmax(0,1fr)); } }
.cp-card { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 4px; padding: 22px 12px 18px; border-radius: 22px;
  border: 1px solid var(--line-soft); background: #fff; cursor: pointer; font: inherit; color: var(--ink); text-align: center;
  box-shadow: 0 10px 26px -20px rgba(27,58,120,.45);
  animation: cpIn .6s cubic-bezier(.2,.9,.3,1.2) both; animation-delay: calc(var(--d, 0) * 60ms);
  transition: transform .4s cubic-bezier(.2,.9,.3,1.3), box-shadow .3s ease, border-color .3s ease; }
.cp-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(240,185,58,.22), transparent 65%); opacity: 0; transition: opacity .4s ease; }
.cp-card:hover { transform: translateY(-6px) rotate(-.6deg); border-color: #C5D3EE; box-shadow: 0 22px 40px -20px rgba(27,58,120,.55); }
.cp-card:hover::before, .cp-card.is-on::before { opacity: 1; }
.cp-card.is-on { border-color: #2B56A8; box-shadow: 0 22px 44px -18px rgba(27,58,120,.6); }
.cp-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.cp-flag { font-size: 40px; line-height: 1; display: inline-block; transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.cp-card:hover .cp-flag, .cp-card.is-on .cp-flag { transform: scale(1.18) rotate(-6deg); }
.cp-card b { font-size: 16px; margin-top: 6px; }
.cp-n { font-size: 12px; color: var(--ink-faint); }
@keyframes cpIn { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
.cp-panel { margin-top: 20px; padding: 20px; border-radius: 22px; background: linear-gradient(135deg, #0B1A38, #1B3A78); color: #fff;
  box-shadow: 0 24px 50px -24px rgba(11,26,56,.7); opacity: 0; transform: translateY(14px); }
.cp-panel[hidden] { display: none; }
.cp-panel.is-in { animation: cpPanel .55s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes cpPanel { to { opacity: 1; transform: none; } }
.cp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cp-head b { font-size: 18px; }
.cp-head .btn-primary { background: #fff; color: var(--navy); }
.cp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cp-list li { opacity: 0; transform: translateX(-10px); animation: cpItem .4s ease forwards; animation-delay: calc(var(--d, 0) * 70ms + 120ms); }
.cp-list a { display: block; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.1); color: #fff; text-decoration: none; font-weight: 600; transition: background .2s ease, transform .2s ease; }
.cp-list a:hover { background: rgba(255,255,255,.2); transform: translateX(4px); }
@keyframes cpItem { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cp-card, .cp-panel, .cp-list li, .cp-flag { animation: none !important; transition: none !important; opacity: 1; transform: none; } }

.sl-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.sl-card { display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; padding: 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line-soft);
  box-shadow: 0 10px 24px -20px rgba(27,58,120,.4); animation: cpIn .5s cubic-bezier(.2,.9,.3,1.2) both; animation-delay: calc(var(--d, 0) * 70ms);
  transition: transform .35s cubic-bezier(.2,.9,.3,1.3), box-shadow .3s ease; }
.sl-card:hover { transform: translateY(-4px); box-shadow: 0 20px 36px -22px rgba(27,58,120,.5); }
.sl-flag { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: var(--cream-2); }
.sl-body h3 { margin: 0 0 4px; font-size: 16px; line-height: 1.25; }
.sl-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sl-remove { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--ink-mute); transition: background .2s ease, color .2s ease, transform .2s ease; }
.sl-remove:hover { background: var(--coral-wash); color: var(--coral); transform: rotate(90deg); }
.sl-empty { text-align: center; display: grid; justify-items: center; gap: 12px; padding: 40px 20px; }
.sl-save-form { display: inline-flex; }
.sl-save.is-saved { background: linear-gradient(135deg, #FFF6DE, #FFFBF0); border-color: #E8B33C; color: #8C6A1F; }
.sl-save .sl-star svg { transition: transform .4s cubic-bezier(.3,1.7,.5,1); }
.sl-save.is-saved .sl-star svg { fill: #E8B33C; stroke: #E8B33C; transform: scale(1.15) rotate(-12deg); }
.sl-save:hover .sl-star svg { transform: scale(1.2); }
