/* ── Course finder — embedded stepper on /en/courses/ ──────────────────────────
   Reuses the page's --cr-* design tokens (defined in our-courses.html). Falls
   back to literal values so the file is safe if loaded out of context. */

.cf-section {
  background: #F7F8F9;
  padding: 34px 0 26px;
}
.cf-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.cf-card {
  background: #fff;
  border: 1px solid #DDE2E4;
  border-radius: 16px;
  padding: 28px 32px 32px;
  position: relative;
}

/* ── Integrated header band: title + UX chips (left), course-map (right) ────── */
.cf-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 466px;
  gap: 30px;
  align-items: center;
}
.cf-band-main { min-width: 0; }
.cf-map {
  background: linear-gradient(180deg, #f4f8fb 0%, #ffffff 72%);
  border: 1px solid #e7ecef; border-radius: 16px; padding: 12px 16px;
}
.cf-map svg { display: block; width: 100%; height: auto; }
/* Force the SVG text sizes (a global rule pins svg text to 14px, overriding the
   font-size attributes — CSS classes win it back). */
.cf-map text { font-family: 'Inter', sans-serif !important; font-weight: 600; }
.cf-map .cf-pill { fill: #eef2f8; stroke: #cfdaea; stroke-width: 1; transition: fill .2s ease, stroke .2s ease; }
.cf-map text { transition: fill .2s ease; }
.cf-map g:hover > .cf-pill { fill: #d7e7f7; stroke: var(--cr-blue, #1b5182); }
.cf-map g:hover > text { fill: var(--cr-blue, #1b5182); }
/* Framework pills are links — click straight into the matching course. */
.cf-map .cf-pill-link { cursor: pointer; }
.cf-map .cf-pill-link > g > .cf-pill { transition: fill .2s ease, stroke .2s ease, stroke-width .2s ease; }
.cf-map .cf-pill-link:hover > g > .cf-pill,
.cf-map .cf-pill-link:focus-visible > g > .cf-pill { fill: #cfe6fb; stroke: var(--cr-blue, #1b5182); stroke-width: 1.6; }
.cf-map .cf-pill-link:hover > g > text,
.cf-map .cf-pill-link:focus-visible > g > text { fill: var(--cr-blue, #1b5182); }
.cf-map .cf-pill-link:focus { outline: none; }
.cf-map .cf-pill-link:focus-visible > g > .cf-pill { stroke-width: 2.2; }
.cf-map .cf-mp { font-size: 11px !important; fill: #1b3a5c; }
.cf-map .cf-mp-sm { font-size: 10px !important; fill: #1b3a5c; }
.cf-map .cf-mr { font-size: 13px !important; font-family: 'Lora', Georgia, serif !important; }
/* "Finding your course" sequence — one synchronized 5s loop:
   1) input node blinks (cyan) → 2) bend node blinks (teal, ~1s later) →
   3) the recommended card flashes gold ("bingo — found it"). */
.cf-map-glow, .cf-glow2 { transform-box: fill-box; transform-origin: center; }
.cf-map-glow { animation: cfSeqNode1 5s ease-in-out infinite; }
.cf-glow2 { animation: cfSeqNode2 5s ease-in-out infinite; }
.cf-rec-card { animation: cfSeqBingo 5s ease-in-out infinite; }
@keyframes cfSeqNode1 {
  0% { opacity: .35; transform: scale(.82); }
  6% { opacity: 1; transform: scale(1.18); }
  18%, 100% { opacity: .35; transform: scale(.82); }
}
@keyframes cfSeqNode2 {
  0%, 18% { opacity: 0; transform: scale(.5); }
  26% { opacity: 1; transform: scale(1.2); }
  38%, 100% { opacity: 0; transform: scale(.5); }
}
@keyframes cfSeqBingo {
  0%, 42% { fill: #fff; stroke: #e2e8ec; }
  52%, 64% { fill: #fff4d8; stroke: #e79a4b; }
  76%, 100% { fill: #fff; stroke: #e2e8ec; }
}
.cf-map-flow { stroke-dasharray: 2 6; animation: cfMapFlow 1.1s linear infinite; }
@keyframes cfMapFlow { to { stroke-dashoffset: -16; } }

/* UX trust chips — row under the sub */
.cf-trust { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cf-trust-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: #3a4a58;
  background: #fff; border: 1px solid #e2e8ec; border-radius: 12px; padding: 9px 14px;
}
.cf-trust-chip svg { width: 16px; height: 16px; color: var(--cr-blue, #1b5182); flex-shrink: 0; }

/* Reset control (rendered into the dynamic body) */
.cf-resetbar { display: flex; justify-content: flex-end; margin: 0 0 -2px; }

/* The card rides up onto the hero band above it */
.cf-section { padding-top: 0; position: relative; z-index: 3; }
.cf-card { margin-top: -56px; }

@media (max-width: 920px) {
  .cf-band { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cf-map { display: none; }
  .cf-card { margin-top: -40px; }
}
@media (prefers-reduced-motion: reduce) {
  .cf-map-glow, .cf-map-flow, .cf-glow2, .cf-rec-card { animation: none; }
}

/* Header */
.cf-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.cf-head > div { flex: 1 1 auto; min-width: 0; }
.cf-reset {
  margin-left: auto; align-self: flex-start; flex-shrink: 0;
  background: none; border: none; cursor: pointer; font: inherit;
  font-size: 13px; font-weight: 600; color: #5A656D;
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 6px;
}
.cf-reset:hover { color: var(--cr-blue, #1b5182); }
.cf-reset svg { width: 14px; height: 14px; }
.cf-head-icon {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 144, 167, .1);
  color: var(--cr-cyan, #0090a7);
  flex-shrink: 0;
}
.cf-head-icon svg { width: 20px; height: 20px; }
.cf-title {
  font-family: 'Lora', serif;
  font-size: 22px; font-weight: 600;
  color: var(--cr-navy, #091f45);
  margin: 0; line-height: 1.2;
}
.cf-sub {
  font-size: 14px; color: #5A656D; line-height: 1.6;
  margin: 4px 0 0;
}

/* Progress */
.cf-progress {
  display: flex; align-items: center; gap: 8px;
  margin: 20px 0 18px;
}
.cf-progress-step {
  height: 4px; flex: 1; border-radius: 999px;
  background: #E3E8EB;
  transition: background .25s ease;
}
.cf-progress-step.is-done { background: var(--cr-cyan, #0090a7); }
.cf-progress-step.is-active { background: var(--cr-blue, #1b5182); }
.cf-progress-label {
  font-size: 11px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: #84919A; white-space: nowrap;
}

/* Question */
.cf-question {
  font-family: 'Lora', serif;
  font-size: 19px; font-weight: 600; color: var(--cr-navy, #091f45);
  margin: 0 0 16px; line-height: 1.3;
}
.cf-options { display: flex; flex-direction: column; gap: 10px; }
.cf-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cf-opt {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  background: #fff; border: 1px solid #DDE2E4; border-radius: 12px;
  padding: 14px 16px; cursor: pointer; font: inherit;
  color: var(--cr-navy, #091f45); font-size: 15px; font-weight: 500;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.cf-opt:hover { border-color: var(--cr-cyan, #0090a7); background: rgba(0,144,167,.04); transform: translateY(-1px); }
.cf-opt:focus-visible { outline: 2px solid var(--cr-blue, #1b5182); outline-offset: 2px; }
.cf-opt-arrow { margin-left: auto; color: #b6c2c9; flex-shrink: 0; }
.cf-opt:hover .cf-opt-arrow { color: var(--cr-cyan, #0090a7); }

/* Multi-select (framework step) */
.cf-hint { font-size: 13px; color: #84919A; margin: -8px 0 14px; }
.cf-opt--multi.is-selected { border-color: var(--cr-cyan, #0090a7); background: rgba(0,144,167,.06); }
.cf-check {
  width: 20px; height: 20px; flex-shrink: 0;
  border: 1.5px solid #c2ccd2; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  color: transparent; transition: background .15s ease, border-color .15s ease;
}
.cf-check svg { width: 13px; height: 13px; }
.cf-opt--multi.is-selected .cf-check {
  background: var(--cr-cyan, #0090a7); border-color: var(--cr-cyan, #0090a7); color: #fff;
}
.cf-continue { margin-top: 16px; }
.cf-multi-note { border-left-color: #e7b96b; color: #6b5a36; }

/* Nav row */
.cf-nav { margin-top: 18px; display: flex; align-items: center; gap: 16px; }
.cf-nav-actions {
  margin-left: auto;
  display: flex; align-items: center; justify-content: flex-end;
  gap: 12px; flex-wrap: wrap;
}
.cf-back {
  background: none; border: none; cursor: pointer; font: inherit;
  font-size: 13.5px; font-weight: 600; color: #5A656D;
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 0;
}
.cf-back:hover { color: var(--cr-blue, #1b5182); }
.cf-ai-link {
  background: #fff; border: 1px solid #c9d8e6; border-radius: 8px;
  cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 700;
  color: var(--cr-blue, #1b5182); padding: 8px 12px;
  max-width: 100%; box-sizing: border-box; line-height: 1.25;
  display: inline-flex; align-items: center; gap: 7px;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.cf-ai-link:hover {
  border-color: var(--cr-cyan, #0090a7);
  background: rgba(0,144,167,.06);
  color: var(--cr-cyan, #0090a7);
  transform: translateY(-1px);
}
.cf-ai-link:focus-visible {
  outline: 2px solid var(--cr-blue, #1b5182);
  outline-offset: 2px;
}
.cf-ai-link-icon,
.cf-ai-link svg { width: 15px; height: 15px; flex-shrink: 0; }
.cf-tellmore-link {
  margin-left: 0;
  background: none; border: none; cursor: pointer; font: inherit;
  font-size: 13.5px; color: var(--cr-blue, #1b5182); text-decoration: underline;
  text-underline-offset: 3px;
}
.cf-tellmore-link:hover { color: var(--cr-cyan, #0090a7); }

/* Answer chips (selection summary) */
.cf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.cf-chip {
  font-size: 12px; padding: 4px 10px; border-radius: 8px;
  background: rgba(13,48,104,.07); color: #0D3068;
}

/* Result */
.cf-seal { width: 58px; height: 58px; margin: 2px 0 12px; }
.cf-seal svg { display: block; width: 100%; height: 100%; }
.cf-result-tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 8px;
  background: rgba(13,48,104,.08); color: #0D3068;
  margin-bottom: 12px;
}
.cf-rec {
  border: 2px solid var(--cr-blue, #1b5182);
  border-radius: 14px; padding: 20px 22px;
  background: linear-gradient(180deg, rgba(27,81,130,.04) 0%, #fff 60%);
}
.cf-rec-top {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.cf-rec-name {
  font-family: 'Lora', serif; font-size: 21px; font-weight: 600;
  color: var(--cr-navy, #091f45); margin: 0; line-height: 1.25;
}
.cf-rec-price { font-size: 14px; color: #5A656D; white-space: nowrap; }

.cf-why {
  margin-top: 14px; background: #E1F5EE; border-radius: 10px;
  padding: 14px 16px;
}
.cf-why-head {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: #0F6E56; margin-bottom: 8px;
}
.cf-why-head svg { width: 16px; height: 16px; }
.cf-why-lead { font-size: 14px; color: #04342C; margin: 0 0 8px; line-height: 1.55; }
.cf-why ul { margin: 0; padding-left: 18px; }
.cf-why li { font-size: 14px; line-height: 1.6; color: #04342C; margin-bottom: 4px; }
.cf-why li:last-child { margin-bottom: 0; }

.cf-rec-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.cf-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px; border-radius: 8px; cursor: pointer; font: inherit;
  font-size: 14px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; transition: opacity .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
.cf-btn svg { width: 16px; height: 16px; }
.cf-btn-primary { background: var(--cr-blue, #1b5182); color: #fff; }
.cf-btn-primary:hover { opacity: .92; color: #fff; transform: translateY(-1px); }
.cf-btn-ghost { background: #fff; color: #0D3068; border-color: #DDE2E4; }
.cf-btn-ghost:hover { border-color: var(--cr-cyan, #0090a7); background: rgba(0,144,167,.05); }
.cf-btn-gift { background: rgba(0,144,167,.10); color: #0D3068; border-color: rgba(0,144,167,.38); }
.cf-btn-gift:hover { background: rgba(0,144,167,.16); border-color: var(--cr-cyan, #0090a7); }
.cf-btn-gift svg { color: var(--cr-cyan, #0090a7); }

/* Alternatives */
.cf-alts { margin-top: 20px; }
.cf-alts-head {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: #5A656D; margin-bottom: 10px;
}
.cf-alts-head svg { width: 16px; height: 16px; }
.cf-alts-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px;
}
.cf-alt {
  background: #fff; border: 1px solid #DDE2E4; border-radius: 12px;
  padding: 14px 16px; display: flex; flex-direction: column;
}
.cf-alt-name { font-size: 14.5px; font-weight: 600; color: var(--cr-navy, #091f45); margin: 0 0 4px; }
.cf-alt-when { font-size: 13px; color: #5A656D; line-height: 1.5; margin: 0 0 10px; }
.cf-alt-link {
  margin-top: auto; font-size: 13px; font-weight: 600;
  color: var(--cr-blue, #1b5182); text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px;
}
.cf-alt-link:hover { color: var(--cr-cyan, #0090a7); }
.cf-alt-link svg { width: 13px; height: 13px; }

/* Fallback / depth row */
.cf-foot {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid #EEF0F2;
}
.cf-foot-text { font-size: 14px; color: #5A656D; margin: 0 0 10px; }
.cf-foot-ctas { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cf-depth-link {
  background: none; border: none; cursor: pointer; font: inherit;
  font-size: 13.5px; color: var(--cr-blue, #1b5182);
  text-decoration: underline; text-underline-offset: 3px; margin-left: 2px;
}
.cf-depth-link:hover { color: var(--cr-cyan, #0090a7); }

/* Enquiry form */
.cf-form { display: flex; flex-direction: column; gap: 12px; }
.cf-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cf-field label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--cr-navy, #091f45); margin-bottom: 5px;
}
.cf-field input, .cf-field textarea {
  width: 100%; box-sizing: border-box;
  border: 1px solid #DDE2E4; border-radius: 10px; padding: 10px 12px;
  font: inherit; font-size: 14.5px; color: var(--cr-navy, #091f45);
  background: #fff; resize: vertical;
}
.cf-field input:focus, .cf-field textarea:focus {
  outline: none; border-color: var(--cr-blue, #1b5182);
  box-shadow: 0 0 0 3px rgba(27,81,130,.12);
}
.cf-consent {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 12.5px; color: #5A656D; line-height: 1.5;
}
.cf-consent input { margin-top: 2px; flex-shrink: 0; }
.cf-consent a { color: var(--cr-blue, #1b5182); }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-error {
  font-size: 13px; color: #b3261e; margin: 0;
}

/* Success ack */
.cf-ack { text-align: center; padding: 18px 8px; }
.cf-ack-icon {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: #E1F5EE; color: #0F6E56;
}
.cf-ack-icon svg { width: 26px; height: 26px; }
.cf-ack h3 {
  font-family: 'Lora', serif; font-size: 20px; font-weight: 600;
  color: var(--cr-navy, #091f45); margin: 0 0 8px;
}
.cf-ack p { font-size: 14.5px; color: #5A656D; line-height: 1.6; margin: 0 auto; max-width: 440px; }
.cf-ack-again { margin: 16px auto 0; }

/* Recommended route pill + rationale */
.cf-route-pill {
  margin-top: 10px; padding: 10px 14px;
  background: rgba(13,48,104,.05); border-radius: 10px;
  font-size: 15px; color: var(--cr-navy, #091f45);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px;
}
.cf-route-pill-label { font-size: 13px; color: #5A656D; }
.cf-route-pill strong { color: var(--cr-blue, #1b5182); font-weight: 600; }
.cf-route-pill-price { font-weight: 600; color: var(--cr-navy, #091f45); }
.cf-route-pill-note { flex-basis: 100%; font-size: 12.5px; color: #84919A; margin-top: 2px; }
.cf-route-why {
  margin: 12px 0 0; font-size: 13.5px; line-height: 1.55; color: #5A656D;
  padding-left: 12px; border-left: 3px solid #c9e2e9;
}

/* Route ladder */
.cf-routes { display: flex; flex-direction: column; gap: 8px; }
.cf-route-row {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid #DDE2E4; border-radius: 12px;
  padding: 11px 14px;
}
.cf-route-meta { flex: 1; min-width: 0; }
.cf-route-name { margin: 0 0 2px; font-size: 14px; color: var(--cr-navy, #091f45); }
.cf-route-name strong { font-weight: 600; }
.cf-route-price { color: #5A656D; font-weight: 500; }
.cf-route-when { margin: 0; font-size: 12.5px; color: #84919A; line-height: 1.45; }
.cf-route-link {
  flex-shrink: 0; font-size: 13px; font-weight: 600;
  color: var(--cr-blue, #1b5182); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.cf-route-link:hover { color: var(--cr-cyan, #0090a7); }
.cf-route-link svg { width: 13px; height: 13px; }

@media (max-width: 600px) {
  .cf-card { padding: 22px 18px 24px; }
  .cf-grid-2 { grid-template-columns: 1fr; }
  .cf-form-row { grid-template-columns: 1fr; }
  .cf-rec-ctas .cf-btn { flex: 1 1 auto; justify-content: center; }
  .cf-nav { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .cf-nav-actions { width: 100%; margin-left: 0; justify-content: flex-start; }
  .cf-ai-link { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cf-opt, .cf-btn, .cf-ai-link, .cf-progress-step { transition: none; }
  .cf-ai-link:hover { transform: none; }
}

/* ── Premium layer ─────────────────────────────────────────────────────────── */
@keyframes cfCardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes cfRise   { from { opacity: 0; transform: translateY(9px); }  to { opacity: 1; transform: none; } }
@keyframes cfPop    { 0% { opacity: 0; transform: scale(.965); } 60% { opacity: 1; } 100% { transform: none; } }
@keyframes cfFloat  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes cfShift  { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes cfSheen  { 0% { left: -130%; } 60%,100% { left: 130%; } }

/* Card — depth, entrance, brand top-accent */
.cf-card {
  border-color: #e4e9ec;
  overflow: hidden;
  box-shadow: 0 1px 0 #fff inset, 0 14px 38px rgba(9,31,69,.10), 0 2px 8px rgba(9,31,69,.04);
  animation: cfCardIn .5s cubic-bezier(.22,1,.36,1) both;
}
.cf-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, var(--cr-blue,#1b5182), var(--cr-teal,#2d6c74), var(--cr-cyan,#0090a7), var(--cr-teal,#2d6c74));
  background-size: 250% 100%; animation: cfShift 10s ease infinite;
}

/* Header medallion — gradient + gentle breathing */
.cf-head-icon {
  background: linear-gradient(135deg, var(--cr-blue,#1b5182), var(--cr-teal,#2d6c74));
  color: #fff;
  box-shadow: 0 6px 16px rgba(13,48,104,.28);
}
/* The compass quietly "searches" — a slow continuous rotation of the dial.
   CSS, not Lottie: one transform, GPU-smooth, no runtime, trivially tunable. */
.cf-head-icon svg { color: #fff; transform-origin: center; animation: cfCompass 30s linear infinite; }
@keyframes cfCompass { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cf-head-icon svg { animation: none; } }

/* Progress — gradient fill + glow on the live segment */
.cf-progress-step.is-done {
  background: linear-gradient(90deg, var(--cr-teal,#2d6c74), var(--cr-cyan,#0090a7));
}
.cf-progress-step.is-active {
  background: linear-gradient(90deg, var(--cr-blue,#1b5182), var(--cr-cyan,#0090a7));
  box-shadow: 0 0 0 1px rgba(0,144,167,.16), 0 2px 8px rgba(0,144,167,.30);
}

/* Options — staggered rise + premium hover (lift, sheen, arrow slide) */
.cf-opt {
  position: relative; overflow: hidden;
  transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.cf-options .cf-opt, .cf-grid-2 .cf-opt { animation: cfRise .46s cubic-bezier(.22,1,.36,1) both; }
.cf-options .cf-opt:nth-child(1), .cf-grid-2 .cf-opt:nth-child(1) { animation-delay: .03s; }
.cf-options .cf-opt:nth-child(2), .cf-grid-2 .cf-opt:nth-child(2) { animation-delay: .07s; }
.cf-options .cf-opt:nth-child(3) { animation-delay: .11s; }
.cf-options .cf-opt:nth-child(4) { animation-delay: .15s; }
.cf-options .cf-opt:nth-child(5) { animation-delay: .19s; }
.cf-options .cf-opt:nth-child(6) { animation-delay: .23s; }
.cf-options .cf-opt:nth-child(7) { animation-delay: .27s; }
.cf-options .cf-opt:nth-child(8) { animation-delay: .31s; }
.cf-options .cf-opt:nth-child(9) { animation-delay: .35s; }
.cf-opt::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -130%; width: 60%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(13,48,104,.08), transparent);
  transform: skewX(-18deg);
}
.cf-opt:hover {
  border-color: var(--cr-blue,#1b5182);
  box-shadow: 0 10px 24px rgba(13,48,104,.12);
  transform: translateY(-2px);
}
.cf-opt:hover::after { animation: cfSheen 1.1s ease; }
.cf-opt-arrow { transition: transform .2s ease, color .18s ease; }
.cf-opt:hover .cf-opt-arrow { transform: translateX(4px); }
.cf-opt--multi.is-selected .cf-check { box-shadow: 0 2px 8px rgba(0,144,167,.35); }

/* Primary button — animated brand gradient + shadow (matches .btn-cr-primary) */
.cf-btn-primary {
  background-image: linear-gradient(135deg, var(--cr-blue,#1b5182) 0%, var(--cr-teal,#2d6c74) 50%, var(--cr-blue,#1b5182) 100%);
  background-size: 220% 220%;
  animation: cfShift 8s ease infinite;
  border-color: rgba(255,255,255,.15);
  box-shadow: 0 10px 24px rgba(13,48,104,.22);
}
.cf-btn-primary:hover { transform: translateY(-2px); opacity: 1; box-shadow: 0 14px 30px rgba(13,48,104,.28); }

/* Best-fit badge — brand gradient pill */
.cf-result-tag {
  background: linear-gradient(135deg, var(--cr-blue,#1b5182), var(--cr-teal,#2d6c74));
  color: #fff; box-shadow: 0 4px 12px rgba(13,48,104,.20);
}

/* Recommendation — premium reveal + glow */
.cf-rec {
  box-shadow: 0 18px 44px rgba(13,48,104,.13);
  animation: cfPop .5s cubic-bezier(.22,1,.36,1) both;
}

/* Route pill — premium price tag */
.cf-route-pill {
  background: #fff; border: 1px solid #DDE2E4;
  box-shadow: 0 6px 18px rgba(9,31,69,.06);
  position: relative; padding-left: 16px;
}
.cf-route-pill::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--cr-cyan,#0090a7), var(--cr-teal,#2d6c74));
}

/* Alt cards + route rows — hover lift + sheen */
.cf-alt, .cf-route-row {
  position: relative; overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.cf-alt::after, .cf-route-row::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -130%; width: 55%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(13,48,104,.06), transparent);
  transform: skewX(-18deg);
}
.cf-alt:hover, .cf-route-row:hover {
  border-color: #c9e2e9; box-shadow: 0 12px 28px rgba(13,48,104,.10); transform: translateY(-2px);
}
.cf-alt:hover::after, .cf-route-row:hover::after { animation: cfSheen 1.1s ease; }

@media (prefers-reduced-motion: reduce) {
  .cf-card, .cf-rec, .cf-head-icon, .cf-card::before, .cf-btn-primary,
  .cf-options .cf-opt, .cf-grid-2 .cf-opt { animation: none !important; }
  .cf-opt:hover, .cf-alt:hover, .cf-route-row:hover { transform: none; }
  .cf-opt::after, .cf-alt::after, .cf-route-row::after { display: none; }
}
