/* ==========================================================================
   /book/ — the booking request (2026-11-24, spec 2026-11-24-aicon27-booking-page-design.md)
   /partnerwithus/'s form card (css/modal.css, .partner-card in css/aicon27.css) with a conference and a package
   to choose. Labels are German and English, so they are longer than the partner form's.
   ========================================================================== */

/* The card is the page's only section: room under the sticky menu bar (the partner page's card follows a section). */
.partner-form-section.book-section { padding-top: 56px; }

.book-card .modal__title { font-size: 34px; line-height: 40px; }
/* modal.css hides the lead on phones (the pop-up had to fit the screen). Here it says the request is non-binding,
   which nobody may miss: always shown. */
.book-card .modal__lead { display: block; }
.book__lead-en { display: block; margin-top: 6px; font-weight: 300; color: var(--muted); }

/* ---- Groups: conference, package, contact ------------------------------- */
.book__group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
}
.book__legend {
  padding: 0;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--white-soft);
}
/* A group's own "what is missing" line, at its top (js/main.js initBookingForm). */
.book__group-error { text-align: left; font-weight: 700; }
.book__note { margin: 0; font-size: 14px; font-weight: 700; line-height: 20px; color: var(--primary-light-active); }

/* ---- Choice cards (radio buttons) ----------------------------------------- */
.book__options { display: grid; gap: 8px; }
.book__options--events { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.book__option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: var(--transparent-2);
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.book__option:hover { border-color: var(--card-border); }
.book__option:has(input:checked) { border-color: var(--primary); background: rgba(216, 255, 0, 0.06); }
.book__option input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.book__radio {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 2px solid var(--white-soft);
  border-radius: 50%;
  transition: border-color 0.12s ease;
}
.book__radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.12s ease;
}
.book__option input:checked + .book__radio { border-color: var(--primary); }
.book__option input:checked + .book__radio::after { opacity: 1; }
.book__option input:focus-visible + .book__radio { box-shadow: 0 0 0 2px var(--primary); }

.book__option-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.book__option-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 16px;
}
.book__option-name { font-size: 16px; font-weight: 700; line-height: 22px; color: var(--white-soft); }
.book__option-detail { font-size: 14px; font-weight: 300; line-height: 20px; color: var(--white-soft); }
.book__option-detail--en { color: var(--muted-2); }
.book__option-note { font-size: 14px; font-weight: 700; line-height: 20px; color: var(--primary-light-active); }

/* The early price large and lime; the regular price small, named and struck, so it reads as the regular price
   rather than a second offer. */
.book__price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 0 12px; }
.book__price-early { font-size: 18px; font-weight: 700; line-height: 22px; color: var(--primary); white-space: nowrap; }
.book__price-regular { font-size: 12px; font-weight: 300; line-height: 18px; color: var(--muted-2); white-space: nowrap; }
.book__price-regular s { color: var(--muted); }

.book__brochure { margin: 2px 0 0; font-size: 14px; font-weight: 300; line-height: 20px; }
.book__brochure a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

/* ---- Contact fields ------------------------------------------------------- */
/* Bilingual labels: a wider label column than the partner form's 140px. */
.book-card .modal__label { flex-basis: 190px; width: 190px; }

/* ---- Consent and button ----------------------------------------------------- */
/* Two languages make the sentence four lines long: left-aligned reads better than centred. */
.book-card .modal__consent { align-items: flex-start; justify-content: flex-start; text-align: left; }
.book-card .modal__consent .modal__box { margin-top: 1px; }
.book__consent a { color: var(--primary-light-active); text-decoration: underline; text-underline-offset: 2px; }

/* Greyed out like the information form's disabled button until the form is complete, yet clickable: a click says
   what is missing (js/main.js initBookingForm). */
.book-card .modal__submit[aria-disabled="true"] {
  background: var(--grey);
  color: var(--grey-darker);
  border-color: transparent;
  cursor: not-allowed;
}
.book-card .modal__submit[aria-disabled="true"]:hover { background: var(--grey); }

.book__thanks-contact a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

/* ---- Phones and tablets ------------------------------------------------------ */
@media (max-width: 900px) {
  .partner-form-section.book-section { padding-top: 24px; }
  .book-card .modal__title { font-size: 26px; line-height: 32px; }
  .book__options--events { grid-template-columns: 1fr; }
  /* modal.css stacks label above field here; undo the wider column above. */
  .book-card .modal__label { flex-basis: auto; width: 100%; }
  .book__option { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .book__option,
  .book__radio,
  .book__radio::after { transition: none; }
}
