/* ===========================================================================
   Study abroad
   ---------------------------------------------------------------------------
   The hub, country pages, parent summary, comparison and booking.

   Same family as the home page: light surfaces, sakura pink as the primary
   action colour, sky cyan and warm yellow as supporting tints, Baloo 2 for
   display headings and Inter for reading. A destination's own colour
   (--sa-accent) is a secondary tint for its artwork and small marks, never a
   replacement for the brand.

   Motion uses the site tokens from style.css and animates only transform and
   opacity. Everything is visible without JavaScript and under reduced motion.
   =========================================================================== */

.sa-page {
    --sa-pink: #E91E8C;
    --sa-pink-ink: #C2185B;
    --sa-pink-soft: #FDEAF4;
    --sa-cyan: #4FC3F7;
    --sa-cyan-ink: #0277BD;
    --sa-cyan-soft: #E4F5FD;
    --sa-yellow: #FFD54F;
    --sa-yellow-soft: #FFF7DB;
    --sa-ink: #10202A;
    --sa-muted: #4B6470;
    --sa-subtle: #6A7F89;
    --sa-line: #E3EAEF;
    --sa-surface: #FAFBFC;
    --sa-card: #FFFFFF;
    --sa-good: #1E7D4F;
    --sa-good-soft: #E6F6EE;
    --sa-warn: #8A5A00;
    --sa-warn-soft: #FFF4DA;
    --sa-risk: #B4233C;
    --sa-risk-soft: #FDECEF;
    --sa-accent: #E91E8C;
    --sa-accent-soft: color-mix(in srgb, var(--sa-accent) 10%, #fff);
    --sa-radius: 20px;
    --sa-radius-sm: 14px;
    --sa-shadow: 0 1px 2px rgba(16, 32, 42, 0.04), 0 8px 24px -12px rgba(16, 32, 42, 0.14);
    --sa-shadow-lift: 0 2px 4px rgba(16, 32, 42, 0.05), 0 18px 36px -16px rgba(16, 32, 42, 0.22);
    --sa-ease: var(--ease-out-soft, cubic-bezier(0.16, 1, 0.3, 1));
    --sa-fast: var(--motion-fast, 180ms);
    --sa-base: var(--motion-base, 360ms);
    background: var(--sa-surface);
    color: var(--sa-ink);
    overflow-x: clip;
}

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

.sa-wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .sa-wrap { padding: 0 24px; } }
@media (min-width: 1024px) { .sa-wrap { padding: 0 32px; } }
.sa-wrap--narrow { max-width: 52rem; }

.sa-section { padding: 48px 0; }
@media (min-width: 768px) { .sa-section { padding: 64px 0; } }
.sa-section--tint { background: linear-gradient(180deg, #F4FAFD 0%, #FBF5F9 100%); }
.sa-section--white { background: #fff; }
.sa-section + .sa-section { border-top: 1px solid var(--sa-line); }

/* --- Type ------------------------------------------------------------------ */
.sa-display, .sa-h1, .sa-h2, .sa-h3 {
    font-family: 'Baloo 2', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 800;
    letter-spacing: 0;
    color: var(--sa-ink);
    text-wrap: balance;
}
.sa-h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.02; margin: 0 0 16px; }
.sa-h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.08; margin: 0 0 10px; }
.sa-h3 { font-size: 1.25rem; line-height: 1.2; margin: 0 0 6px; }
.sa-h4 { font-size: 1rem; font-weight: 700; line-height: 1.35; margin: 0 0 4px; color: var(--sa-ink); }
.sa-lede { font-size: 1.075rem; line-height: 1.65; color: var(--sa-muted); max-width: 44rem; margin: 0; }
.sa-body { font-size: 0.95rem; line-height: 1.65; color: var(--sa-muted); margin: 0; }
.sa-small { font-size: 0.825rem; line-height: 1.55; color: var(--sa-subtle); margin: 0; }
.sa-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--sa-pink-ink); margin: 0 0 12px;
}
.sa-head { margin-bottom: 28px; }
.sa-head .sa-lede { margin-top: 6px; }
.sa-num { font-variant-numeric: tabular-nums; }
.sa-strong { color: var(--sa-ink); font-weight: 700; }
.sa-muted { color: var(--sa-muted); }

/* --- Buttons and chips ---------------------------------------------------- */
.sa-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 11px 20px; border-radius: 14px;
    font-weight: 700; font-size: 0.95rem; line-height: 1.2; text-decoration: none;
    border: 1px solid transparent; cursor: pointer;
    transition: transform var(--sa-fast) var(--sa-ease), box-shadow var(--sa-fast) var(--sa-ease),
                background-color var(--sa-fast) var(--sa-ease), color var(--sa-fast) var(--sa-ease);
}
.sa-btn:active { transform: scale(0.98); }
.sa-btn:focus-visible, .sa-chip:focus-visible, .sa-tab:focus-visible, .sa-page summary:focus-visible,
.sa-page a:focus-visible, .sa-page input:focus-visible, .sa-page select:focus-visible, .sa-page textarea:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--sa-cyan) 70%, #fff);
    outline-offset: 2px;
}
.sa-btn--primary { background: var(--sa-pink); color: #fff; box-shadow: 0 6px 18px -8px rgba(233, 30, 140, 0.55); }
.sa-btn--primary:hover { background: var(--sa-pink-ink); color: #fff; transform: translateY(-2px); }
.sa-btn--ghost { background: #fff; color: var(--sa-ink); border-color: var(--sa-line); }
.sa-btn--ghost:hover { border-color: #C9D6DE; transform: translateY(-2px); box-shadow: var(--sa-shadow); }
.sa-btn--soft { background: var(--sa-cyan-soft); color: var(--sa-cyan-ink); }
.sa-btn--soft:hover { background: #D3EEFB; }
.sa-btn--zalo { background: #0068FF; color: #fff; }
.sa-btn--zalo:hover { background: #0057D6; color: #fff; transform: translateY(-2px); }
.sa-btn--sm { min-height: 38px; padding: 8px 14px; font-size: 0.875rem; border-radius: 12px; }
.sa-btn--block { width: 100%; }
.sa-btn svg, .sa-btn i { width: 18px; height: 18px; flex-shrink: 0; }
.sa-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.sa-link {
    display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.92rem;
    color: var(--sa-pink-ink); text-decoration: none;
}
.sa-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.sa-link svg, .sa-link i { width: 16px; height: 16px; }

.sa-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sa-chip {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 40px; padding: 8px 14px; border-radius: 999px;
    border: 1px solid var(--sa-line); background: #fff; color: var(--sa-ink);
    font-size: 0.875rem; font-weight: 600; cursor: pointer; text-decoration: none;
    transition: background-color var(--sa-fast) var(--sa-ease), border-color var(--sa-fast) var(--sa-ease),
                color var(--sa-fast) var(--sa-ease), transform var(--sa-fast) var(--sa-ease);
}
.sa-chip:hover { border-color: #C9D6DE; }
.sa-chip:active { transform: scale(0.98); }
.sa-chip[aria-pressed="true"], .sa-chip[aria-selected="true"], .sa-chip.is-on {
    background: var(--sa-ink); border-color: var(--sa-ink); color: #fff;
}
.sa-chip[disabled] { opacity: 0.45; cursor: not-allowed; }

.sa-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; line-height: 1.5;
    background: #EEF3F6; color: var(--sa-muted);
}
.sa-badge--pink { background: var(--sa-pink-soft); color: var(--sa-pink-ink); }
.sa-badge--cyan { background: var(--sa-cyan-soft); color: var(--sa-cyan-ink); }
.sa-badge--yellow { background: var(--sa-yellow-soft); color: var(--sa-warn); }
.sa-badge--good { background: var(--sa-good-soft); color: var(--sa-good); }
.sa-badge--risk { background: var(--sa-risk-soft); color: var(--sa-risk); }
.sa-badge svg, .sa-badge i { width: 13px; height: 13px; }

.sa-icon {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 42px; height: 42px; border-radius: 13px;
    background: var(--sa-pink-soft); color: var(--sa-pink-ink);
}
.sa-icon svg, .sa-icon i { width: 20px; height: 20px; }
.sa-icon--cyan { background: var(--sa-cyan-soft); color: var(--sa-cyan-ink); }
.sa-icon--yellow { background: var(--sa-yellow-soft); color: var(--sa-warn); }
.sa-icon--accent { background: var(--sa-accent-soft); color: var(--sa-accent); }
.sa-icon--sm { width: 34px; height: 34px; border-radius: 11px; }
.sa-icon--sm svg, .sa-icon--sm i { width: 17px; height: 17px; }

/* --- Cards ------------------------------------------------------------------ */
.sa-card {
    background: var(--sa-card); border: 1px solid var(--sa-line); border-radius: var(--sa-radius);
    box-shadow: var(--sa-shadow);
}
.sa-card--pad { padding: 22px; }
@media (min-width: 768px) { .sa-card--pad { padding: 28px; } }
.sa-card--flat { box-shadow: none; }
.sa-card--pink { background: linear-gradient(160deg, #FFF5FA 0%, #FFFFFF 70%); border-color: #F7D3E5; }
.sa-card--cyan { background: linear-gradient(160deg, #F0FAFE 0%, #FFFFFF 70%); border-color: #CBEAF8; }
.sa-card--yellow { background: linear-gradient(160deg, #FFFBEA 0%, #FFFFFF 70%); border-color: #F6E3A6; }
a.sa-card { display: block; color: inherit; text-decoration: none; }
.sa-lift { transition: transform var(--sa-base) var(--sa-ease), box-shadow var(--sa-base) var(--sa-ease); }
.sa-lift:hover { transform: translateY(-2px); box-shadow: var(--sa-shadow-lift); }

.sa-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .sa-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .sa-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 767px) { .sa-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sa-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 1023px) { .sa-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sa-split { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1024px) {
    .sa-split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; }
    .sa-split--rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
    .sa-sticky { position: sticky; top: calc(var(--shell-header-h, 76px) + 76px); }
}
.sa-stack > * + * { margin-top: 16px; }
.sa-stack--sm > * + * { margin-top: 8px; }

/* --- Hero ------------------------------------------------------------------- */
.sa-hero {
    position: relative; isolation: isolate; overflow: hidden;
    background:
        radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--sa-accent) 16%, transparent), transparent 38%),
        radial-gradient(circle at 8% 18%, rgba(233, 30, 140, 0.13), transparent 34%),
        radial-gradient(circle at 60% 110%, rgba(79, 195, 247, 0.20), transparent 42%),
        linear-gradient(135deg, #F6FBFD 0%, #F2F9F7 45%, #FBF0F6 100%);
    padding: 36px 0 44px;
}
@media (min-width: 768px) { .sa-hero { padding: 56px 0 64px; } }
.sa-hero__grid { display: grid; gap: 28px; align-items: center; position: relative; z-index: 1; }
@media (min-width: 1024px) { .sa-hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; } }
.sa-hero__media { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: 0.12; }
.sa-hero__flag { font-size: 1.4rem; line-height: 1; }
.sa-hero .sa-lede { margin-bottom: 22px; }
.sa-hero__facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }

.sa-motif-slot { display: contents; }
.sa-motif-hero {
    position: absolute; right: -10%; bottom: -14%; z-index: 0;
    width: min(70vw, 420px); height: auto;
    color: var(--sa-accent); opacity: 0.16; pointer-events: none;
}
@media (min-width: 1024px) { .sa-motif-hero { right: 2%; bottom: -20%; width: 440px; opacity: 0.2; } }
.sa-motif-slot.has-lottie { display: block; }
.sa-motif-slot.has-lottie > svg { display: none; }
.sa-motif-slot.has-lottie > .sa-lottie { position: absolute; right: 2%; bottom: -12%; width: min(60vw, 420px); opacity: 0.25; pointer-events: none; z-index: 0; }
.sa-motif-mark { width: 26px; height: 26px; color: var(--sa-accent); flex-shrink: 0; }

.sa-countdown {
    position: relative; z-index: 1;
    background: rgba(255, 255, 255, 0.86); border: 1px solid #fff; border-radius: 24px;
    box-shadow: var(--sa-shadow-lift); padding: 22px;
}
@media (min-width: 768px) { .sa-countdown { padding: 26px; } }
.sa-countdown__days { font-family: 'Baloo 2', 'Inter', sans-serif; font-weight: 800; font-size: 3.4rem; line-height: 0.95; color: var(--sa-pink); }
.sa-countdown__row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--sa-line); font-size: 0.9rem; }
.sa-countdown__row dt { color: var(--sa-subtle); }
.sa-countdown__row dd { margin: 0; font-weight: 700; text-align: right; }

/* --- Sticky sub-navigation (tabs) ------------------------------------------- */
.sa-tabbar {
    position: sticky; top: var(--shell-header-h, 76px); z-index: 30;
    background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--sa-line);
}
@supports (backdrop-filter: blur(8px)) {
    .sa-tabbar { background: rgba(255, 255, 255, 0.88); backdrop-filter: saturate(160%) blur(10px); }
}
.sa-tabbar__list {
    position: relative; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
}
.sa-tabbar__list::-webkit-scrollbar { display: none; }
.sa-tab {
    position: relative; flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
    min-height: 52px; padding: 0 14px; border: 0; background: none; cursor: pointer;
    font-size: 0.92rem; font-weight: 600; color: var(--sa-muted); white-space: nowrap; scroll-snap-align: start;
    transition: color var(--sa-fast) var(--sa-ease);
}
.sa-tab svg, .sa-tab i { width: 17px; height: 17px; }
.sa-tab:hover { color: var(--sa-ink); }
.sa-tab[aria-selected="true"] { color: var(--sa-pink-ink); }
.sa-tab__count { font-size: 0.72rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: #EEF3F6; color: var(--sa-subtle); }
.sa-tab[aria-selected="true"] .sa-tab__count { background: var(--sa-pink-soft); color: var(--sa-pink-ink); }
.sa-tab__ink {
    position: absolute; left: 0; bottom: 0; height: 3px; width: 100px; border-radius: 3px 3px 0 0;
    background: var(--sa-pink); transform-origin: 0 0; pointer-events: none;
    transition: transform var(--sa-base) var(--sa-ease);
}
/* Without JS the ink is hidden and the selected tab carries its own mark. */
.sa-tabbar:not(.is-ready) .sa-tab[aria-selected="true"]::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--sa-pink);
}

.sa-panel[hidden] { display: none; }
.sa-panel.is-entering { animation: saPanelIn var(--sa-base) var(--sa-ease) both; }
@keyframes saPanelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* --- Facts, stats ----------------------------------------------------------- */
.sa-facts { margin: 0; }
.sa-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-top: 1px solid var(--sa-line); }
.sa-facts > div:first-child { border-top: 0; padding-top: 0; }
.sa-facts dt { font-size: 0.875rem; color: var(--sa-subtle); }
.sa-facts dd { margin: 0; font-size: 0.92rem; font-weight: 700; text-align: right; }
.sa-stat { font-family: 'Baloo 2', 'Inter', sans-serif; font-weight: 800; font-size: 2rem; line-height: 1; color: var(--sa-pink); margin: 0 0 6px; }
.sa-stat--ink { color: var(--sa-ink); }
.sa-stat-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sa-subtle); margin: 0 0 8px; }

.sa-mosaic { display: grid; gap: 16px; }
@media (min-width: 640px) { .sa-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
    .sa-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sa-mosaic > :nth-child(5n + 1) { grid-column: span 2; }
}
.sa-tile__media { height: 170px; background-size: cover; background-position: center; border-radius: var(--sa-radius) var(--sa-radius) 0 0; }

/* City cards: a drawn skyline band in the destination tint, never an empty
   gradient placeholder. */
.sa-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 82%); gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.sa-scroller > * { scroll-snap-align: start; }
@media (min-width: 768px) { .sa-scroller { grid-auto-columns: minmax(260px, 1fr); grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; } }
@media (min-width: 1024px) { .sa-scroller--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .sa-scroller--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sa-city { display: flex; flex-direction: column; overflow: hidden; }
.sa-city__band {
    position: relative; height: 112px; overflow: hidden;
    background: linear-gradient(180deg, var(--sa-accent-soft) 0%, #fff 100%);
    border-bottom: 1px solid var(--sa-line);
}
.sa-city__band img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sa-city__band .sa-motif { position: absolute; right: -6px; bottom: -18px; width: 120px; height: auto; color: var(--sa-accent); opacity: 0.32; }
.sa-city__name { position: absolute; left: 18px; bottom: 14px; font-family: 'Baloo 2', 'Inter', sans-serif; font-weight: 800; font-size: 1.45rem; color: var(--sa-ink); line-height: 1; }
.sa-city__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sa-city__cost { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--sa-line); }

/* --- Accordion ---------------------------------------------------------------- */
.sa-acc-list { border: 1px solid var(--sa-line); border-radius: var(--sa-radius); background: #fff; overflow: hidden; }
.sa-acc + .sa-acc { border-top: 1px solid var(--sa-line); }
.sa-acc > summary {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    padding: 18px 20px; cursor: pointer; list-style: none;
    transition: background-color var(--sa-fast) var(--sa-ease);
}
.sa-acc > summary::-webkit-details-marker { display: none; }
.sa-acc > summary:hover { background: #F7FAFB; }
.sa-acc__icon { width: 20px; height: 20px; color: var(--sa-subtle); flex-shrink: 0; margin-top: 2px; transition: transform var(--sa-base) var(--sa-ease); }
.sa-acc[open] > summary .sa-acc__icon { transform: rotate(180deg); }
.sa-acc__body { padding: 0 20px 20px; }
.sa-acc[open] .sa-acc__body { animation: saFadeUp var(--sa-base) var(--sa-ease) both; }
@keyframes saFadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.sa-note {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 16px; border-radius: var(--sa-radius-sm);
    background: var(--sa-cyan-soft); color: #0B4F6C; font-size: 0.9rem; line-height: 1.55;
}
.sa-note svg, .sa-note i { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.sa-note--warn { background: var(--sa-warn-soft); color: #5F4100; }
.sa-note--risk { background: var(--sa-risk-soft); color: #7D1A2B; }
.sa-note--pink { background: var(--sa-pink-soft); color: #7A1048; }
.sa-note p { margin: 0; }
.sa-note strong { color: inherit; }

/* --- Timeline rail ------------------------------------------------------------ */
.sa-rail { position: relative; padding-left: 28px; }
.sa-rail::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--sa-line); }
.sa-node { position: relative; padding-bottom: 22px; }
.sa-node:last-child { padding-bottom: 0; }
.sa-node::before {
    content: ''; position: absolute; left: -26px; top: 5px; width: 14px; height: 14px; border-radius: 50%;
    background: #fff; border: 3px solid var(--sa-cyan);
}
.sa-node[data-hard="1"]::before { border-color: var(--sa-pink); }
.sa-node[data-past="1"] { opacity: 0.55; }
.sa-node[data-past="1"]::before { background: var(--sa-line); border-color: var(--sa-line); }
.sa-rail.is-animated .sa-node { opacity: 0; transform: translateY(10px); transition: opacity var(--sa-base) var(--sa-ease), transform var(--sa-base) var(--sa-ease); }
.sa-rail.is-animated .sa-node.is-in { opacity: 1; transform: none; }
.sa-rail.is-animated .sa-node.is-in[data-past="1"] { opacity: 0.55; }

/* --- Calculator, estimators ---------------------------------------------------- */
.sa-field { display: block; margin-bottom: 18px; }
.sa-field:last-child { margin-bottom: 0; }
.sa-label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--sa-subtle); margin-bottom: 8px; }
.sa-input, .sa-select, .sa-textarea {
    width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px;
    border: 1px solid #D3DEE5; background: #fff; color: var(--sa-ink); font-size: 1rem;
}
.sa-textarea { min-height: 96px; resize: vertical; }
.sa-input[aria-invalid="true"], .sa-select[aria-invalid="true"] { border-color: var(--sa-risk); }
.sa-error { display: block; margin-top: 6px; font-size: 0.85rem; color: var(--sa-risk); }
.sa-range { width: 100%; accent-color: var(--sa-pink); height: 28px; }
.sa-range-out { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; font-weight: 800; font-size: 1.2rem; }
.sa-range-out span:last-child { font-size: 0.85rem; font-weight: 600; color: var(--sa-subtle); }

.sa-result { border-radius: var(--sa-radius); padding: 22px; background: #fff; border: 1px solid #F7D3E5; box-shadow: var(--sa-shadow); }
.sa-result__primary { font-family: 'Baloo 2', 'Inter', sans-serif; font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.05; color: var(--sa-ink); margin: 2px 0 4px; }
.sa-result__secondary { font-size: 0.9rem; color: var(--sa-subtle); margin: 0; }
.sa-buckets { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 640px) { .sa-buckets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sa-bucket { padding: 14px; border-radius: var(--sa-radius-sm); background: #F7FAFB; }
.sa-bucket__value { font-weight: 800; font-size: 1.05rem; line-height: 1.25; margin: 2px 0; }
.is-loading .sa-result__primary, .is-loading .sa-bucket__value, .is-loading [data-calc-lines] { opacity: 0.5; transition: opacity var(--sa-fast) var(--sa-ease); }

.sa-table-wrap { border: 1px solid var(--sa-line); border-radius: var(--sa-radius); overflow-x: auto; background: #fff; }
.sa-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.sa-table th, .sa-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--sa-line); }
.sa-table thead th { border-top: 0; background: #F7FAFB; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--sa-subtle); }
.sa-table td.sa-amount { text-align: right; white-space: nowrap; font-weight: 700; }
.sa-table td.sa-amount small { display: block; font-weight: 500; color: var(--sa-subtle); font-size: 0.78rem; }
.sa-table tfoot td { background: #FFF8FC; font-weight: 800; }
.sa-table .sa-group td { background: #FBFCFD; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--sa-subtle); }

.sa-meter { height: 12px; border-radius: 999px; background: #EEF3F6; overflow: hidden; position: relative; }
.sa-meter__fill { position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: inherit; background: var(--sa-cyan); transform-origin: 0 50%; transition: transform var(--sa-base) var(--sa-ease); }
.sa-meter__fill--pink { background: var(--sa-pink); }

/* --- Personal plan --------------------------------------------------------------- */
.sa-ring { position: relative; width: 112px; height: 112px; flex-shrink: 0; }
.sa-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sa-ring circle { fill: none; stroke-width: 10; }
.sa-ring__track { stroke: #EEF3F6; }
.sa-ring__bar { stroke: var(--sa-pink); stroke-linecap: round; transition: stroke-dashoffset var(--sa-base) var(--sa-ease); }
.sa-ring__label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 1.35rem; line-height: 1; }
.sa-ring__label small { font-size: 0.7rem; font-weight: 600; color: var(--sa-subtle); margin-top: 4px; }

.sa-checklist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--sa-line); border-radius: var(--sa-radius); background: #fff; overflow: hidden; }
.sa-checklist > li + li { border-top: 1px solid var(--sa-line); }
.sa-check { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; cursor: pointer; }
.sa-check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--sa-pink); flex-shrink: 0; cursor: pointer; }
.sa-check__text { flex: 1; min-width: 0; }
.sa-check input:checked + .sa-check__text .sa-h4 { color: var(--sa-subtle); text-decoration: line-through; text-decoration-thickness: 1px; }

/* --- Language route ---------------------------------------------------------------- */
.sa-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sa-step { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--sa-radius-sm); background: #fff; border: 1px solid var(--sa-line); }
.sa-step__num { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--sa-cyan-soft); color: var(--sa-cyan-ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; }
.sa-step--goal .sa-step__num { background: var(--sa-pink); color: #fff; }

/* --- Hub ----------------------------------------------------------------------------- */
.sa-filters { display: grid; gap: 16px; padding: 18px; border-radius: var(--sa-radius); background: #fff; border: 1px solid var(--sa-line); margin-bottom: 20px; }
@media (min-width: 900px) { .sa-filters { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: end; } }
.sa-dest { display: flex; flex-direction: column; overflow: hidden; position: relative; }
.sa-dest[hidden] { display: none; }
.sa-dest__top { position: relative; padding: 20px 20px 16px; background: linear-gradient(160deg, var(--sa-accent-soft) 0%, #fff 75%); overflow: hidden; }
.sa-dest__top .sa-motif { position: absolute; right: -14px; top: -10px; width: 120px; height: auto; color: var(--sa-accent); opacity: 0.22; }
.sa-dest__name { display: flex; align-items: center; gap: 10px; }
.sa-dest__body { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.sa-dest__facts { margin: 0; display: grid; gap: 8px; }
.sa-dest__facts > div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.875rem; }
.sa-dest__facts dt { color: var(--sa-subtle); }
.sa-dest__facts dd { margin: 0; font-weight: 700; text-align: right; }
.sa-dest__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 4px; }
.sa-dest__foot .sa-chip { white-space: nowrap; }
.sa-empty { padding: 28px; text-align: center; border: 1px dashed #C9D6DE; border-radius: var(--sa-radius); color: var(--sa-muted); }

.sa-deadlines { list-style: none; margin: 0; padding: 0; }
.sa-deadlines li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--sa-line); }
.sa-deadlines li:first-child { border-top: 0; padding-top: 0; }
.sa-deadlines a { color: inherit; text-decoration: none; flex: 1; min-width: 0; }
.sa-deadlines a:hover .sa-h4 { color: var(--sa-pink-ink); }
.sa-days { flex-shrink: 0; min-width: 64px; text-align: center; padding: 6px 8px; border-radius: 12px; background: var(--sa-pink-soft); color: var(--sa-pink-ink); font-weight: 800; line-height: 1.1; }
.sa-days small { display: block; font-size: 0.68rem; font-weight: 600; }

.sa-tray {
    position: fixed; left: 50%; bottom: 16px; z-index: 45; width: min(calc(100% - 32px), 640px);
    transform: translate(-50%, 0); display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 12px 14px; border-radius: 18px; background: var(--sa-ink); color: #fff; box-shadow: 0 18px 40px -16px rgba(16, 32, 42, 0.6);
    transition: transform var(--sa-base) var(--sa-ease), opacity var(--sa-base) var(--sa-ease);
}
.sa-tray[hidden] { display: flex; visibility: hidden; opacity: 0; transform: translate(-50%, 24px); pointer-events: none; }
.sa-tray__items { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; }
.sa-tray__item { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); font-size: 0.85rem; font-weight: 600; }
.sa-tray__item button { border: 0; background: rgba(255, 255, 255, 0.16); color: #fff; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.sa-tray__item button svg, .sa-tray__item button i { width: 14px; height: 14px; }

/* --- Compare ---------------------------------------------------------------------------- */
.sa-compare { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 560px; }
.sa-compare th, .sa-compare td { padding: 14px 16px; vertical-align: top; border-top: 1px solid var(--sa-line); font-size: 0.92rem; text-align: left; }
.sa-compare thead th { border-top: 0; background: #fff; position: sticky; top: 0; }
.sa-compare tbody th { width: 22%; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--sa-subtle); background: #FBFCFD; }
.sa-compare .sa-best { color: var(--sa-good); }

/* --- Trust, contact ----------------------------------------------------------------------- */
.sa-flags { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sa-flags li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.93rem; line-height: 1.55; color: var(--sa-muted); }
.sa-flags li svg, .sa-flags li i { width: 18px; height: 18px; color: var(--sa-risk); flex-shrink: 0; margin-top: 2px; }
.sa-trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sa-trust-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.93rem; }
.sa-trust-list li svg, .sa-trust-list li i { width: 18px; height: 18px; color: var(--sa-cyan-ink); flex-shrink: 0; margin-top: 2px; }

.sa-cta {
    position: relative; overflow: hidden; border-radius: 28px; padding: 28px;
    background:
        radial-gradient(circle at 92% 10%, rgba(255, 213, 79, 0.35), transparent 30%),
        radial-gradient(circle at 0% 100%, rgba(79, 195, 247, 0.28), transparent 40%),
        linear-gradient(135deg, #FFF0F7 0%, #F2FAFE 100%);
    border: 1px solid #F3D7E6;
}
@media (min-width: 768px) { .sa-cta { padding: 44px; } }

.sa-mobilebar { display: none; }
@media (max-width: 767px) {
    .sa-mobilebar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 44; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
        gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.97);
        border-top: 1px solid var(--sa-line); box-shadow: 0 -8px 24px -16px rgba(16, 32, 42, 0.3);
    }
    .sa-mobilebar .sa-btn { min-height: 44px; padding: 8px 10px; font-size: 0.85rem; }
    .sa-has-mobilebar { padding-bottom: 76px; }
}

/* --- Booking --------------------------------------------------------------------------------- */
.sa-days-picker { display: grid; grid-auto-flow: column; grid-auto-columns: 78px; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.sa-day {
    scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 10px 6px; border-radius: 14px; border: 1px solid var(--sa-line); background: #fff; cursor: pointer;
    font-size: 0.78rem; color: var(--sa-subtle); transition: background-color var(--sa-fast) var(--sa-ease), border-color var(--sa-fast) var(--sa-ease), transform var(--sa-fast) var(--sa-ease);
}
.sa-day strong { font-size: 1.25rem; color: var(--sa-ink); line-height: 1.1; }
.sa-day:active { transform: scale(0.98); }
.sa-day[aria-pressed="true"] { background: var(--sa-ink); border-color: var(--sa-ink); color: rgba(255, 255, 255, 0.8); }
.sa-day[aria-pressed="true"] strong { color: #fff; }
.sa-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.sa-times .sa-chip { justify-content: center; border-radius: 12px; }
.sa-modes { display: grid; gap: 8px; }
@media (min-width: 640px) { .sa-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sa-mode { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--sa-line); background: #fff; cursor: pointer; font-weight: 600; font-size: 0.9rem; }
.sa-mode input { accent-color: var(--sa-pink); width: 18px; height: 18px; }
.sa-mode:has(input:checked) { border-color: var(--sa-pink); background: #FFF5FA; }
.sa-mode:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }
.sa-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sa-done { text-align: center; }
.sa-done .sa-icon { width: 64px; height: 64px; border-radius: 22px; margin: 0 auto 16px; background: var(--sa-good-soft); color: var(--sa-good); }
.sa-done .sa-icon svg, .sa-done .sa-icon i { width: 30px; height: 30px; }

.sa-toast {
    position: fixed; left: 50%; bottom: 96px; z-index: 60; transform: translate(-50%, 12px); opacity: 0;
    padding: 10px 16px; border-radius: 12px; background: var(--sa-ink); color: #fff; font-size: 0.9rem; font-weight: 600;
    pointer-events: none; transition: opacity var(--sa-fast) var(--sa-ease), transform var(--sa-fast) var(--sa-ease);
}
.sa-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.sa-print-only { display: none; }

/* --- Reduced motion ------------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    .sa-page *, .sa-page *::before, .sa-page *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
    .sa-rail.is-animated .sa-node { opacity: 1; transform: none; }
    .sa-rail.is-animated .sa-node[data-past="1"] { opacity: 0.55; }
    .sa-lift:hover, .sa-btn:hover { transform: none; }
}

/* --- Print: "My study-abroad plan" and the parent summary ------------------------------------------ */
@media print {
    @page { margin: 14mm; }
    body { background: #fff !important; }
    #site-header, header.shell-header, footer, .sa-tabbar, .sa-mobilebar, .sa-tray, .sa-no-print,
    .sa-actions, .sa-chips, .sa-motif-hero, .sa-motif-slot, nav, .sa-toast, [data-no-print] { display: none !important; }
    .sa-print-only { display: block !important; }
    .sa-page { background: #fff; }
    .sa-hero { background: #fff; padding: 0 0 12px; }
    .sa-panel[hidden] { display: none !important; }
    .sa-printing .sa-panel { display: none !important; }
    .sa-printing .sa-panel[data-tab-panel="plan"] { display: block !important; }
    .sa-printing .sa-hero, .sa-printing .sa-below { display: none !important; }
    .sa-card, .sa-result, .sa-table-wrap, .sa-checklist { box-shadow: none !important; break-inside: avoid; }
    .sa-section { padding: 14px 0; }
    .sa-acc .sa-acc__body { display: block !important; }
    a { color: inherit; text-decoration: none; }
}

/* On phones the compare tray sits above the contact bar, never over it. */
@media (max-width: 767px) {
    .sa-tray { bottom: calc(76px + env(safe-area-inset-bottom)); }
    .sa-toast { bottom: calc(148px + env(safe-area-inset-bottom)); }
}
.sa-btn.is-disabled { opacity: 0.55; }

/* Anything given the hidden attribute stays hidden, whatever display a
   component class sets (the compare tray animates out instead). */
.sa-page [hidden]:not(.sa-tray) { display: none !important; }
/* Fieldsets default to min-content width, which lets the day picker push the
   booking form wider than a phone. */
.sa-page fieldset { min-width: 0; margin: 0; }

/* Booking form steps: a fieldset styled as a card. A legend normally sits on
   the fieldset border; floating it into the card keeps the step titles inside
   their box instead of cutting through the top edge. */
.sa-fieldset {
    border: 1px solid var(--sa-line);
    margin: 0;
}

.sa-fieldset__legend {
    float: left;
    width: 100%;
    padding: 0 0 14px;
    margin: 0;
}

.sa-fieldset__legend + * {
    clear: both;
}

/* Selected for comparison: the brand tint rather than a heavy dark pill, so a
   chosen card does not shout louder than its own primary action. */
.sa-dest__foot .sa-chip[aria-pressed="true"] {
    background: var(--sa-pink-soft);
    border-color: var(--sa-pink);
    color: var(--sa-pink-ink);
}

/* The floating contact button rides above the compare tray while it shows. */
@media (min-width: 768px) {
    html.sa-tray-open .contact-cluster {
        bottom: calc(1.25rem + var(--sa-tray-h, 0px));
        transition: bottom var(--sa-base, 360ms) var(--sa-ease, ease);
    }
}

/* City cards: a typographic header instead of the same motif repeated on
   every card, plus a meter placing each city between the cheapest and the
   priciest one in this country. */
.sa-city__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sa-city__title { margin: 0; font-family: 'Baloo 2', 'Inter', sans-serif; font-weight: 800; font-size: 1.4rem; line-height: 1.1; color: var(--sa-ink); }
.sa-city__region {
    padding: 2px 9px; border-radius: 999px; background: var(--sa-accent-soft, var(--sa-pink-soft));
    color: var(--sa-ink); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.sa-city__meter {
    position: relative; height: 6px; margin-top: 10px; border-radius: 999px;
    background: linear-gradient(90deg, var(--sa-cyan-soft), var(--sa-pink-soft));
}
.sa-city__meter-dot {
    position: absolute; top: 50%; left: calc(var(--pos, 0) * (100% - 14px)); width: 14px; height: 14px; margin-top: -7px;
    border-radius: 50%; background: #fff; border: 3px solid var(--sa-pink);
    box-shadow: 0 2px 6px -2px rgba(16, 32, 42, 0.35);
    transform: scale(0); transition: transform var(--sa-base, 360ms) var(--sa-ease, ease) 200ms;
}
.sa-city.is-revealed .sa-city__meter-dot,
html:not(.js-reveal) .sa-city__meter-dot { transform: scale(1); }
.sa-city__meter-ends { display: flex; justify-content: space-between; margin-top: 4px; color: var(--sa-subtle); font-size: 0.7rem; }
@media (prefers-reduced-motion: reduce) { .sa-city__meter-dot { transform: none; transition: none; } }

/* --- Booking, two-column layout (consultation.php) ------------------------------------------- */
.sa-book-facts {
    display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 18px 0 0; padding: 0; list-style: none;
}
.sa-book-facts li {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.78); border: 1px solid var(--sa-line); color: var(--sa-ink);
    font-size: 0.85rem; font-weight: 600;
}
.sa-book-facts svg, .sa-book-facts i { width: 16px; height: 16px; color: var(--sa-pink); }

.sa-book { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1024px) {
    .sa-book { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
    .sa-book__aside { position: sticky; top: calc(var(--shell-header-h, 72px) + 16px); }
}
.sa-book__aside { display: grid; gap: 14px; }
/* Phones: the summary sits after the steps, right above the button it explains. */
@media (max-width: 1023px) {
    .sa-book__form { display: contents; }
    .sa-book__form > * { order: 1; }
    .sa-book__aside { order: 2; }
    .sa-book__form > .sa-book__submit { order: 3; }
}

/* Step titles with a number that turns into a tick */
.sa-steptitle { display: flex !important; align-items: center; gap: 10px; }
.sa-stepbadge {
    position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 30px; height: 30px; border-radius: 50%; background: var(--sa-pink-soft); color: var(--sa-pink-ink);
    font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 800;
    transition: background-color var(--sa-base) var(--sa-ease), color var(--sa-base) var(--sa-ease);
}
.sa-stepbadge__ok {
    position: absolute; inset: 7px; width: 16px; height: 16px; opacity: 0; transform: scale(0.4) rotate(-12deg);
    stroke-dasharray: 24; stroke-dashoffset: 24;
    transition: opacity 200ms var(--sa-ease), transform 320ms var(--sa-ease), stroke-dashoffset 380ms var(--sa-ease) 80ms;
}
.sa-stepbadge__n { transition: opacity 160ms var(--sa-ease), transform 220ms var(--sa-ease); }
[data-step].is-complete .sa-stepbadge { background: var(--sa-good); color: #fff; }
[data-step].is-complete .sa-stepbadge__n { opacity: 0; transform: scale(0.5); }
[data-step].is-complete .sa-stepbadge__ok { opacity: 1; transform: none; stroke-dashoffset: 0; }
[data-step] { transition: border-color var(--sa-base) var(--sa-ease); }
[data-step].is-complete { border-color: #CDEBDB; }

/* Day strip with arrow buttons */
.sa-days-wrap { position: relative; }
.sa-days-picker { scrollbar-width: none; scroll-padding: 0 4px; }
.sa-days-picker::-webkit-scrollbar { display: none; }
.sa-days-nav {
    position: absolute; top: 50%; z-index: 2; display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; margin-top: -20px; border-radius: 50%; border: 1px solid var(--sa-line);
    background: #fff; color: var(--sa-ink); box-shadow: 0 6px 16px -8px rgba(16, 32, 42, 0.35); cursor: pointer;
    transition: transform var(--sa-fast) var(--sa-ease);
}
.sa-days-nav:active { transform: scale(0.94); }
.sa-days-nav svg, .sa-days-nav i { width: 18px; height: 18px; }
.sa-days-nav--prev { left: -10px; }
.sa-days-nav--next { right: -10px; }
.sa-days-nav[hidden] { display: none; }
.sa-day__count { font-style: normal; font-size: 0.68rem; font-weight: 600; color: var(--sa-good); }
.sa-day[aria-pressed="true"] .sa-day__count { color: #BFEBD3; }
.sa-day:hover { border-color: #C9D6DE; }

/* Times grouped by part of the day */
.sa-times-groups { display: grid; gap: 12px; }
.sa-times-group__label { margin: 0 0 6px; color: var(--sa-subtle); font-size: 0.75rem; font-weight: 700; }
.sa-times .sa-chip[aria-pressed="true"] { background: var(--sa-pink); border-color: var(--sa-pink); color: #fff; }
.sa-times-groups.is-entering .sa-times-group { animation: sa-rise var(--sa-base) var(--sa-ease) both; }
.sa-times-groups.is-entering .sa-times-group:nth-child(2) { animation-delay: 50ms; }
.sa-times-groups.is-entering .sa-times-group:nth-child(3) { animation-delay: 100ms; }
@keyframes sa-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Ways to talk as cards with a short explanation */
.sa-modes--cards { gap: 10px; }
.sa-mode--card { position: relative; align-items: flex-start; padding: 14px; transition: border-color var(--sa-fast) var(--sa-ease), background-color var(--sa-fast) var(--sa-ease), box-shadow var(--sa-fast) var(--sa-ease); }
.sa-mode--card input { position: absolute; opacity: 0; pointer-events: none; }
.sa-mode--card:hover { border-color: #C9D6DE; }
.sa-mode--card:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.25); }
.sa-mode--card:has(input:checked) { box-shadow: 0 8px 20px -14px rgba(233, 30, 140, 0.55); }
.sa-mode__icon {
    display: inline-flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px;
    border-radius: 12px; background: var(--sa-cyan-soft); color: var(--sa-cyan-ink);
    transition: background-color var(--sa-fast) var(--sa-ease), color var(--sa-fast) var(--sa-ease);
}
.sa-mode__icon svg, .sa-mode__icon i { width: 19px; height: 19px; }
.sa-mode--card:has(input:checked) .sa-mode__icon { background: var(--sa-pink); color: #fff; }
.sa-mode__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sa-mode__label { color: var(--sa-ink); font-weight: 700; font-size: 0.92rem; }
.sa-mode__note { color: var(--sa-subtle); font-weight: 500; font-size: 0.78rem; line-height: 1.4; }
.sa-mode__unavailable { display: none; position: absolute; top: 10px; right: 10px; padding: 2px 8px; border-radius: 999px; background: #F1F2F5; color: var(--sa-subtle); font-size: 0.68rem; font-weight: 700; }
.sa-mode--card:has(input:disabled) .sa-mode__unavailable { display: inline-block; }

/* Student / parent switch */
.sa-segment { display: inline-flex; padding: 4px; border-radius: 14px; background: #F1F4F7; gap: 4px; }
.sa-segment__opt { position: relative; cursor: pointer; }
.sa-segment__opt input { position: absolute; opacity: 0; pointer-events: none; }
.sa-segment__opt span {
    display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 10px;
    color: var(--sa-subtle); font-size: 0.88rem; font-weight: 600;
    transition: background-color var(--sa-fast) var(--sa-ease), color var(--sa-fast) var(--sa-ease), box-shadow var(--sa-fast) var(--sa-ease);
}
.sa-segment__opt span svg, .sa-segment__opt span i { width: 16px; height: 16px; }
.sa-segment__opt input:checked + span { background: #fff; color: var(--sa-ink); box-shadow: 0 2px 8px -4px rgba(16, 32, 42, 0.35); }
.sa-segment__opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.25); }
.sa-req { color: var(--sa-pink); }
.sa-hint { display: block; margin-top: 4px; color: var(--sa-subtle); font-size: 0.76rem; }

/* Summary card */
.sa-booksum { border-color: #F3D3E4; }
.sa-booksum__rows { display: grid; gap: 4px; margin: 6px 0 14px; }
.sa-booksum__row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--sa-line); }
.sa-booksum__row:last-child { border-bottom: 0; }
.sa-booksum__row dt { display: inline-flex; color: var(--sa-subtle); }
.sa-booksum__row dt svg, .sa-booksum__row dt i { width: 17px; height: 17px; }
.sa-booksum__row dd { margin: 0; color: var(--sa-subtle); font-size: 0.9rem; }
.sa-booksum__row.is-set dt { color: var(--sa-pink); }
.sa-booksum__row.is-set dd { color: var(--sa-ink); font-weight: 700; }
.sa-booksum__row.is-changed dd { animation: sa-sum-in 420ms var(--sa-ease); }
@keyframes sa-sum-in { 0% { opacity: 0; transform: translateX(-4px); } 100% { opacity: 1; transform: none; } }
.sa-booksum__progress { height: 6px; border-radius: 999px; background: #F1F4F7; overflow: hidden; }
.sa-booksum__progress span {
    display: block; height: 100%; border-radius: inherit; background: var(--sa-pink);
    transform: scaleX(0); transform-origin: left center; transition: transform 520ms var(--sa-ease), background-color var(--sa-base) var(--sa-ease);
}
.sa-booksum.is-ready .sa-booksum__progress span { background: var(--sa-good); }
.sa-booksum [data-sum-status] { margin-top: 8px; }

.sa-bookwhat ul { display: grid; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.sa-bookwhat li { display: flex; gap: 10px; align-items: flex-start; color: var(--sa-ink); font-size: 0.88rem; line-height: 1.45; }
.sa-bookwhat li svg, .sa-bookwhat li i { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--sa-cyan-ink); }
.sa-bookalt__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sa-bookalt__hours { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.sa-bookalt__hours svg, .sa-bookalt__hours i { width: 15px; height: 15px; flex: none; }

/* Confirmation */
.sa-done__next { display: grid; gap: 8px; max-width: 34rem; margin: 14px auto 20px; padding: 0; list-style: none; counter-reset: next; text-align: left; }
.sa-done__next li { position: relative; padding: 10px 12px 10px 44px; border-radius: 12px; background: var(--sa-surface); color: var(--sa-ink); font-size: 0.9rem; line-height: 1.45; counter-increment: next; }
.sa-done__next li::before {
    content: counter(next); position: absolute; left: 12px; top: 10px; display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%; background: var(--sa-good-soft); color: var(--sa-good); font-size: 0.75rem; font-weight: 800;
}
.sa-done .sa-icon { animation: sa-pop 520ms var(--sa-ease) both; }
@keyframes sa-pop { 0% { transform: scale(0.6); opacity: 0; } 70% { transform: scale(1.06); opacity: 1; } 100% { transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .sa-stepbadge, .sa-stepbadge__ok, .sa-stepbadge__n, .sa-booksum__progress span { transition: none; }
    .sa-times-groups.is-entering .sa-times-group, .sa-booksum__row.is-changed dd, .sa-done .sa-icon { animation: none; }
}

.sa-book__form { display: grid; gap: 16px; }
@media (max-width: 1023px) { .sa-book__form { display: contents; } }
.sa-done { scroll-margin-top: calc(var(--shell-header-h, 72px) + 24px); }

/* Phones: steps, then the live summary, then the button; the "what you get"
   and contact cards follow the button so it is not pushed off screen. */
@media (max-width: 1023px) {
    .sa-book__aside { display: contents; }
    .sa-booksum { order: 2; }
    .sa-bookwhat, .sa-bookalt { order: 4; }
}
