.registration {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  padding: 144px 16px 64px;
}

.registration-intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: var(--field-width);
  text-align: center;
}

.registration-title {
  font: 700 52px/52px var(--heading-font);
  letter-spacing: -.03em;
  text-transform: uppercase;
}


.registration-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  width: 100%;
}

.personal-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: var(--field-width);
}

.birthday-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.birthday-fields .select-trigger {
  gap: 4px;
  padding-inline: 15px;
}

.form-section {
  --form-section-gap: 32px;
  display: flex;
  flex-direction: column;
  gap: var(--form-section-gap);
  width: 100%;
  max-width: var(--field-width);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-align: center;
}

.section-title {
  font: 700 24px/24px var(--heading-font);
  letter-spacing: -.025em;
  text-align: center;
  text-transform: uppercase;
}

.section-price {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 4px;
  border-radius: 2px;
  background: var(--accent);
  color: var(--ink);
  font: 700 14px/14px var(--heading-font);
  letter-spacing: -.025em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* W3.CSS columns provide widths; padding gutters preserve the Figma spacing.
* Flex wrapping keeps columns aligned when "Jiný klub" expands in height. */
.option-grid.w3-row {
  --option-gap: 16px;
  display: flex;
  flex-wrap: wrap;
  width: calc(100% + var(--option-gap));
  margin: calc(var(--option-gap) / -2);
}

.option-grid.w3-row::before, .option-grid.w3-row::after {
  display: none;
}

.option-grid > .w3-col {
  padding: calc(var(--option-gap) / 2);
}

.group-error {
  text-align: center;
}

.group-error:not(:empty) {
  margin-top: var(--form-section-gap);
}

.summary-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.summary-card {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding: 16px;
  border-radius: 4px;
  background: var(--field-background);
}

.summary-head, .summary-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  line-height: 21px;
}

.summary-head {
  color: rgb(255 255 255 / 50%);
  font-weight: 500;
}

.summary-head > :last-child, .summary-item > :last-child {
  flex-shrink: 0;
  white-space: nowrap;
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-items:empty {
  display: none;
}

.summary-card:has(.summary-item) {
  gap: 24px;
}

.summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 17px;
  background: url("../assets/icons/summary-divider.svg") left top / 100% 1px no-repeat;
  font: 700 24px/24px var(--heading-font);
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.summary-total output {
  color: var(--accent);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.summary-body .action {
  align-self: center;
  max-width: 288px;
}

.submit-message {
  font-size: 14px;
  line-height: 21px;
}

.submit-message:empty {
  display: none;
}

@media (min-width: 439px) {
  .registration {
    gap: 80px;
    padding-bottom: 80px;
  }
  .registration-form {
    gap: 80px;
  }
  .distances .option-grid {
    --option-gap: 24px;
  }
}

/* W3.CSS switches m-columns at 601px. The approved design switches at 768px. */
@media (min-width: 601px) and (max-width: 767.98px) {
  .distances .option-grid > .w3-col.m6,
  .buoy .option-grid > .w3-col.m6 {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .registration {
    padding-inline: 32px;
  }
  .registration-intro {
    max-width: 800px;
  }
  .personal-details {
    gap: 24px;
  }
  .club .option-grid {
    --option-gap: 24px;
  }
  .distances, .buoy {
    max-width: 600px;
  }
  .distances .option-grid, .buoy .option-grid {
    --option-gap: 24px;
  }
  .summary-body .action {
    align-self: center;
  }
}

/* Keep tablet layout until 1288px, instead of W3.CSS's default 993px. */
@media (min-width: 993px) and (max-width: 1287.98px) {
  .distances .option-grid > .w3-col.l4 {
    width: 50%;
  }
  .club .option-grid > .w3-col.l4 {
    width: 100%;
  }
}

@media (min-width: 1288px) {
  .registration {
    gap: 120px;
    padding-top: 240px;
    padding-bottom: 120px;
  }
  .registration-intro {
    gap: 40px;
    max-width: var(--content-width);
  }
  .registration-title {
    font-size: 120px;
    line-height: 120px;
  }
  .registration-form {
    gap: 120px;
  }
  .personal-details {
    gap: 24px;
  }
  .birthday-fields {
    grid-template-columns: 104px 128px 128px;
    gap: 16px;
  }
  .form-section {
    --form-section-gap: 40px;
  }
  .section-heading {
    gap: 8px;
  }
  .section-title {
    font-size: 32px;
    line-height: 32px;
  }
  .section-price {
    font-size: 16px;
    line-height: 16px;
  }
  .distances, .buoy, .club {
    max-width: var(--content-width);
  }
  .distances .option-grid, .club .option-grid {
    --option-gap: 24px;
  }
  .buoy .option-grid,
  .distances--buoy-width .option-grid {
    max-width: 832px;
    margin-inline: auto;
  }
  .summary-body {
    gap: 40px;
  }
  .summary-head, .summary-item {
    font-size: 16px;
    line-height: 24px;
  }
  .summary-total {
    font-size: 32px;
    line-height: 32px;
  }
  .summary-body .action {
    align-self: center;
  }
}

/* Vltava form revision 1236:12489. Keep overrides scoped to this form. */
.form-page .registration-intro { gap: 24px; }
.form-page legend.sr-only { display: block; max-width: 1px; }
.form-page .summary-total { padding-top: 16px; }
.registration-heading { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.registration-brand { line-height: 0; }
.registration-date { font: 700 24px/24px var(--heading-font); letter-spacing: -.025em; text-transform: uppercase; }
.form-page .text-input::placeholder { color: rgb(255 255 255 / 50%); }
.form-page .text-input, .form-page .select-trigger { color: #fff; }
.form-page .select-trigger:not(.is-filled) { color: rgb(255 255 255 / 50%); }
.form-page .text-input:focus, .form-page .select-trigger[aria-expanded="true"] { color: var(--accent); }
.form-page .text-input:focus::placeholder { color: var(--accent); }
.form-page .radio-label { font-size: 20px; line-height: 20px; }
.form-page .radio-content { gap: 4px; }
.form-page .radio-heading { justify-content: flex-start; }
.form-page .radio-heading > .radio-label { flex: 1; }
.form-page .radio-input:checked + .radio-card .tag img[src$="/race-plus.svg"] {
  filter: brightness(0) invert(1);
}
.form-page :is(.buoy, .distances--buoy-width) .option-grid { --option-gap: 16px; }
.form-page .club-va-card { position: relative; align-items: center; padding-block: 16px; overflow: hidden; background: linear-gradient(#070fef, #050bad); color: #fff; }
.form-page .radio-input:checked + .club-va-card { background: var(--accent); color: var(--ink); }
.club-va-card .radio-label { position: relative; z-index: 1; white-space: normal; }
.club-va-card .radio-content { position: relative; }
.va-emblem { position: absolute; top: 50%; right: 0; transform: translateY(-50%); width: 140px; height: 32px; pointer-events: none; }
.va-emblem img { position: absolute; }
.va-emblem-left { left: 1.996px; top: -30px; }
.va-emblem-right { left: 107.249px; top: -30px; }
.va-emblem-center { left: 34.824px; top: -9.954px; }
.cross-sell { max-width: 392px; align-items: center; }
.cross-sell-heading { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
.cross-sell-title { font: 700 24px/24px var(--heading-font); letter-spacing: -.025em; text-transform: uppercase; text-align: center; }
.cross-sell-title span { display: block; color: var(--accent); }
.promo-label { align-self: center; font: 700 14px/14px var(--heading-font); letter-spacing: -.025em; }
.cross-sell-card { display: flex; flex-direction: column; gap: 24px; align-items: center; width: 100%; max-width: 392px; padding: 16px; border: 1px solid rgb(255 255 255 / 75%); border-radius: 4px; background: linear-gradient(rgb(255 255 255 / 40%),rgb(255 255 255 / 25%)); }
.cross-sell-card.is-added { border-radius: 8px; }
.cross-sell-photo { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px; background: #000; }
.cross-sell-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cross-sell-photo::after { position: absolute; inset: 0 0 auto; height: 56px; content: ''; background: linear-gradient(rgb(0 0 0 / 80%),transparent); pointer-events: none; }
.cross-sell-prices { position: absolute; z-index: 1; top: 8px; left: 8px; display: flex; gap: 4px; }
.cross-sell-prices del { display: flex; align-items: center; height: 24px; padding: 0 4px; border: 1px solid var(--border); border-radius: 2px; font: 700 14px/14px var(--heading-font); white-space: nowrap; }
.cross-sell-info { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.cross-sell-info > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cross-sell-info h3 { font: 700 24px/24px var(--heading-font); letter-spacing: -.025em; text-transform: uppercase; }
.cross-sell-info p { font: 700 14px/14px var(--heading-font); letter-spacing: -.025em; text-transform: uppercase; }
.cross-sell-status { background: linear-gradient(rgb(255 255 255 / 25%),rgb(255 255 255 / 20%)); color: var(--accent); }
.cross-sell-select { gap: 4px; }
.cross-sell-select > .field-label { margin-bottom: 4px; }
.cross-sell-success { color: #17ff4d; font: 500 14px/21px var(--body-font); }
.cross-sell-success:empty { display: none; }
.form-page .cross-sell-card.is-added .select-trigger { border-color: var(--accent); color: var(--accent); }
.summary-body { align-items: center; }
.summary-card { width: 100%; }
.terms-field { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; text-align: center; }
.terms-label { display: inline-flex; gap: 8px; align-items: center; max-width: 100%; text-align: left; font: 500 14px/21px var(--body-font); }
.terms-label > span { display: inline-flex; flex-wrap: wrap; align-items: baseline; column-gap: 4px; min-width: 0; }
.terms-label button, .terms-label a { display: inline; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; text-align: left; cursor: pointer; }
.terms-label input { position: static; top: auto; display: grid; place-content: center; padding: 0; appearance: none; flex: 0 0 18px; width: 18px; height: 18px; margin: 0; border: 1px solid var(--accent); border-radius: 4px; background: transparent; cursor: pointer; }
.terms-label input:checked { background: transparent; }
.terms-label input:checked::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.terms-label input[aria-invalid="true"] { border-color: var(--error); }
.form-page .site-header { right: 8px; left: 8px; }
.form-page .site-header-inner { min-height: 60px; padding: 8px 8px 8px 12px; }
.form-page .race-brand { gap: 4px; }
.form-page .site-footer { padding: 64px 24px; }
.form-page .footer-top { grid-template-columns: minmax(0, 1fr) 44px; column-gap: 24px; }
.form-page .footer-contact { grid-area: 1 / 1; }
.form-page .footer-top > .icon-button { grid-area: 1 / 2; }
.form-page .footer-payment-logos { display: flex; justify-content: center; }
.payment-logo-window { position: relative; flex-shrink: 0; width: 352px; max-width: calc(100vw - 32px); aspect-ratio: 11 / 1; overflow: hidden; }
.payment-logo-window picture { display: block; height: 100%; }
.payment-logo-window img { width: 100%; height: 100%; object-fit: cover; }
.form-page .footer-bottom { padding-top: 32px; }
.form-page .footer-wordmark { max-width: 100%; line-height: 0; }
.form-page .footer-wordmark picture { display: block; }
.form-page .footer-wordmark img { max-width: 100%; height: auto; }
.form-page .footer-copyright { color: rgb(255 255 255 / 25%); }
@media (max-width: 359.98px) {
  .va-emblem { right: -20px; }
}
@media (min-width: 439px) {
  .form-page .site-header { top: 16px; right: 16px; left: 16px; }
  .cross-sell, .summary, .summary-body { gap: 40px; }
  .form-page .site-footer { padding-bottom: 80px; }
}
@media (min-width: 768px) {
  .cross-sell { max-width: 600px; }
  .form-page .club { max-width: 600px; }
  .form-page .club .option-grid { max-width: 416px; margin-inline: auto; }
  .cross-sell, .summary, .summary-body { gap: 32px; }
  .form-page .site-footer { padding: 64px 32px 80px; }
  .form-page .footer-inner { grid-template-columns: minmax(0,1fr) auto; }
  .form-page .footer-top { grid-column: 1 / -1; grid-row: 1; }
  .form-page .footer-payment-logos { grid-column: 1 / -1; grid-row: 2; justify-content: flex-end; }
  .payment-logo-window { width: 332px; aspect-ratio: 332 / 32; }
  .payment-logo-window img { position: absolute; width: 106.02%; height: 100%; max-width: none; }
  .form-page .footer-bottom { grid-column: 1 / -1; grid-row: 3; }
  .form-page .footer-wordmark { margin: 0; }
  .form-page .footer-copyright { text-align: left; }
  .form-page .footer-socials { grid-column: 2; grid-row: 3; align-self: start; margin: 32px 0 0; z-index: 1; }
}
@media (min-width: 1288px) {
  .registration-intro { gap: 24px; }
  .registration-date { font-size: 32px; line-height: 32px; }
  .form-page .radio-label { font-size: 24px; line-height: 24px; }
  .form-page .club { max-width: var(--content-width); }
  .form-page .club .option-grid { max-width: none; margin-inline: -12px; }
  .distances .radio-option.l4:nth-child(1) { order: 0; }
  .distances .radio-option.l4:nth-child(2) { order: 3; }
  .distances .radio-option.l4:nth-child(3) { order: 1; }
  .distances .radio-option.l4:nth-child(4) { order: 4; }
  .distances .radio-option.l4:nth-child(5) { order: 2; }
  .distances .radio-option.l4:nth-child(6) { order: 5; }
  .cross-sell, .summary, .summary-body { gap: 40px; }
  .cross-sell { max-width: 1224px; }
  .cross-sell-title, .cross-sell-info h3 { font-size: 32px; line-height: 32px; }
  .promo-label, .cross-sell-info p { font-size: 16px; line-height: 16px; }
  .cross-sell-success { font-size: 16px; line-height: 24px; }
  .terms-label { font-size: 16px; line-height: 24px; }
  .form-page .site-footer { padding: 128px 32px 160px; }
  .form-page .footer-inner { gap: 80px 24px; }
  .form-page .footer-bottom { padding-top: 40px; }
  .form-page .footer-socials { align-self: end; margin: 0 0 29px; }
  .payment-logo-window { width: 414px; aspect-ratio: 414 / 40; }
  .payment-logo-window img { width: 106.28%; left: -.12%; top: -.31%; }
}

@media (min-width: 1376px) {
  .form-page .site-header { top: 32px; right: 32px; left: 32px; }
  .form-page .site-header-inner { min-height: 68px; padding: 12px 12px 12px 16px; }
}

/* Selected VA card uses the dark emblem at 25% opacity from Figma 917:5732. */
.va-emblem .va-emblem-active { display: none; opacity: .25; }
.radio-input:checked + .club-va-card .va-emblem-idle { display: none; }
.radio-input:checked + .club-va-card .va-emblem-active { display: block; }


/* Native CZ/EN links keep the original segmented control appearance. */
.form-page .language-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; padding: 0 8px; border-radius: 1px; font: 700 16px/16px var(--heading-font); }
.form-page .language-switch [aria-current="page"] { background: var(--accent); color: var(--ink); }
@media (hover: hover) { .form-page .language-switch a:not([aria-current="page"]):hover { color: var(--accent); } }
/* Both the language position and shared font guards must finish before paint. */
html[data-language-position="pending"] { scroll-behavior: auto; }
html[data-language-position="pending"] body { visibility: hidden; }


.cross-sell-card.is-unavailable .cross-sell-success { color: var(--muted); }

/* Kids Most: Figma 1272:6390 pairs the companion and swimmer name fields. */
.form-kids-page .name-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 8px;
}
.form-kids-page .distances .radio-option:nth-child(n) { order: 0; }
@media (min-width: 1288px) { .form-kids-page .name-fields { gap: 16px; } }
