/* Reusable pieces shared across multiple pages/sections: buttons, the
   payment modal, generic cards, form fields, the availability grid, and
   the FAQ accordion. Section-specific layout lives in pages.css. */

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-4px) scale(1.04);
  box-shadow: var(--shadow-lg);
}

/* Flat and greyed: a disabled button that still lifts under the cursor reads
   as broken rather than as waiting on something. */
.btn:disabled {
  opacity: 0.45;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 10px 24px -8px rgba(var(--gold-rgb), 0.55);
}

.btn-primary:hover {
  background: var(--gold-deep);
  box-shadow: 0 20px 36px -10px rgba(var(--gold-rgb), 0.6);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--royal);
  border: 2px solid var(--royal);
}

.btn-outline:hover {
  background: var(--royal);
  color: #fff;
}

.btn-block {
  width: 100%;
}

/* ---------- generic card ---------- */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s;
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
}

/* Placeholder shown in place of a photo that hasn't been supplied yet. */
.img-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
  border: 1.5px dashed rgba(91, 155, 213, 0.3);
  border-radius: var(--radius-xl);
  background: var(--mist);
  color: rgba(91, 155, 213, 0.7);
}

.img-ph svg {
  opacity: 0.7;
}

.img-ph span {
  max-width: 220px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- badges ---------- */

.badge-pill {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.badge-gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 10px 24px -8px rgba(var(--gold-rgb), 0.55);
}

.badge-white {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--royal);
  border: 1.5px solid var(--royal);
  box-shadow: 0 10px 24px -8px rgba(var(--royal-rgb), 0.3);
}

.badge-soon svg {
  flex-shrink: 0;
}

/* ---------- payment modal ---------- */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(var(--ink-rgb), 0.6);
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 34px 30px 28px;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-xl);
  animation: fade-up 0.3s var(--ease-out-expo) both;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--ink-60);
  transition: 0.15s;
}

.modal-close:hover {
  background: var(--line);
}

.auth-fine {
  margin-top: 20px;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  color: var(--ink-40);
}

.pay-plan-summary {
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.pay-plan-summary .plabel {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-45);
}

.pay-plan-summary .pname {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
  color: var(--ink);
}

.pay-plan-summary .pprice {
  margin-top: 2px;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 15px;
  color: var(--royal);
}

.pay-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 22px;
  border-radius: var(--radius-pill);
  background: var(--mist);
}

.pay-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 4px;
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 12.5px;
  text-align: center;
  color: var(--ink-50);
  transition: 0.15s;
}

.pay-tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 10px -4px rgba(var(--ink-rgb), 0.25);
}

.pay-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.pay-qr-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.pay-qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pay-handle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--mist);
}

.pay-handle-row span {
  flex: 1;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
  word-break: break-all;
}

.pay-copy-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 10.5px;
  text-transform: uppercase;
  color: var(--royal);
  transition: 0.15s;
}

.pay-copy-btn:hover {
  border-color: var(--royal);
}

.pay-note {
  margin-top: 18px;
  font-size: 12.5px;
  line-height: 1.6;
  text-align: center;
  color: var(--ink-55);
}

.pay-continue-btn {
  margin-top: 18px;
}

/* ---------- form fields ---------- */

.field label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-60);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--royal);
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

/* ---------- session picker ----------
   Parent-facing, on the booking form. Pick one dated weekend session:
   a shape banner, a weekend strip, a grid of times, and a summary that
   restates the booking in words. See src/js/features/session-picker.js. */

/* The shape banner. Says "one session" before anything is tapped — the fix
   for a grid that couldn't tell a single booking from a standing weekly one. */
.session-shape {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--mist);
}

.session-shape-n {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--royal);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 13px;
}

.session-shape-t {
  display: block;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 13.5px;
  color: var(--ink);
}

.session-shape-d {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-65);
}

.session-tz {
  margin: 12px 0 6px;
  font-size: 11px;
  color: var(--ink-40);
  text-align: right;
}

/* Arrows flank the weekends rather than overlapping them, so nothing a parent
   might tap ever sits underneath a control. */
.session-carousel {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin-bottom: 10px;
}

.session-arrow {
  flex: 0 0 auto;
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--ink-60);
  transition: 0.15s;
}

.session-arrow:hover:not(:disabled) {
  border-color: var(--royal-light);
  color: var(--royal);
}

.session-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.session-arrow[hidden] {
  display: none;
}

/* Pages sideways rather than dividing the row further: the picker offers eight
   weekends, and eight equal columns would each be too narrow to read a date in.
   The scrollbar is hidden because the arrows are the control — swiping still
   works, and snapping stops a swipe leaving a weekend half off-screen. */
.session-strip {
  flex: 1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.session-strip::-webkit-scrollbar {
  display: none;
}

.session-wk {
  /* Exactly three in view, so one arrow tap advances by a visible third of the
     strip instead of some fraction of a card. */
  flex: 0 0 calc((100% - 16px) / 3);
  scroll-snap-align: start;
  padding: 9px 6px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  text-align: center;
  transition: 0.15s;
}

.session-wk:hover {
  border-color: var(--royal-light);
}

.session-wk.on {
  border-color: var(--royal);
  background: var(--royal);
}

.session-wk-lbl {
  display: block;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-45);
}

.session-wk-dt {
  display: block;
  margin-top: 2px;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
}

.session-wk.on .session-wk-lbl {
  color: rgba(255, 255, 255, 0.75);
}

.session-wk.on .session-wk-dt {
  color: #fff;
}

.session-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.session-colhead {
  padding-bottom: 2px;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-align: center;
}

.session-cell {
  padding: 14px 8px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  text-align: center;
  transition: 0.18s var(--ease-out-expo);
}

.session-cell:hover {
  border-color: var(--royal-light);
  transform: translateY(-1px);
}

.session-cell.on {
  border-color: var(--royal);
  border-width: 2px;
  background: rgba(var(--royal-rgb), 0.05);
  box-shadow: 0 10px 24px -12px rgba(var(--royal-rgb), 0.55);
}

/* A slot inside the lead time. Shown rather than removed, so the remaining
   cells stay where the eye expects them. */
.session-cell.is-gone {
  border-style: dashed;
  background: var(--mist);
  cursor: default;
  opacity: 0.55;
}

.session-cell-t {
  display: block;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 13.5px;
  color: var(--ink);
}

.session-cell-p {
  display: block;
  margin-top: 3px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-50);
}

/* Restates the booking in words. Present even when empty, so choosing a
   time doesn't push the rest of the form down the page. */
.session-summary {
  margin-top: 12px;
  padding: 13px 15px;
  border: 1.5px solid var(--royal);
  border-radius: var(--radius-md);
  background: rgba(var(--royal-rgb), 0.05);
}

.session-summary.is-empty {
  border-color: var(--line);
  background: var(--mist);
}

.session-summary-lb {
  display: block;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--royal);
}

.session-summary.is-empty .session-summary-lb {
  color: var(--ink-45);
}

.session-summary-val {
  display: block;
  margin-top: 3px;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
}

.session-summary.is-empty .session-summary-val {
  color: var(--ink-35);
}

.session-summary-note {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-60);
}

/* The picker mounts inside a `.field` fieldset, so `.field label` and
   `.field input` above both apply here. Left alone they turn this row into a
   full-width uppercase block and stretch the checkbox across it. The element
   qualifiers are what make these win — plain `.session-flex` loses the tie. */
label.session-flex {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 0;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  transition: 0.15s;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink);
}

.session-flex:hover {
  border-color: var(--royal-light);
}

.session-flex.on {
  border-color: var(--royal);
  background: rgba(var(--royal-rgb), 0.05);
}

.session-flex input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--royal);
  cursor: pointer;
}

.session-flex-t {
  display: block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--ink);
}

.session-flex-d {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-60);
}

.session-escape {
  margin: 10px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-50);
}

@media (max-width: 420px) {
  .session-wk-dt {
    font-size: 12.5px;
  }

  .session-cell-t {
    font-size: 12px;
  }
}

/* ---------- availability grid ----------
   The recurring weekly Sat/Sun grid, now used only by the internal coach
   portal. Parents book dated sessions through the picker above; a coach
   declares a weekly pattern here. */

.avail-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.avail-grid {
  display: grid;
  grid-template-columns: 110px repeat(2, minmax(90px, 1fr));
  gap: 6px;
  max-width: 340px;
}

.avail-daylabel {
  padding: 6px 2px;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-align: center;
}

.avail-slotlabel {
  display: flex;
  align-items: center;
  padding: 2px 6px 2px 0;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  color: var(--ink-60);
}

.avail-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: 0.15s;
}

.avail-cell:hover {
  border-color: var(--royal-light);
}

.avail-cell.on {
  border-color: var(--royal);
  background: var(--royal);
  box-shadow: 0 6px 14px -6px rgba(var(--royal-rgb), 0.5);
}

.avail-cell svg {
  display: none;
  color: #fff;
}

.avail-cell.on svg {
  display: block;
}

.avail-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--ink-50);
}

.avail-legend .swatch {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--royal);
}

/* ---------- FAQ accordion ---------- */

.faq-wrap {
  max-width: 720px;
  margin: 44px auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #fff;
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  text-align: left;
}

.faq-q h3 {
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0;
}

.faq-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(var(--royal-rgb), 0.1);
  color: var(--royal);
  transition: transform 0.25s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-item.open .faq-a {
  max-height: 200px;
}

.faq-a-inner {
  padding: 0 24px 20px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-60);
}

/* ---------- side info card (contact page) ---------- */

.side-card {
  padding: 26px;
  margin-bottom: 22px;
}

.side-card h3 {
  font-size: 17px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-65);
}

.info-row .icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(var(--royal-rgb), 0.1);
  color: var(--royal);
}
