/* Mobile Racket — booking page (cards + order summary). Mobile-first. */
.book-layout { display: grid; gap: 1.25rem; max-width: 1080px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 960px) {
  .book-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 1.75rem; padding: 0 1.35rem; }
  .summary-col { position: sticky; top: 84px; }
}
.book-step { border: 0; padding: 0; margin: 0 0 1.6rem; min-width: 0; }
.book-step > legend {
  display: flex; align-items: center; gap: 0.6rem; padding: 0; margin-bottom: 0.75rem;
  font-family: Outfit, sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--ink);
}
.step-num {
  width: 30px; height: 30px; border-radius: 999px; flex: 0 0 30px;
  display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 0.9rem;
}
.cards { display: grid; gap: 0.7rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .cards.two { grid-template-columns: 1fr 1fr; } .cards.three { grid-template-columns: 1fr 1fr; } }
@media (min-width: 760px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }

.card-opt { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.card-opt > input[type="radio"], .card-opt > input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.card-opt > input:disabled + .card-body { opacity: 0.55; cursor: not-allowed; background: var(--cream-2); }
.card-body {
  display: flex; flex-direction: column; gap: 0.3rem; height: 100%; min-height: 76px;
  background: var(--white); border: 2px solid var(--line-strong); border-radius: 14px;
  padding: 0.95rem 3rem 0.95rem 1rem; transition: border-color .15s, box-shadow .15s, background .15s;
}
.card-opt:hover .card-body { border-color: var(--navy); }
.card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; }
.card-name { font-family: Outfit, sans-serif; font-weight: 700; font-size: 1.08rem; color: var(--ink); line-height: 1.25; }
.card-price {
  font-family: Outfit, sans-serif; font-weight: 800; font-size: 1.05rem; color: var(--green);
  white-space: nowrap;
}
.card-price.muted { color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.card-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.45; }
.card-desc strong { color: var(--ink); }
.card-check {
  position: absolute; top: 0.9rem; right: 0.9rem; width: 26px; height: 26px; border-radius: 999px;
  border: 2px solid var(--line-strong); background: var(--white); display: grid; place-items: center;
  color: transparent; font-size: 0.85rem; font-weight: 800; transition: all .15s;
}
.card-opt > input:checked + .card-body {
  border-color: var(--green); background: var(--green-soft);
  box-shadow: 0 0 0 3px rgba(0, 112, 74, 0.22);
}
.card-opt > input:checked + .card-body .card-check { background: var(--green); border-color: var(--green); color: #fff; }
.card-opt > input:focus-visible + .card-body { outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 6px var(--gold); }
.card-tag {
  align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--gold); color: var(--navy); border-radius: 999px; padding: 0.12rem 0.55rem;
}
.card-tag.alt { background: var(--cream-2); color: var(--muted); border: 1px solid var(--line); }
.card-opt .tension-input { margin-top: 0.45rem; max-width: 9rem; }
.card-opt .tension-input[disabled] { opacity: 0.55; }

.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1rem; }
@media (min-width: 700px) { .contact-card { padding: 1.4rem 1.3rem; } }
.book-form input[type="text"], .book-form input[type="email"], .book-form input[type="tel"], .book-form input[type="number"], .book-form textarea {
  font-size: 16px; min-height: 48px;
}
.book-form .attest { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0.85rem 0.9rem; }
.book-form .attest input { width: 22px; height: 22px; flex: 0 0 22px; accent-color: var(--green); }

.summary {
  background: var(--paper); border: 2px solid var(--navy); border-radius: 18px; padding: 1.2rem 1.1rem;
  box-shadow: var(--shadow);
}
.summary h2 { font-family: Outfit, sans-serif; font-size: 1.25rem; margin-bottom: 0.7rem; }
.sum-lines { list-style: none; margin: 0; padding: 0; }
.sum-lines li { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px dashed var(--line); font-size: 0.95rem; }
.sum-lines li span:last-child { font-weight: 700; white-space: nowrap; color: var(--ink); }
.sum-lines li.sub { color: var(--muted); font-size: 0.88rem; }
.sum-lines li.sub span:last-child { font-weight: 500; color: var(--muted); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 0.8rem; font-family: Outfit, sans-serif; }
.sum-total .lbl { font-weight: 700; font-size: 1.05rem; }
.sum-total .amt { font-weight: 800; font-size: 1.9rem; color: var(--navy); }
.sum-note { font-size: 0.84rem; color: var(--muted); margin-top: 0.3rem; }
.btn-stripe {
  width: 100%; margin-top: 1rem; min-height: 56px; font-size: 1.08rem; font-weight: 800; border-radius: 12px;
  background: var(--green); color: #fff !important; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.btn-stripe:hover { background: var(--green-light); }
.btn-stripe[disabled] { background: #E2E6EB; color: #4A5563 !important; cursor: not-allowed; }
.pay-status { margin-top: 0.7rem; font-size: 0.9rem; border-radius: 10px; padding: 0.7rem 0.8rem; display: none; }
.pay-status.show { display: block; }
.pay-status.info { background: #FBFFE0; border: 1px solid #C9DB4A; color: var(--navy); }
.pay-status.err { background: #F8E8E8; border: 1px solid #E2B4B4; color: #5C2020; }
.alt-actions { display: grid; gap: 0.55rem; margin-top: 1rem; }
.alt-actions .btn { width: 100%; }
.secure-note { display: flex; gap: 0.4rem; align-items: center; justify-content: center; font-size: 0.8rem; color: var(--muted); margin-top: 0.55rem; }

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
}
.mobile-bar .mb-total { font-family: Outfit, sans-serif; line-height: 1.1; }
.mobile-bar .mb-total small { display: block; font-size: 0.72rem; color: var(--muted); font-family: Inter, sans-serif; }
.mobile-bar .mb-total strong { font-size: 1.35rem; color: var(--navy); }
.mobile-bar .btn { min-height: 48px; padding: 0.7rem 1.1rem; }
@media (min-width: 960px) { .mobile-bar { display: none; } }
@media (max-width: 959px) { body.has-mobile-bar footer { padding-bottom: 5.5rem; } }
.book-hints { margin-top: 0.6rem; }

.card-featured .card-body { border-color: var(--navy); }
.card-select { margin-top: 0.45rem; min-height: 48px; font-size: 16px; border: 1.5px solid var(--line-strong); border-radius: 8px; background: var(--white); color: var(--ink); padding: 0.55rem 0.7rem; width: 100%; max-width: 16rem; }
.card-opt > input:not(:checked) + .card-body .card-select { opacity: 0.75; }

/* Member code + extras (Oct 6 pricing) */
.code-status.ok { color: var(--green, #0D5C2E); font-weight: 600; }
.code-status.bad { color: #9b1c1c; font-weight: 600; }
#extra-rackets { min-height: 48px; font-size: 16px; border: 1.5px solid var(--line-strong); border-radius: 8px; padding: 0.55rem 0.7rem; width: 100%; max-width: 8rem; }
#member-code { min-height: 48px; font-size: 16px; letter-spacing: 0.04em; text-transform: uppercase; }
