/* Bądźmy w kontakcie (/badzmy-w-kontakcie, /potwierdz, /wypisz).
   Ładowany po fonts.css i styles.css. Samowystarczalny: formularze.css (prototyp) nie jest w paczce wydania,
   a reguły szkieletu podstrony są skopiowane z rezerwacja-si.css (stan 18.10.2026), żeby zmiana tamtej strony
   nie zmieniała tej. Kolory wyłącznie z tokenów :root w styles.css. */

/* ---------- 1. Szkielet podstrony (kopia z rezerwacja-si.css) ---------- */
.booking-page { min-height: 100vh; background: var(--ivory); color: var(--ink); }
.booking-shell { width: min(calc(100% - 64px), 1180px); margin-inline: auto; }
.booking-nav { background: var(--paper); border-bottom: 1px solid var(--line); }
.booking-nav-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.booking-nav .brand { width: 196px; }
.booking-nav .brand img { width: 100%; height: auto; mix-blend-mode: multiply; }
.booking-back { display: inline-flex; min-height: 44px; align-items: center; color: var(--forest); font-size: .76rem; font-weight: 700; text-decoration: none; }
.booking-back > span:first-child { margin-right: 8px; color: var(--clay); font-size: 1rem; }
.booking-hero { position: relative; overflow: hidden; padding: clamp(72px, 9vw, 126px) 0; background: var(--forest); color: var(--paper); }
.booking-hero::before { content: ""; position: absolute; width: 560px; height: 560px; right: -190px; bottom: -350px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 82px rgba(255,255,255,.025), 0 0 0 164px rgba(255,255,255,.018); pointer-events: none; }
.booking-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(300px, .72fr); gap: clamp(56px, 8vw, 112px); align-items: end; }
.booking-eyebrow { margin: 0 0 22px; color: #cbd8d0; font-size: .68rem; font-weight: 750; letter-spacing: .17em; text-transform: uppercase; }
.booking-eyebrow-dark { color: var(--clay-dark); }
.booking-hero h1 { max-width: 820px; margin: 0 0 28px; font-size: clamp(3.35rem, 6.7vw, 6.65rem); line-height: .86; color: var(--paper); }
.booking-hero h1 em { color: #c7d7cb; font-weight: 400; }
.booking-hero-copy > p:last-child { max-width: 640px; margin: 0; color: rgba(255,255,255,.7); font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.75; }
.booking-facts { padding: 30px 0 0; border-top: 1px solid var(--white-line); }
.booking-facts-label { margin-bottom: 22px; color: #f1b48f; font-size: .68rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.booking-facts dl { display: grid; gap: 0; margin: 0; }
.booking-facts dl div { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--white-line); }
.booking-facts dt { color: rgba(255,255,255,.62); font-size: .68rem; }
.booking-facts dd { margin: 0; color: rgba(255,255,255,.9); font-family: var(--serif); font-size: 1.08rem; line-height: 1.35; }
.booking-footer { padding: 30px 0; background: var(--forest-deep); color: var(--paper); }
.booking-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.booking-footer p { margin: 0; font-family: var(--serif); font-size: 1.08rem; }
.booking-footer a { display: inline-flex; min-height: 44px; align-items: center; color: rgba(255,255,255,.72); font-size: .72rem; text-decoration: none; }
.booking-footer a:hover { color: var(--paper); text-decoration: underline; }

/* ---------- 2. Komponenty formularza (kopia z formularze.css, z poprawkami) ---------- */
.form-panel { padding: 48px; border: 1px solid var(--line); background: var(--paper); }
.form-kicker { margin-bottom: 14px; color: var(--clay-dark); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
.field-wide { grid-column: 1 / -1; }
.field label, .choice-field legend { display: block; margin-bottom: 9px; color: var(--forest); font-size: .84rem; font-weight: 700; }
.field label span, .choice-field legend span { color: var(--clay-dark); }
.field input, .field select { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #7a8a83; border-radius: 0; background: #fff; color: var(--ink); font: inherit; font-size: .95rem; }
.field input:hover, .field select:hover { border-color: var(--forest); }
.field input:focus, .field select:focus { border-color: var(--forest); outline: 3px solid rgba(200,120,82,.28); outline-offset: 1px; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #a12626; background: #fff8f7; }
.choice-field { display: grid; margin: 0 0 30px; padding: 0; border: 0; gap: 10px; }
.choice-field legend { margin-bottom: 10px; }
.choice-field label { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 15px 16px; border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s; }
.choice-field label:hover { border-color: var(--forest); background: var(--ivory); }
.choice-field input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--forest); }
.choice-field label span { display: grid; }
.choice-field label strong { color: var(--forest); font-size: .86rem; line-height: 1.35; }
.privacy-note { padding: 18px 20px; border-left: 3px solid var(--sage); background: var(--sage-pale); }
.privacy-note strong { color: var(--forest); font-size: .78rem; }
.privacy-note p { margin: 5px 0 0; color: #4d5f59; font-size: .8rem; line-height: 1.6; }
.privacy-note a { color: var(--forest); font-weight: 700; text-underline-offset: 3px; }
.field-error { min-height: 19px; margin: 5px 0 0; color: #9d1f1f; font-size: .78rem; line-height: 1.4; }
.error-summary { margin-bottom: 28px; padding: 18px 20px; border: 2px solid #9d1f1f; background: #fff5f4; color: #761919; }
.error-summary strong { display: block; font-size: .85rem; }
.error-summary ul { margin: 8px 0 0; padding-left: 18px; }
.error-summary li { font-size: .8rem; }
.error-summary a { color: #761919; font-weight: 700; text-underline-offset: 3px; }
.success-panel { padding: 70px 54px; border: 1px solid var(--line); background: var(--paper); text-align: center; }
.success-mark { width: 76px; height: 76px; display: inline-grid; margin-bottom: 34px; border-radius: 50%; place-items: center; background: var(--forest); color: var(--paper); }
.success-mark svg { width: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.submit-button { border: 0; cursor: pointer; }

/* ---------- 3. Bądźmy w kontakcie ---------- */
/* styles.css dodaje na telefonie 62 px pod pasek kontaktu strony głównej; tu go nie ma. */
body.bwk-page { padding-bottom: 0; }
/* Kontenery z tabindex=-1 dostają fokus tylko po to, żeby czytnik odczytał wynik; to nie są elementy do klikania. */
.bwk-page [tabindex="-1"]:focus { outline: none; }

.bwk-hero { padding: clamp(64px, 7vw, 96px) 0; }
.bwk-hero h1 { font-size: clamp(3.2rem, 6vw, 6rem); }
.bwk-hero .booking-hero-copy > p:last-child { max-width: 560px; }

.bwk-workspace { padding: clamp(56px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); }
.bwk-layout { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 760px); gap: clamp(40px, 7vw, 96px); align-items: start; justify-content: center; }
.bwk-steps { position: sticky; top: 28px; }
.bwk-steps ol { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.bwk-steps li { padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
.bwk-steps li > span { display: block; margin-bottom: 14px; color: var(--clay-dark); font-family: var(--serif); font-size: 1.2rem; }
.bwk-steps strong { display: block; margin-bottom: 6px; color: var(--forest); font-family: var(--serif); font-size: 1.45rem; font-weight: 500; line-height: 1.15; letter-spacing: -.02em; }
.bwk-steps p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.6; }

.bwk-panel { padding: clamp(28px, 4vw, 52px); }
.bwk-intro { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.bwk-intro h2 { margin-bottom: 10px; color: var(--forest); font-size: clamp(2.3rem, 3.6vw, 3.4rem); }
.bwk-intro p { margin: 0; color: var(--muted); font-size: .9rem; }

.bwk-form { padding-top: 8px; }
.form-block { margin: 0; padding: 30px 0; border: 0; border-bottom: 1px solid var(--line); }
.form-block:last-of-type { border-bottom: 0; }
/* Legendy fieldsetów jako nagłówki bloków (choice-field nadaje legendom krój etykiety). */
.bwk-form .block-title, .bwk-form .choice-field legend.block-title { display: block; margin: 0 0 16px; padding: 0; color: var(--forest); font-family: var(--serif); font-size: 1.55rem; font-weight: 500; line-height: 1.15; letter-spacing: -.02em; }
.block-title small, .field label small { color: var(--muted); font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: 0; }
.block-hint { max-width: 600px; margin: -6px 0 18px; color: var(--muted); font-size: .88rem; line-height: 1.6; }
.req { color: var(--clay-dark); }
.field-hint { margin: 6px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.field-hint + .field-error:empty { min-height: 0; }
.fine-print { max-width: 600px; margin: 18px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.55; }

/* Urodziny: wiersz dziecka z kartką z kalendarza, która pokazuje wybraną datę na żywo. */
.kid-list { display: grid; gap: 14px; }
.kid-row { display: grid; grid-template-columns: 76px minmax(0, 1.3fr) minmax(0, .7fr) minmax(0, 1fr) auto; gap: 14px; align-items: end; padding: 16px; border: 1px solid var(--line); background: var(--ivory); }
.kid-row .field-error { grid-column: 2 / -1; min-height: 0; margin: -4px 0 0; }
.kid-row .field-error:empty { display: none; }
.kid-leaf { position: relative; display: grid; width: 76px; height: 84px; place-content: center; justify-items: center; overflow: hidden; border: 1px solid rgba(23,62,50,.22); border-radius: 4px; background: var(--paper); box-shadow: 0 6px 16px rgba(15,47,39,.06); }
.kid-leaf::before { content: ""; position: absolute; inset: 0 0 auto; height: 14px; background: var(--forest); }
.kid-leaf b { margin-top: 10px; color: var(--forest); font-family: var(--serif); font-size: 2.1rem; font-weight: 500; line-height: 1; }
.kid-leaf small { margin-top: 4px; color: var(--clay-dark); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.kid-leaf.is-empty b { color: #b9c3be; }
.kid-row .field input, .kid-row .field select { min-height: 48px; }
.kid-remove { min-width: 44px; min-height: 48px; padding: 0 12px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer; }
.kid-remove:hover { border-color: var(--forest); color: var(--forest); }
.kid-row:first-child .kid-remove { visibility: hidden; }
.kid-add { min-height: 44px; margin-top: 14px; padding: 0; border: 0; background: none; color: var(--forest); font: inherit; font-size: .84rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.kid-add span { color: var(--clay-dark); font-size: 1.1rem; text-decoration: none; }
.kid-limit { margin: 12px 0 0; color: var(--muted); font-size: .78rem; }

.topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.topics legend { grid-column: 1 / -1; }
.topics label { align-items: start; }

/* Zgody: dwie osobne karty, domyślnie niezaznaczone. */
.consents { display: grid; gap: 12px; }
.consents .block-hint { margin-bottom: 6px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 18px; border: 1px solid #7a8a83; background: #fff; cursor: pointer; transition: border-color .2s, background .2s; }
.consent:hover { border-color: var(--forest); }
.consent:has(input:checked) { border-color: var(--forest); background: #f4f8f4; box-shadow: inset 3px 0 0 var(--forest); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--forest); }
.consent span { color: #2f423b; font-size: .88rem; line-height: 1.6; }
.consent strong { display: block; margin-bottom: 4px; color: var(--forest); font-size: .92rem; }
.consents[aria-invalid="true"] .consent { border-color: #9d1f1f; background: #fff8f7; }
.consents .field-error { min-height: 0; margin: 0; }

/* Pułapka na boty: pole poza ekranem, niewidoczne dla czytników. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Informacja o danych bezpośrednio nad przyciskiem. */
.bwk-submit { padding-top: 6px; }
.bwk-submit .privacy-note { margin: 0 0 22px; }
.bwk-submit .submit-button { min-width: 240px; }
.submit-button[aria-busy="true"], .status-card .button[aria-busy="true"] { opacity: .72; cursor: progress; }
.submit-button[aria-busy="true"] svg { display: none; }

.send-error { margin: 0 0 24px; padding: 18px 20px; border-left: 4px solid var(--clay-dark); background: #fff2e9; color: #73391f; }
.send-error strong { display: block; font-size: .9rem; }
.send-error p { margin: 4px 0 0; font-size: .82rem; }
.send-error a { color: #73391f; font-weight: 700; }

/* Stan „wysłano”. */
.bwk-done { padding: clamp(48px, 6vw, 72px) clamp(24px, 5vw, 56px); }
.bwk-done h2 { margin-bottom: 18px; color: var(--forest); font-size: clamp(2.4rem, 4vw, 3.6rem); }
.bwk-done > p:not(.form-kicker) { max-width: 550px; margin: 0 auto 18px; color: #4d5f59; }
.bwk-done > p strong { color: var(--forest); word-break: break-all; }
.bwk-done .done-hint { margin-bottom: 30px; font-size: .84rem; }

/* Strony z linków w mailu. */
.status-shell { display: grid; min-height: 62vh; padding: clamp(56px, 8vw, 110px) 0; place-items: center; }
.status-card { width: min(100%, 720px); padding: clamp(36px, 6vw, 72px); border: 1px solid var(--line); background: var(--paper); }
.status-card h1 { margin-bottom: 22px; color: var(--forest); font-size: clamp(3rem, 6vw, 5.2rem); line-height: .92; }
.status-card > p:not(.form-kicker):not(.status-note) { max-width: 560px; margin-bottom: 26px; color: #4d5f59; font-size: 1.02rem; line-height: 1.7; }
.status-card a:not(.button) { color: var(--forest); font-weight: 700; text-underline-offset: 3px; }
.status-note { margin: 18px 0 22px; color: var(--muted); font-size: .84rem; }
.status-card > .button + .status-note { margin-bottom: 0; }
.status-card .send-error { margin-top: 0; }
.status-card-dark { position: relative; overflow: hidden; border: 0; background: var(--forest); color: var(--paper); }
.status-card-dark::before { content: ""; position: absolute; width: 420px; height: 420px; right: -170px; bottom: -260px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 64px rgba(255,255,255,.025), 0 0 0 128px rgba(255,255,255,.018); pointer-events: none; }
.status-card-dark > * { position: relative; }
.status-card-dark h1 { color: var(--paper); }
.status-card-dark h1 em { color: #c7d7cb; font-weight: 400; }
.status-card-dark .form-kicker { color: #f1b48f; }
.status-card-dark > p:not(.form-kicker) { color: rgba(255,255,255,.82) !important; }
.status-card-dark .success-mark { margin-bottom: 28px; background: var(--paper); color: var(--forest); }
.status-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.status-actions .button-light { margin-top: 0; background: var(--paper); color: var(--forest); }
.status-actions .button-light:hover { background: #e9efe9; }

.footer-address { color: rgba(255,255,255,.72); font-size: .72rem; }

@media (max-width: 980px) {
  .bwk-layout { grid-template-columns: 1fr; }
  .bwk-steps { position: static; order: 2; }
  .bwk-stage { order: 1; }
  .bwk-steps ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; border-top: 0; }
  .bwk-steps li { border-top: 1px solid var(--line); border-bottom: 0; }
}

@media (max-width: 820px) {
  .booking-shell { width: min(calc(100% - 36px), 1180px); }
  .booking-hero-grid { grid-template-columns: 1fr; gap: 52px; }
  .bwk-facts { display: none; }
  .bwk-hero { padding: 44px 0 48px; }
  .bwk-hero .booking-hero-copy h1 { margin-bottom: 18px; }
  .bwk-hero .booking-eyebrow { margin-bottom: 16px; }
  .topics { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .bwk-hero h1 { font-size: clamp(2.9rem, 14vw, 3.7rem); }
  .bwk-hero .booking-hero-copy > p:last-child { font-size: .98rem; line-height: 1.6; }
  .bwk-workspace { padding: 0 0 64px; }
  .bwk-workspace .booking-shell { width: 100%; }
  .bwk-panel { padding: 30px 18px 34px; border-inline: 0; }
  .bwk-steps { padding: 0 18px; }
  .bwk-steps ol { grid-template-columns: 1fr; }
  .bwk-steps li { padding: 18px 0; }
  .field-grid { grid-template-columns: 1fr; gap: 18px; }
  .field-wide { grid-column: auto; }
  .form-block { padding: 26px 0; }
  .bwk-form .block-title, .bwk-form .choice-field legend.block-title { font-size: 1.4rem; }
  /* 16 px w polach: iOS nie powiększa wtedy strony przy wpisywaniu. */
  .field input, .field select { font-size: 16px; }
  .choice-field label { padding: 14px 12px; }
  .kid-row { grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 14px 12px; }
  .kid-leaf { grid-row: span 2; width: 64px; height: 72px; align-self: start; }
  .kid-leaf b { font-size: 1.8rem; }
  .kid-row .kid-name { grid-column: 2 / -1; }
  .kid-row .kid-day { grid-column: 2; }
  .kid-row .kid-month { grid-column: 3; }
  .kid-remove { grid-column: 1 / -1; justify-self: start; min-height: 44px; }
  .kid-row:first-child .kid-remove { display: none; }
  .kid-row .field-error { grid-column: 1 / -1; }
  .consent { padding: 16px 14px; gap: 12px; }
  .consent span { font-size: .9rem; }
  .bwk-submit .submit-button { width: 100%; }
  .status-shell { padding: 32px 0 56px; }
  .status-card { padding: 32px 22px; }
  .status-actions .button, .status-card > .button { width: 100%; }
  .bwk-done { padding: 48px 20px; }
}

@media (max-width: 560px) {
  .booking-nav-inner { min-height: 74px; }
  .booking-nav .brand { width: 158px; }
  .booking-back { font-size: .74rem; }
  .booking-back > span:first-child { margin-right: 7px; font-size: 1.15rem; }
  .booking-back-label { font-size: 0; }
  .booking-back-label::after { content: "Wróć"; font-size: .74rem; }
  .booking-footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .bwk-page *, .bwk-page *::before, .bwk-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
