/* Scoped to the homepage overview; booking and authentication styles are untouched. */
.af-overview,
.af-overview-jump {
  --af-primary: var(--primary, #1a4dff);
  --af-surface: var(--panel, #fff);
  --af-text: var(--dark, #0f172a);
  --af-text-muted: var(--muted, #64748b);
  --af-border: var(--line, #dbe5ff);
}
.hero-widget:has(.af-overview-jump) { flex-direction: column; gap: 16px; }
.af-overview-jump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: center;
  min-height: 44px;
  color: var(--af-primary);
  font-size: 14px;
  font-weight: 650;
  text-underline-offset: 4px;
}
.af-overview-jump:hover { text-decoration: underline; }
.af-overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 32px;
  align-items: start;
}
.af-overview { margin: 0; min-width: 0; scroll-margin-block-start: 100px; }
.af-overview-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--af-border);
  border-radius: 20px;
  background: var(--af-surface);
  box-shadow: 0 16px 40px rgb(26 77 255 / 10%);
}
.af-overview-player { display: block; width: 100%; height: 100%; object-fit: contain; direction: ltr; }
.af-overview-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 24px;
  border: 0;
  color: var(--af-primary);
  background: linear-gradient(180deg, transparent 30%, rgb(245 248 255 / 12%) 65%, rgb(245 248 255 / 92%));
  font: inherit;
  cursor: pointer;
}
.af-overview-play[hidden], .af-overview-error[hidden] { display: none; }
.af-overview-play-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: #fff;
  background: var(--af-primary);
  box-shadow: 0 8px 25px rgb(26 77 255 / 28%);
  transition: transform 160ms ease;
}
.af-overview-play:hover .af-overview-play-icon { transform: scale(1.06); }
.af-overview-play-label { padding: 6px 12px; border-radius: 8px; background: var(--af-surface); font-size: 14px; font-weight: 700; }
.af-overview-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 18px 12px; }
.af-overview-caption h3 { margin: 0 0 4px; font-size: 18px; line-height: 1.4; color: var(--af-text); }
.af-overview-caption p { margin: 0; font-size: 13px; color: var(--af-text-muted); }
.af-overview-cta { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--af-primary); text-underline-offset: 4px; }
.af-overview-cta:hover { text-decoration: underline; }
.af-overview-transcript { border-block-start: 1px solid var(--af-border); padding-block: 10px; color: var(--af-text-muted); font-size: 14px; }
.af-overview-transcript summary { cursor: pointer; min-height: 44px; padding-block: 12px; }
.af-overview-transcript p { line-height: 1.7; }
.af-overview-error { margin: 12px 0; font-size: 14px; color: var(--af-text); }
.af-overview-error a { color: var(--af-primary); text-decoration: underline; }
.af-overview-layout .steps-grid { grid-template-columns: 1fr; gap: 12px; }
.af-overview-layout .step-card { padding: 20px 24px; }
.af-overview-layout .step-num { float: inline-start; margin-inline-end: 14px; margin-block-end: 0; font-size: 24px; }
.af-overview-layout .step-card h3 { padding-block-start: 3px; margin-block-end: 6px; }
.af-overview-layout .step-card p { clear: both; }
.af-overview-layout .step-card-link { margin-top: 10px; }
.af-overview :focus-visible, .af-overview-jump:focus-visible { outline: 3px solid var(--af-primary); outline-offset: 4px; }
.af-overview-play:focus-visible { outline-offset: -5px; }
@media (max-width: 960px) {
  .af-overview-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .af-overview { max-width: 780px; width: 100%; margin-inline: auto; }
}
@media (max-width: 480px) {
  .af-overview-frame { border-radius: 14px; }
  .af-overview-play { padding: 12px; gap: 6px; }
  .af-overview-play-icon { width: 48px; height: 48px; }
  .af-overview-play-label { font-size: 12px; }
  .af-overview-caption { padding-block-start: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .af-overview-play-icon { transition: none; }
  .af-overview-layout .step-card { transition: none; transform: none; }
}
