/* ==========================================================================
   EditGuys — the booking page (book.html, Pedro 27 Oct)
   Who → about you (one question at a time) → your month → Calendly.
   book.js drives the steps; everything here is layout and the states it sets.
   ========================================================================== */

.book { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px); }
.book__wrap { max-width: 980px; margin-inline: auto; padding-inline: 16px; }
.book__steps { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 0 0 26px; padding: 0; }
.book__steps li {
  list-style: none; padding: 5px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white);
  font: 800 13px/1.2 var(--font-body); font-stretch: 112%; color: var(--ink-soft);
}
.book__steps li.is-on { background: var(--ink); color: var(--paper); }
.book__steps li.is-done { background: var(--green-light); color: var(--ink); }
.book__head {
  text-align: center; text-wrap: balance;
  font-family: var(--font-poster); font-weight: 400; font-size: clamp(34px, 4.6vw, 56px); line-height: 1; letter-spacing: -.02em;
}
.book__sub { margin: 14px auto 0; max-width: 34em; text-align: center; font-size: 18px; line-height: 1.5; color: var(--ink-soft); }
.book__card {
  margin-top: clamp(28px, 4vw, 40px); padding: clamp(22px, 4vw, 40px); background: var(--white);
  border: 4px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink);
}
.book__nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; }
.book__back { font: 700 15px var(--font-body); color: var(--ink-soft); text-decoration: underline; background: none; border: 0; cursor: pointer; }
.book__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.book__chip {
  padding: 9px 16px; border: 3px solid var(--ink); border-radius: 999px; background: var(--paper); cursor: pointer;
  font: 800 15px/1.2 var(--font-body); color: var(--ink); box-shadow: 2px 2px 0 var(--ink);
}
.book__chip[aria-pressed="true"] { background: var(--gold); }
.book__chip[aria-pressed="true"]::before { content: "✓ "; }

/* 1 · who */
.book__who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: clamp(32px, 5vw, 48px); }
.book__pick {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 260px;
  padding: 28px 28px 24px; text-align: left; cursor: pointer; overflow: hidden;
  background: var(--white); border: 4px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink);
  font: inherit; color: var(--ink); transition: transform .15s, box-shadow .15s;
}
.book__pick:hover { transform: translate(2px, 2px); box-shadow: 4px 4px 0 var(--ink); }
.book__pick--gold { background: var(--gold); }
.book__pick span { position: relative; z-index: 1; max-width: 9em; font: 800 clamp(24px, 2.6vw, 30px)/1.1 var(--font-body); letter-spacing: -.02em; }
.book__pick b { position: relative; z-index: 1; font: 800 17px var(--font-body); color: var(--red); }
.book__pick--gold b { color: var(--ink); }
.book__pick img { position: absolute; right: -10px; bottom: -40px; height: 230px; width: auto; }
.book__pick--gold img { transform: scaleX(-1); }   /* Pedro faces the card too, like Tim (Pedro, 27 Oct) */

/* 2 · about you: one question fills the card, then makes way for the next
   (Pedro, 27 Oct). book.js swaps the question and sets .is-out / .is-in */
.book__ask { max-width: 760px; margin-inline: auto; }
.book__ask-top { display: flex; align-items: center; gap: 14px; }
.book__count { flex: none; font: 800 13px/1.2 var(--font-body); font-stretch: 112%; color: var(--ink-soft); }
.book__bar { flex: 1; height: 8px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); overflow: hidden; }
.book__bar i { display: block; height: 100%; background: var(--gold); transition: width .35s; }
.book__ask-stage { min-height: 300px; padding-top: 30px; transition: opacity .22s, transform .22s; }
.book__ask-stage.is-out { opacity: 0; transform: translateX(-28px); }
.book__ask-stage.is-in { opacity: 0; transform: translateX(28px); transition: none; }
.book__q { font: 800 clamp(24px, 3vw, 32px)/1.15 var(--font-body); letter-spacing: -.02em; text-wrap: balance; outline: none; }
.book__hint { margin-top: 8px; font: 600 15px var(--font-body); color: var(--ink-soft); }
.book__ask .book__chips { gap: 12px; margin-top: 24px; }
.book__ask .book__chip { padding: 12px 20px; font-size: 17px; }
.book__other { display: block; width: 100%; max-width: 440px; margin-top: 18px; padding: 12px 16px; border: 3px solid var(--ink); border-radius: 12px;
  background: var(--paper); font: 600 17px var(--font-body); color: var(--ink); }
.book__other:focus { outline: 3px solid var(--gold); outline-offset: 2px; }
#askNext[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .book__ask-stage, .book__ask-stage.is-out, .book__ask-stage.is-in { transform: none; transition: opacity .15s; }
}

/* 3 · your month: what each format is and a counter; prices only in the
   total (Pedro, 27 Oct) */
.book__rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.book__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 14px 14px 14px 18px; border: 3px solid var(--ink); border-radius: 14px; background: var(--paper);
}
.book__row.is-on { background: #fbf0d4; }
.book__row b { display: block; font: 800 17px/1.2 var(--font-body); }
.book__row small { display: block; margin-top: 3px; font: 500 14px/1.35 var(--font-body); color: var(--ink-soft); }
.book__step { display: flex; align-items: center; gap: 6px; }
.book__step button {
  width: 34px; height: 34px; border: 3px solid var(--ink); border-radius: 50%; background: var(--white); cursor: pointer;
  font: 800 18px/1 var(--font-body); color: var(--ink);
}
.book__step button:disabled { opacity: .35; cursor: default; }
.book__step output { min-width: 26px; text-align: center; font: 800 17px var(--font-body); }
.book__total {
  display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap;
  margin-top: 24px; padding: 22px 26px; border: 4px solid var(--ink); border-radius: 18px; background: var(--green); color: var(--paper);
}
.book__total span { font: 800 14px/1.2 var(--font-body); font-stretch: 112%; opacity: .85; }
.book__total strong { display: block; margin-top: 6px; font-family: var(--font-poster); font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1; color: var(--gold); }
.book__total p { max-width: 22em; font-size: 14px; line-height: 1.45; opacity: .85; }
.book__budget { margin-top: 26px; }
.book__budget h3 { font: 800 19px/1.3 var(--font-body); letter-spacing: -.01em; }

/* 4 · Calendly */
.book__chosen { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.book__tag { padding: 6px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--gold); font: 800 14px/1.2 var(--font-body); font-stretch: 112%; }
.book__tag--month { background: var(--green-light); }
.book__cal { margin-top: clamp(24px, 4vw, 36px); overflow: hidden; background: var(--white); border: 4px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); }
.book__cal .calendly-inline-widget { min-width: 320px; height: 700px; }

@media (max-width: 760px) {
  .book__rows { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .book__steps { gap: 5px; }
  .book__steps li { padding: 4px 8px; font-size: 11.5px; }
  .book__who { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .book__pick { min-height: 170px; gap: 24px; }
  .book__pick img { height: 170px; bottom: -30px; }
  .book__card { padding: 20px 16px; }
  .book__ask-stage { min-height: 340px; padding-top: 22px; }
  .book__ask .book__chip { padding: 11px 16px; font-size: 16px; }
  .book__total { position: sticky; bottom: 10px; z-index: 2; padding: 14px 18px; box-shadow: 0 -10px 0 var(--white); }
  .book__total strong { font-size: 30px; }
  .book__total p { font-size: 12.5px; }
  .book__cal { margin-inline: -8px; border-radius: 16px; }
  .book__cal .calendly-inline-widget { height: 1000px; }
}
