* { box-sizing: border-box; }
:root { color-scheme: light; font-family: Roboto, Arial, sans-serif; color: #023047; background: #f6f9fb; }
body { margin: 0; line-height: 1.5; }
header { background: #023047; color: #75d1f2; }
.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.brand { padding-block: 18px; font-size: 23px; font-weight: 800; }
.brand span { color: #b9e1ef; font-weight: 400; }
main { padding-block: 24px 56px; }
.back { color: #086582; }
.topline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 32px; align-items: center; margin-block: 18px 22px; padding: clamp(16px, 3vw, 28px); border: 1px solid #c9dfe8; border-radius: 16px; background: #edf7fc; }
.course-context { border-inline-start: 1px solid #bad9e5; padding-inline-start: 24px; }
.eyebrow { color: #086582; font-weight: 700; margin-bottom: 6px; }
.course-date { margin: 8px 0 0; color: #465b65; }
.badge { display: inline-block; background: #e6f1cd; color: #395711; padding: 4px 11px; border-radius: 20px; font-weight: 700; font-size: .875rem; }
h1, h2 { line-height: 1.2; }
h1 { margin: 0 0 12px; font-size: clamp(1.85rem, 5vw, 2.7rem); }
h2 { margin: 0 0 12px; color: #086582; font-size: 1.4rem; }
p { margin: 0 0 14px; }
.muted { color: #465b65; font-size: .925rem; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .68fr); align-items: stretch; gap: 20px; }
.card { padding: clamp(16px, 3vw, 28px); background: white; border: 1px solid #c9dfe8; border-radius: 16px; }
.main-card { min-width: 0; }
.order { background: #023047; color: white; align-self: start; }
.order h2, .order .muted { color: #d4eaf2; }
.order :focus-visible { outline-color: #fdc574; }
.steps { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; align-items: center; gap: 7px; color: #465b65; }
.steps li[aria-current] { color: #086582; font-weight: 700; }
.steps span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #e4eff4; }
.steps [aria-current] span { background: #086582; color: white; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 16px; }
.section-head h2 { margin-bottom: 6px; }
.section-head p, .extras-heading p, .order #status { margin-bottom: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 10px; }
legend, .field { font-weight: 700; margin-bottom: 6px; }
.choice { display: flex; gap: 10px; align-items: center; min-height: 52px; border: 1px solid #c9dfe8; border-radius: 9px; padding: 12px; overflow-wrap: anywhere; cursor: pointer; }
.choice:has(:checked) { background: #edf7fc; border-color: #64a9c5; }
.choice input { width: 18px; height: 18px; flex: none; accent-color: #086582; }
.field { display: block; margin-top: 16px; }
.extras input, .extras select, dialog input { width: 100%; font: inherit; color: inherit; padding: 10px 12px; border: 1px solid #9eb9c7; border-radius: 8px; background: white; }
.extras { grid-column: 1 / -1; border-color: #d5e2c0; background: #f4f8eb; }
.extras h2 { color: #395711; margin-bottom: 6px; }
.extra-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.extras p, dialog input + p { margin: 6px 0; }
.extras input { margin-bottom: 4px; }
#attendance { margin: 0; }
#attendance strong, #attendance span { display: block; }
#review-extras dd { overflow-wrap: anywhere; }
dl { margin: 20px 0; }
dl div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 8px 0; }
dd { margin: 0; font-weight: 700; }
.total { border-top: 1px solid #467187; padding-top: 12px; font-weight: 700; align-items: baseline; }
.total dd { font-size: 1.75rem; line-height: 1.2; }
button { font: inherit; font-weight: 700; padding: 10px 14px; min-height: 44px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; color: #023047; }
.primary { background: #fd9e02; }
.order .primary { width: 100%; font-size: 1.1rem; margin-bottom: 10px; }
.mobile-total { display: none; }
.primary:disabled { background: #dce6eb; color: #465b65; cursor: default; }
.secondary { background: white; border-color: #81afc2; }
:focus-visible { outline: 3px solid #087696; outline-offset: 3px; }
#selected-list { list-style: none; padding: 0; overflow-wrap: anywhere; }
.order-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-block: 10px; padding: 14px; border: 1px solid #c9dfe8; border-radius: 9px; background: #f4faff; }
.order-line small { display: block; color: #465b65; }
dialog { width: min(430px, calc(100% - 32px)); border: 1px solid #c9dfe8; border-radius: 14px; color: inherit; padding: 24px; }
dialog::backdrop { background: #02304788; }
.actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
@media (max-width: 720px) {
  html { scroll-padding-bottom: 100px; }
  main { padding-top: 16px; padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .layout, .intro, .extra-fields { grid-template-columns: minmax(0, 1fr); }
  .intro, .layout { gap: 14px; }
  .course-context { border-inline-start: 0; border-top: 1px solid #bad9e5; padding: 12px 0 0; }
  .extra-fields { gap: 0; }
  #choices { grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
  .order-action:not([hidden]) { position: fixed; inset: auto 0 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #023047; border-top: 1px solid #467187; }
  .order-action .primary { width: auto; max-width: 70%; min-height: 48px; margin: 0; font-size: 1rem; }
  .mobile-total { display: grid; flex-shrink: 0; line-height: 1.3; }
  .mobile-total span { color: #d4eaf2; font-size: .82rem; }
  .mobile-total strong { font-size: 1.12rem; }
}

/* EQF3 course and enrollment */
[hidden] { display: none !important; }
.brand img { display: block; width: 170px; max-width: 100%; height: auto; }
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .62fr); align-items: start; gap: 20px; margin-top: 18px; }
.course-hero { background: #edf7fc; }
.hero-lead { font-size: 1.12rem; max-width: 66ch; }
.course-meta { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 20px 0 0; padding-top: 14px; border-top: 1px solid #bad9e5; }
.course-meta div { display: block; margin: 0; }
.course-meta dt { color: #086582; }
.course-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 16px; }
.course-nav a { background: white; color: #075974; border: 1px solid #c9dfe8; border-radius: 8px; padding: 7px 11px; }
.course-section { margin-top: 16px; border-top: 4px solid #8ecae6; }
.course-section p:last-child { margin-bottom: 0; }
.exam-info { background: #fff7e7; border-top-color: #fd9e02; }
.materials { background: #f4f8eb; border-top-color: #99cc33; }
.schedule { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr)); gap: 10px; padding: 0; margin: 0; list-style: none; }
.schedule li { display: grid; gap: 4px; background: #edf7fc; padding: 10px; border-radius: 8px; }
.course-order, .eqf-order { position: sticky; top: 16px; }
.cta { display: block; padding: 13px 16px; border-radius: 9px; color: #023047; text-align: center; text-decoration: none; font-weight: 700; margin-bottom: 10px; }
.course-order p:last-child { margin: 0; }
#choices.participant-list { display: grid; grid-template-columns: minmax(0, 1fr); }
.participant { border: 1px solid #c9dfe8; border-radius: 10px; overflow: hidden; }
.participant .choice { border: 0; border-radius: 0; font-weight: 700; }
.route-fields { padding: 12px; }
.route-grid, .input-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.route { display: flex; align-items: center; gap: 8px; padding: 9px; border: 1px solid #c9dfe8; border-radius: 8px; cursor: pointer; }
.route small { display: block; color: #465b65; }
.route input { flex-shrink: 0; accent-color: #086582; }
.route:has(:checked) { border-color: #64a9c5; background: #edf7fc; }
.exam-person { margin-bottom: 16px; padding: 12px; border: 1px solid #c9dfe8; border-radius: 10px; }
.exam-person legend { padding-inline: 5px; color: #086582; }
.exam-person input, .exam-person select { display: block; width: 100%; margin-top: 6px; border: 1px solid #9eb9c7; border-radius: 8px; padding: 9px; font: inherit; color: inherit; background: white; }
.exam-person .field { margin-top: 0; }
.exam-person .muted { margin: 8px 0 0; }
.kit-note { background: #edf7fc; border-radius: 8px; padding: 9px; }
#new-participant { width: min(550px, calc(100% - 32px)); }
#review button { margin: 4px 4px 0 0; }
@media (max-width: 720px) {
  .course-layout { grid-template-columns: minmax(0, 1fr); }
  .course-order, .eqf-order { position: static; }
  .course-page { padding-bottom: 32px; }
}
@media (max-width: 430px) {
  .route-grid, .input-grid { grid-template-columns: minmax(0, 1fr); }
  .input-grid .field { margin-top: 8px; }
}

@media (min-width: 721px) {
  .course-order { grid-column: 2; grid-row: 1 / 3; }
  .course-details { grid-column: 1; }
}
