.registration-page { background: var(--paper); color: var(--ink); min-height: 100vh; }
.registration-header { align-items: stretch; background: var(--ink); color: #fff; display: grid; grid-template-columns: 15rem 1fr auto; height: 5.8rem; padding-left: 2rem; }
.registration-header .brand { align-self: center; }
.registration-header .brand-logo { width: 11.5rem; }
.registration-header-meta { align-items: center; border-left: 1px solid var(--line-light); display: flex; flex-direction: column; font-size: .6rem; gap: .4rem; justify-content: center; letter-spacing: .14em; text-align: center; }
.registration-header-meta span { color: var(--lime); font-weight: 900; }
.registration-tools { display: grid; grid-template-columns: 4.5rem 9rem; }
.payment-page .registration-tools { grid-template-columns: 4.5rem 9rem; }
.registration-language { appearance: none; background: #020b0e; border: 0; border-left: 1px solid var(--line-light); color: #fff; cursor: pointer; font-size: .65rem; font-weight: 900; padding: 0 1rem; }
.registration-tools a { align-items: center; background: var(--aqua); color: var(--ink); display: flex; font-size: .63rem; font-weight: 900; justify-content: center; letter-spacing: .1em; }
.registration-shell { display: grid; grid-template-columns: 16rem minmax(0, 1fr); min-height: calc(100vh - 5.8rem); }
.registration-rail { background: var(--ink-2); color: #fff; display: flex; flex-direction: column; padding: 2.5rem 2rem; }
.registration-rail > a { color: #a9b7b8; font-size: .58rem; font-weight: 900; letter-spacing: .12em; }
.registration-rail > p { color: var(--aqua); font-size: .58rem; font-weight: 900; letter-spacing: .18em; margin: 4rem 0 1.8rem; }
.registration-rail ol { list-style: none; margin: 0; padding: 0; }
.registration-rail li { align-items: center; border-top: 1px solid var(--line-light); color: #9caaac; display: flex; font-size: .62rem; gap: 1rem; letter-spacing: .12em; padding: 1.2rem 0; }
.registration-rail li:last-child { border-bottom: 1px solid var(--line-light); }
.registration-rail li span { font-family: var(--display); font-size: 1rem; }
.registration-rail li.active, .registration-rail li.complete { color: #fff; }
.registration-rail li.active span { color: var(--lime); }
.registration-rail li.complete span { color: var(--aqua); }
.rail-note { margin-top: auto; }
.rail-note > span { color: var(--lime); font: 900 2rem var(--display); }
.rail-note p { color: #9babad; font-size: .62rem; font-weight: 800; letter-spacing: .12em; line-height: 1.8; margin: .8rem 0 0; }
.registration-content { min-width: 0; padding: clamp(3rem, 6vw, 6rem); }
.registration-step { margin: 0 auto; max-width: 82rem; }
.registration-step[hidden] { display: none; }
.step-heading { display: grid; gap: 2rem; grid-template-columns: minmax(22rem, 1.5fr) minmax(16rem, .7fr); margin-bottom: 4rem; }
.step-heading > span { color: #087d82; font-size: .62rem; font-weight: 900; grid-column: 1 / -1; letter-spacing: .18em; }
.step-heading h1 { font-size: clamp(3.8rem, 7vw, 7.5rem); letter-spacing: -.045em; line-height: .88; margin: 0; }
.step-heading > p { align-self: end; color: var(--muted); font-size: .95rem; line-height: 1.7; }
.step-heading.compact { grid-template-columns: 1fr; }
.category-catalog { display: grid; gap: .3rem; grid-template-columns: repeat(5, minmax(9rem, 1fr)); }
.catalog-status { background: var(--paper); color: #46585c; font-size: .85rem; font-weight: 700; grid-column: 1 / -1; letter-spacing: .08em; padding: 2rem; }
.catalog-card { background-color: #fff; background-image: linear-gradient(var(--lime), var(--lime)); background-position: bottom; background-repeat: no-repeat; background-size: 100% 0; border: 0; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; min-height: 26rem; padding: 1.4rem; position: relative; text-align: left; transition: background-size .35s ease; }
/* Same as the homepage cards: the box stays put and lime fills it from the bottom. */
.catalog-card:hover, .catalog-card:focus-visible { background-size: 100% 100%; }
.catalog-card:nth-child(3) { background-color: var(--aqua); }
.catalog-card:nth-child(3) p { color: #1f3d42; }
.catalog-card > span { color: #087d82; font-size: .58rem; font-weight: 900; letter-spacing: .14em; }
.catalog-card h2 { font-size: clamp(1.8rem, 3vw, 3rem); line-height: .9; margin: 3rem 0 1.2rem; min-height: 4.8rem; }
.catalog-card p { color: #5b696d; font-size: .72rem; line-height: 1.55; }
.catalog-card footer { border-top: 1px solid var(--line-dark); margin-top: auto; padding-top: 1rem; }
.catalog-card footer small { display: block; font-size: .52rem; letter-spacing: .12em; margin-bottom: .35rem; }
.catalog-card footer strong { font: 900 1rem var(--display); }
.catalog-card footer b { float: right; font-size: 1.2rem; }
.briefing-layout { display: grid; gap: .3rem; grid-template-columns: minmax(16rem, .65fr) 1.35fr; }
.selected-category { background: var(--lime); display: flex; flex-direction: column; min-height: 34rem; padding: 2rem; }
.selected-category span { font-size: .6rem; font-weight: 900; letter-spacing: .15em; }
.selected-category h2 { font-size: clamp(3rem, 6vw, 6rem); line-height: .88; margin: 4rem 0 1.5rem; }
.selected-category p { line-height: 1.6; }
.selected-category strong { border-top: 1px solid var(--line-dark); font: 900 1.2rem var(--display); margin-top: auto; padding-top: 1rem; }
.briefing-copy { background: #fff; padding: clamp(2rem, 5vw, 4.5rem); }
.briefing-lead { font-size: 1.15rem; line-height: 1.7; }
.course-strip { display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); margin: 2.5rem 0; }
.course-strip div { background: var(--ink); color: #fff; padding: 1rem; }
.course-strip small { color: var(--aqua); display: block; font-size: .5rem; letter-spacing: .12em; }
.course-strip strong { display: block; font: 900 1.35rem var(--display); margin-top: .45rem; }
.briefing-copy h2 { font-size: 1.35rem; letter-spacing: -.02em; margin-top: 3rem; }
.briefing-copy ul { display: grid; font-size: .82rem; gap: .8rem; line-height: 1.5; list-style: none; padding: 0; }
.briefing-copy li .ui-icon { color: #008d91; height: 1rem; margin-right: .7rem; width: 1rem; }
.briefing-copy aside { border-left: .25rem solid var(--lime); margin-top: 2.5rem; padding-left: 1rem; }
.briefing-copy aside b { font-size: .7rem; letter-spacing: .12em; }
.briefing-copy aside p { color: var(--muted); font-size: .78rem; line-height: 1.55; margin: .5rem 0 0; }
.step-actions { align-items: center; display: flex; justify-content: space-between; margin-top: 2rem; }
.back-button { background: none; border: 0; border-bottom: 2px solid currentColor; color: var(--ink); cursor: pointer; font-size: .63rem; font-weight: 900; letter-spacing: .12em; padding: 1rem 0 .65rem; }
.flow-button { align-items: center; background: var(--lime); border: 0; color: var(--ink); cursor: pointer; display: inline-flex; font-size: .68rem; font-weight: 900; justify-content: space-between; letter-spacing: .1em; min-height: 3.8rem; padding: 0 1.2rem; text-transform: uppercase; width: min(100%, 19rem); }
.flow-button span { font-size: 1.2rem; }
.account-gate { background: var(--ink); color: #fff; padding: clamp(2.5rem, 6vw, 6rem); }
.account-gate > span { color: var(--aqua); font-size: .6rem; font-weight: 900; letter-spacing: .16em; }
.account-gate h2 { font-size: clamp(2.6rem, 5.5vw, 5.5rem); line-height: .92; margin: 2rem 0; }
.account-gate > p { color: #b6c2c3; line-height: 1.7; max-width: 38rem; }
.account-gate > div { align-items: center; display: flex; gap: 2rem; margin-top: 2.5rem; }
.gate-points { border-top: 1px solid var(--line-light); display: grid; gap: 0; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 2.5rem 0 0; padding: 0; }
.gate-points li { border-right: 1px solid var(--line-light); display: grid; gap: .6rem; padding: 1.4rem 1.4rem 0 0; }
.gate-points li + li { padding-left: 1.4rem; }
.gate-points li:last-child { border-right: 0; }
.gate-points b { color: var(--lime); font: 900 1.05rem var(--display); letter-spacing: .02em; }
.gate-points span { color: #b6c2c3; font-size: .78rem; line-height: 1.55; }
.login-link { border-bottom: 1px solid currentColor; font-size: .68rem; font-weight: 900; padding: .7rem 0; }
.participant-form { display: grid; gap: 2rem; }
.signed-in-note { background: var(--aqua); font-size: .72rem; padding: 1rem 1.2rem; }
.participant-form fieldset { background: #fff; border: 0; margin: 0; padding: 2rem; }
.participant-form legend { background: var(--ink); color: #fff; font-size: .62rem; font-weight: 900; letter-spacing: .14em; padding: .7rem 1rem; }
.form-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(2, 1fr); }
.participant-form label:not(.option-card, .consent) { display: grid; font-size: .62rem; font-weight: 900; gap: .55rem; letter-spacing: .08em; text-transform: uppercase; }
.participant-form label:not(.option-card, .consent) { min-width: 0; }
.participant-form input:not([type="checkbox"]), .participant-form select { background: var(--paper); border: 1px solid #bac3c1; border-radius: 0; color: var(--ink); display: block; font: 500 .9rem/1.2 var(--body); height: 3.4rem; margin: 0; max-width: 100%; min-width: 0; padding: 0 .9rem; width: 100%; }
/* Native date controls add their own height and intrinsic width (notably iOS Safari); align them with the other fields. */
.participant-form input[type="date"] { -webkit-appearance: none; appearance: none; }
.participant-form input[type="date"]::-webkit-date-and-time-value { margin: 0; min-height: 1.2em; text-align: left; }
.participant-form input[type="date"]::-webkit-datetime-edit { padding: 0; }
.participant-form input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; margin: 0; opacity: .7; }
.participant-form input:focus, .participant-form select:focus { border-color: #008d91; outline: 2px solid rgba(0,141,145,.18); }
.field-help { color: var(--muted); font-size: .7rem; margin: 1.5rem 0 0; }
.identity-notice { align-items: flex-start; background: #e8f7f5; border-left: .25rem solid #008d91; display: flex; gap: 1rem; margin-top: 1.5rem; padding: 1.2rem; }
.identity-notice > .ui-icon { color: #008d91; height: 1.35rem; margin-top: .1rem; width: 1.35rem; }
.identity-notice b { color: var(--ink); font-size: .66rem; letter-spacing: .1em; }
.identity-notice p { color: #40575a; font-size: .72rem; line-height: 1.65; margin: .45rem 0 0; max-width: 58rem; }
.options-fieldset { display: grid; gap: 1.2rem; }
.option-card { align-items: flex-start; background: var(--paper); cursor: pointer; display: flex; gap: 1rem; padding: 1.3rem; }
.option-card input, .consent input { accent-color: var(--ink); margin-top: .15rem; }
.option-card span { display: grid; gap: .4rem; }
.option-card b { font-size: .72rem; letter-spacing: .08em; }
.option-card small { color: var(--muted); line-height: 1.55; }
.consent { align-items: flex-start; display: flex; font-size: .7rem; gap: .8rem; line-height: 1.5; }
.consent a { text-decoration: underline; text-underline-offset: .2em; }
.health-declaration { background: #e8f7f5; border-left: .25rem solid #008d91; padding: 1.5rem; }
.health-declaration h2 { font-size: 1.15rem; line-height: 1.2; margin: 0 0 .8rem; }
.health-declaration > p { color: #40575a; font-size: .78rem; line-height: 1.65; margin: 0 0 1rem; max-width: 62rem; }
.health-declaration > a { color: #075f63; display: inline-block; font-size: .72rem; font-weight: 800; margin-bottom: 1.25rem; text-decoration: underline; text-underline-offset: .2em; }
.health-declaration .consent { background: #fff; padding: 1rem; }
.health-declaration .field-help { margin: 1rem 0 0; }
.form-message { border-left: .2rem solid transparent; font-size: .72rem; line-height: 1.5; margin: 0; min-height: 1.2rem; padding-left: .8rem; }
.form-message.error { border-color: var(--coral); color: #a51825; }
.field-error { background: #fdecee; border-left: 3px solid var(--coral); color: #a51825; display: block; font-size: .72rem; font-weight: 700; letter-spacing: 0; line-height: 1.4; padding: .45rem .6rem; text-transform: none; }
.participant-form [aria-invalid="true"] { border-color: var(--coral); }
[hidden] { display: none !important; }

@media (max-width: 1050px) {
  .category-catalog { grid-template-columns: repeat(2, 1fr); }
  .catalog-card:last-child { grid-column: span 2; }
}
@media (max-width: 780px) {
  .registration-header { grid-template-columns: minmax(0, 1fr) auto; padding-left: 1rem; }
  .registration-header .brand-logo { width: clamp(7rem, 32vw, 11.5rem); }
  .registration-header-meta { display: none; }
  .registration-tools, .payment-page .registration-tools { grid-template-columns: 3.4rem auto; }
  .registration-tools a { padding: 0 .9rem; white-space: nowrap; }
  .registration-shell { grid-template-columns: 1fr; }
  .registration-rail { padding: 1rem; }
  .registration-rail > a, .registration-rail > p, .rail-note { display: none; }
  .registration-rail ol { display: grid; grid-template-columns: repeat(4, 1fr); }
  .registration-rail li { border-bottom: 1px solid var(--line-light); display: grid; gap: .25rem; justify-items: center; padding: .8rem .25rem; }
  .registration-rail li b { font-size: .58rem; line-height: 1.25; text-align: center; }
  .registration-content { padding: 3rem 1rem 5rem; }
  .step-heading { grid-template-columns: 1fr; }
  .step-heading > p { max-width: 32rem; }
  .briefing-layout { grid-template-columns: 1fr; }
  .selected-category { min-height: 23rem; }
}
@media (max-width: 520px) {
  .category-catalog { grid-template-columns: 1fr; }
  .catalog-card, .catalog-card:last-child { grid-column: auto; min-height: 20rem; }
  .form-grid { grid-template-columns: 1fr; }
  .course-strip { grid-template-columns: 1fr; }
  .step-actions, .account-gate > div { align-items: stretch; flex-direction: column-reverse; }
  .gate-points { grid-template-columns: 1fr; }
  .gate-points li, .gate-points li + li { border-bottom: 1px solid var(--line-light); border-right: 0; padding: 1.1rem 0; }
}
html[dir="rtl"] .catalog-card { text-align: right; }
html[dir="rtl"] .briefing-copy li::before { margin-left: .7rem; margin-right: 0; }
html[dir="rtl"] .briefing-copy aside { border-left: 0; border-right: .25rem solid var(--lime); padding-left: 0; padding-right: 1rem; }

.payment-shell { display: grid; gap: clamp(3rem, 8vw, 9rem); grid-template-columns: minmax(20rem, .8fr) minmax(24rem, 1.2fr); margin: 0 auto; max-width: 92rem; min-height: calc(100vh - 5.8rem); padding: clamp(3rem, 7vw, 7rem) var(--pad); }
.payment-heading > a { font-size: .6rem; font-weight: 900; letter-spacing: .12em; }
.payment-heading > span { color: #087d82; display: block; font-size: .62rem; font-weight: 900; letter-spacing: .18em; margin: 4rem 0 2rem; }
.payment-heading h1 { font-size: clamp(4rem, 8vw, 8rem); line-height: .86; margin-bottom: 2.5rem; }
.payment-heading > p { color: var(--muted); line-height: 1.7; max-width: 30rem; }
.order-panel { align-self: start; background: #fff; box-shadow: 0 2rem 5rem rgba(7,29,34,.1); }
.order-panel > header { background: var(--ink); color: #fff; display: flex; font-size: .62rem; justify-content: space-between; letter-spacing: .12em; padding: 1.2rem 1.5rem; }
.order-panel > header span { color: var(--aqua); }
.order-panel > div { padding: clamp(1.5rem, 4vw, 3rem); }
.order-details { margin: 0; }
.order-details > div { align-items: center; border-bottom: 1px solid var(--line-dark); display: flex; gap: 2rem; justify-content: space-between; padding: 1rem 0; }
.order-details dt { color: var(--muted); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.order-details dd { font-size: .78rem; font-weight: 800; margin: 0; text-align: right; }
.price-summary { align-items: end; background: var(--lime); display: flex; justify-content: space-between; margin-top: 2rem; padding: 1.5rem; }
.price-summary span { font-size: .6rem; font-weight: 900; letter-spacing: .12em; }
.price-summary strong { font: 900 1.5rem var(--display); }
.provider-placeholder { align-items: flex-start; background: var(--paper); display: flex; gap: 1rem; margin-top: 1rem; padding: 1.3rem; }
.provider-placeholder i { background: var(--aqua); border-radius: 50%; display: grid; flex: 0 0 1.7rem; font-style: normal; height: 1.7rem; place-items: center; }
.provider-placeholder b { font-size: .62rem; letter-spacing: .1em; }
.provider-placeholder p { color: var(--muted); font-size: .7rem; line-height: 1.55; margin: .5rem 0 0; }
.payment-button { align-items: center; background: var(--ink); border: 0; color: #fff; display: flex; font-size: .7rem; font-weight: 900; justify-content: space-between; letter-spacing: .12em; margin-top: 2rem; min-height: 4.3rem; padding: 0 1.3rem; width: 100%; }
.payment-button:disabled { background: #344b51; cursor: not-allowed; opacity: .72; }
.payment-status { color: var(--muted); font-size: .65rem; line-height: 1.5; margin: .8rem 0 0; text-align: center; }
.empty-order h2 { font-size: 2rem; }
.empty-order p { color: var(--muted); line-height: 1.6; }
@media (max-width: 780px) { .payment-shell { grid-template-columns: 1fr; } .payment-heading > span { margin-top: 2rem; } }

.catalog-card footer .ui-icon { float:right; height:1.2rem; width:1.2rem; }
.registration-tools a { gap:.35rem; }
.back-button, .payment-heading > a { display:inline-flex; align-items:center; gap:.5rem; }
@media (min-width:781px) { .registration-rail > a { display:inline-flex; align-items:center; gap:.5rem; } }
.provider-placeholder .ui-icon { background:var(--aqua); border-radius:50%; box-sizing:content-box; height:1rem; padding:.35rem; width:1rem; }
.health-declaration > a .ui-icon { margin-left:.25rem; }
.result-badge { align-items: center; background: var(--paper); display: flex; font-size: .66rem; font-weight: 900; gap: .8rem; letter-spacing: .12em; margin: 0 0 1.5rem; padding: 1rem 1.2rem; }
.result-badge i { background: var(--aqua); border-radius: 50%; display: grid; flex: 0 0 2rem; height: 2rem; place-items: center; }
.result-badge .ui-icon { height: 1rem; width: 1rem; }
.result-panel[data-result-state="success"] .result-badge { background: var(--lime); }
.result-panel[data-result-state="success"] .result-badge i { background: var(--ink); color: var(--lime); }
.result-panel[data-result-state="failed"] .result-badge { background: #fdecee; color: #a51825; }
.result-panel[data-result-state="failed"] .result-badge i { background: var(--coral); color: #fff; }
.result-panel .order-details dd { overflow-wrap: anywhere; }
.result-actions { display: grid; gap: .5rem; margin-top: 2rem; }
.result-actions .payment-button { margin-top: 0; text-decoration: none; }
.result-secondary { color: var(--ink); display: block; font-size: .65rem; font-weight: 900; letter-spacing: .12em; padding: 1rem; text-align: center; text-decoration: underline; text-underline-offset: .3rem; }
@media (max-width: 780px) { .payment-heading h1 { font-size: clamp(2.4rem, 10.5vw, 4rem); overflow-wrap: anywhere; } }
.registration-tools.registration-tools-single, .payment-page .registration-tools.registration-tools-single { grid-template-columns: auto; }
.registration-tools-single a { padding: 0 1.5rem; white-space: nowrap; }
/* Day-first date field (GG.AA.YYYY) with its own month/year picker. */
.date-field { display: grid; font-size: .62rem; font-weight: 900; gap: .55rem; letter-spacing: .08em; min-width: 0; position: relative; text-transform: uppercase; }
.date-field > label { display: block; }
.date-input-wrap { display: flex; min-width: 0; }
.date-input-wrap input { flex: 1; letter-spacing: .06em; }
.date-picker-toggle { align-items: center; background: var(--paper); border: 1px solid #bac3c1; border-left: 0; color: var(--ink); cursor: pointer; display: flex; flex: 0 0 3.4rem; height: 3.4rem; justify-content: center; padding: 0; }
.date-picker-toggle:hover, .date-picker-toggle[aria-expanded="true"] { background: var(--lime); }
.date-picker-toggle .ui-icon { height: 1.2rem; width: 1.2rem; }
.date-hint { color: var(--muted); font-size: .68rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.date-input-wrap + .field-error, .date-field .field-error { order: 0; }
.date-picker { background: #fff; border: 1px solid #bac3c1; box-shadow: 0 1.5rem 3rem rgba(7,29,34,.18); left: 0; letter-spacing: 0; padding: 1rem; position: absolute; text-transform: none; top: calc(100% + .4rem); width: min(21rem, 100%); z-index: 20; }
.date-picker-head { align-items: center; display: grid; gap: .4rem; grid-template-columns: 2.2rem 1fr auto 2.2rem; margin-bottom: .8rem; }
.date-picker-head select { background: var(--paper); border: 1px solid #bac3c1; color: var(--ink); font: 700 .85rem var(--body); height: 2.4rem; padding: 0 .5rem; width: 100%; }
.date-picker-step { background: var(--paper); border: 1px solid #bac3c1; color: var(--ink); cursor: pointer; font-size: 1.1rem; height: 2.4rem; }
.date-picker-grid { display: grid; gap: .2rem; grid-template-columns: repeat(7, 1fr); }
.date-picker-weekday { color: var(--muted); font-size: .62rem; font-weight: 700; padding: .3rem 0; text-align: center; text-transform: uppercase; }
.date-picker-day { aspect-ratio: 1; background: transparent; border: 0; color: var(--ink); cursor: pointer; font: 600 .85rem var(--body); }
.date-picker-day:hover:not(:disabled) { background: var(--paper); }
.date-picker-day.selected { background: var(--ink); color: var(--lime); }
.date-picker-day:disabled { color: #c3cbca; cursor: not-allowed; }
.date-picker-close { background: none; border: 0; color: var(--ink); cursor: pointer; display: block; font: 800 .7rem var(--body); letter-spacing: .1em; margin: .6rem 0 0 auto; padding: .4rem; text-transform: uppercase; }
@media (max-width: 780px) { .date-picker { width: 100%; } }
.price-breakdown { color: var(--ink); font-size: .75rem; font-weight: 700; margin: .6rem 0 0; text-align: right; }
/* Clickable controls show the hand cursor; a disabled payment button keeps not-allowed. */
.payment-button:not(:disabled), .participant-form select, .participant-form label.consent, .participant-form input[type="checkbox"] { cursor: pointer; }
/* Discounted price: the old amount struck through before the current one. */
.price-before { color: var(--muted); font-weight: 700; opacity: .85; text-decoration: line-through; }
.catalog-card .price-before, .briefing-hero .price-before { font-size: .85em; }
.price-amounts { align-items: baseline; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; }
.price-summary .price-before { font: 700 1rem var(--display); }
