/* Wedding booking form (draft). Loaded after styles.css.
   One card: a dark summary on the left that fills in as the couple answers,
   one step at a time on the right. Answers are mostly tap-to-choose pills. */

.bk-page { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 104px); }
.bk-head { max-width: 40rem; margin-bottom: clamp(24px, 4vw, 40px); }
.bk-head .lead { margin-top: 14px; }

.bk {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  max-width: 1080px;
}

/* ---------- Summary panel ---------- */
.bk__side { background: var(--ink); color: var(--paper); padding: clamp(24px, 3vw, 36px); }
.bk__me { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid rgba(243, 241, 238, .18); }
.bk__me img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; filter: grayscale(1); }
.bk__me b { display: block; font-size: .95rem; }
.bk__me span { display: block; font-size: .82rem; color: rgba(243, 241, 238, .65); }
.bk__side-title { font-size: 1.35rem; letter-spacing: -.02em; margin-bottom: 14px; }
.bk__sum { margin: 0; }
.bk__sum div { padding: 10px 0; border-top: 1px solid rgba(243, 241, 238, .14); }
.bk__sum dt { font-size: .78rem; color: rgba(243, 241, 238, .55); }
.bk__sum dd { margin: 2px 0 0; font-size: .95rem; line-height: 1.4; }
.bk__sum dd.is-empty { color: rgba(243, 241, 238, .35); }

/* ---------- Form ---------- */
.bk__form { padding: clamp(24px, 3.5vw, 44px); display: flex; flex-direction: column; min-height: 600px; }
.bk__progress { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 12px; }
.bk__progress span { height: 3px; border-radius: 2px; background: var(--line); transition: background-color .3s ease; }
.bk__progress span.is-done { background: var(--ink); }
.bk__count { margin: 0 0 18px; font-size: .85rem; color: var(--ink-2); }

.bk__step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 22px; align-content: start; }
.bk__step legend { padding: 0; margin-bottom: 14px; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
.js .bk__step:not(.is-on) { display: none; }
.bk__step + .bk__step { margin-top: 40px; }
.js .bk__step + .bk__step { margin-top: 0; }

.bk__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; align-items: end; }
.bk__field { display: grid; gap: 8px; margin: 0; }
.bk__field > span { font-weight: 600; font-size: .95rem; }
.bk__field em { font-style: normal; font-weight: 400; color: var(--ink-2); margin-left: 6px; font-size: .85rem; }
.bk input[type="text"], .bk input[type="email"], .bk input[type="tel"], .bk input[type="date"], .bk input[type="time"], .bk input[type="url"], .bk textarea {
  width: 100%; font: 400 1rem/1.4 var(--font); color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: border-color .2s ease;
}
.bk textarea { resize: vertical; min-height: 84px; }
.bk input:focus, .bk textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20, 20, 20, .08); }
.bk input:disabled { background: var(--paper); color: var(--ink-2); }
.bk ::placeholder { color: #A39D95; }
.bk .is-invalid input:not([type="radio"]):not([type="checkbox"]), .bk .is-invalid textarea { border-color: #9B2C2C; }
.bk__check { display: flex; align-items: center; gap: 10px; font-size: .92rem; padding-bottom: 12px; cursor: pointer; }
.bk__check input { width: 18px; height: 18px; accent-color: var(--ink); }

/* Pills: real radio buttons and checkboxes, styled */
.bk__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bk__chips label { position: relative; cursor: pointer; }
.bk__chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bk__chips span {
  display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: .92rem; line-height: 1.2; background: #fff; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.bk__chips label:hover span { border-color: var(--ink); }
.bk__chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.bk__chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.bk__field.is-invalid .bk__chips span { border-color: #9B2C2C; }

/* Back / next */
.bk__nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 32px; }
.bk__back { font: 600 .95rem/1 var(--font); color: var(--ink); background: none; border: 0; padding: 10px 0; cursor: pointer; border-bottom: 1px solid var(--line); }
.bk__back:hover { border-bottom-color: var(--ink); }
.bk__back[hidden] { display: inline-block; visibility: hidden; }
.bk .btn--solid { transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.bk .btn--solid:hover, .bk .btn--solid:focus-visible { background: #fff; color: var(--ink); border-color: var(--ink); }
.no-js [data-next], .no-js [data-back] { display: none; }
.js [data-send]:not(.is-on) { display: none; }
.bk__error { margin: 14px 0 0; font-size: .9rem; color: #9B2C2C; }

/* Thank-you */
.bk__done { grid-column: 2; padding: clamp(32px, 5vw, 64px); align-self: center; }
.bk__done h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.03em; margin-bottom: 14px; }
.bk__done p { color: var(--ink-2); max-width: 30rem; }
.bk .look__link { display: inline-block; font-weight: 600; font-size: .95rem; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }

@media (max-width: 860px) {
  .bk { grid-template-columns: 1fr; border-radius: 12px; }
  .bk__side { padding: 18px 20px; }
  .bk__me { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
  .bk__side-title, .bk__sum { display: none; }
  .bk__form { min-height: 0; padding: 22px 20px; }
  .bk__row { grid-template-columns: 1fr; }
  .bk__done { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) { .bk * { transition: none !important; } }
.bk__form[hidden], .bk__done[hidden] { display: none; }
.bk__done:focus { outline: none; }

/* ---------- Added in round 2 ---------- */
.bk-head__alt { margin: 12px 0 0; font-size: .95rem; color: var(--ink-2); }
.bk-head__alt a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat border-box; transition: background-size .45s ease; }
.bk-head__alt a:hover, .bk-head__alt a:focus-visible { background-size: 100% 1px; }
.bk__row--3 { grid-template-columns: repeat(3, 1fr); }
.bk__step legend .bk__opt { font-style: normal; font-weight: 400; font-size: .9rem; letter-spacing: 0; color: var(--ink-2); margin-left: 8px; vertical-align: middle; }
.bk__intro { margin: -8px 0 0; color: var(--ink-2); max-width: 34rem; }

/* Music profile: three sliders between two ends */
.bk__sliders { display: grid; gap: 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.bk__slider { display: grid; gap: 6px; }
.bk__slider input { width: 100%; accent-color: var(--ink); cursor: pointer; }
.bk__ends { display: flex; justify-content: space-between; gap: 12px; font-size: .85rem; }
.bk__ends i { font-style: normal; }

/* The party you picture: four cards */
.bk__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bk__cards label { position: relative; cursor: pointer; }
.bk__cards input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bk__cards span { display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; font-size: .88rem; line-height: 1.4; color: var(--ink-2); transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.bk__cards b { display: block; font-size: 1rem; color: var(--ink); margin-bottom: 4px; transition: color .2s ease; }
.bk__cards label:hover span { border-color: var(--ink); }
.bk__cards input:checked + span { background: var(--ink); border-color: var(--ink); color: rgba(243, 241, 238, .75); }
.bk__cards input:checked + span b { color: var(--paper); }
.bk__cards input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Call: weekdays for the next three weeks, then times */
.bk__cal { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.bk__days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; align-content: start; }
.bk__days .bk__wd { font-size: .75rem; color: var(--ink-2); text-align: center; padding-bottom: 4px; }
.bk__days .bk__month { grid-column: 1 / -1; font-weight: 600; font-size: .95rem; margin-bottom: 4px; }
.bk__days label, .bk__times label { position: relative; cursor: pointer; }
.bk__days input, .bk__times input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bk__days label span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; background: var(--paper); font-weight: 600; font-size: .95rem; transition: background-color .2s ease, color .2s ease; }
.bk__days label:hover span { background: var(--paper-2); }
.bk__days input:checked + span { background: var(--ink); color: var(--paper); }
.bk__days input:focus-visible + span, .bk__times input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.bk__times { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-content: start; max-height: 300px; overflow-y: auto; }
.bk__times .bk__day-title { grid-column: 1 / -1; font-weight: 600; font-size: .95rem; margin-bottom: 4px; }
.bk__times span { display: block; text-align: center; padding: 9px 6px; border: 1px solid var(--line); border-radius: 8px; font-size: .9rem; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.bk__times label:hover span { border-color: var(--ink); }
.bk__times input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.bk__hint { grid-column: 1 / -1; margin: 0; color: var(--ink-2); font-size: .9rem; }
.bk__skip { justify-self: start; font: 400 .9rem/1 var(--font); color: var(--ink-2); background: none; border: 0; padding: 4px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.bk__skip:hover { color: var(--ink); border-bottom-color: var(--ink); }
.bk__skip[hidden] { display: none; }

@media (max-width: 860px) {
  .bk__row--3 { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .bk__cards { grid-template-columns: 1fr; }
  .bk__cal { grid-template-columns: 1fr; }
  .bk__times { max-height: none; grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .bk__row--3 { grid-template-columns: 1fr; }
}
.bk__row:has(> [role="group"]) { align-items: start; }
.bk__callbox { display: grid; gap: 16px; }
.bk__callbox[hidden], [data-mailnote][hidden] { display: none; }
.bk__intro em { font-style: normal; color: var(--ink-2); margin-left: 4px; }
.bk__callbox .bk__intro, [data-mailnote] { margin: 0; }
.bk__times { max-height: 340px; }
.bk__privacy { margin: 0; font-size: .85rem; color: var(--ink-2); }
.bk__privacy a { color: var(--ink); }

/* Hover line on text links: the dark line is drawn as a layer above the thin grey line
   (as a border, the grey line covered it, so the hover could not be seen) */
.bk-head__alt a { border-bottom: 0; padding-bottom: 4px; transition: background-size .45s ease;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat, linear-gradient(var(--line), var(--line)) 0 100% / 100% 1px no-repeat; }
.bk-head__alt a:hover, .bk-head__alt a:focus-visible { background-size: 100% 2px, 100% 1px; }
