/* CCA Table Reservations: all rules are scoped under .cca-res so the theme is left alone.
   Change the colors below to match the site. Fonts are inherited from the theme. */
.cca-res {
  --cca-ink: #1d252b;
  --cca-muted: #5a6670;
  --cca-line: #cfd6dc;
  --cca-accent: #2f5d7c;
  --cca-accent-dark: #234860;
  --cca-stub: #f1f4f6;
  --cca-error: #a4262c;
  --cca-warn-bg: #fff6d6;
  --cca-warn-line: #d9b441;
  --cca-sticky-top: 24px;   /* raise this if your Beaver Builder header is sticky */
  color: var(--cca-ink);
  font-family: inherit;
  line-height: 1.5;
  max-width: 1100px;
  margin: 0 auto;
}
.cca-res *, .cca-res *::before, .cca-res *::after { box-sizing: border-box; }
.cca-res [hidden] { display: none !important; }

.cca-res__form { display: grid; gap: 32px; }
@media (min-width: 960px) {
  .cca-res__form { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
  .cca-ticket { position: sticky; top: var(--cca-sticky-top); }
}

/* Sections */
.cca-res .cca-sec { border: 0; margin: 0 0 36px; padding: 0; min-width: 0; }
.cca-res .cca-sec legend {
  font-size: 1.35em; font-weight: 700; line-height: 1.2; padding: 0 0 10px; margin: 0 0 16px;
  width: 100%; border-bottom: 2px solid var(--cca-ink);
}
.cca-res .cca-help { color: var(--cca-muted); margin: 0 0 16px; font-size: .95em; }
.cca-res h3 { font-size: 1.05em; margin: 0 0 8px; }

/* Fields */
.cca-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .cca-grid { grid-template-columns: 1fr 1fr; }
  .cca-grid .cca-f--wide { grid-column: 1 / -1; }
}
.cca-f { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; }
.cca-grid .cca-f { margin: 0; }
.cca-f--short { max-width: 160px; }
.cca-res label, .cca-res .cca-lbl { font-weight: 600; font-size: .95em; }
.cca-res .cca-opt { font-weight: 400; color: var(--cca-muted); }
.cca-res small { color: var(--cca-muted); font-size: .85em; font-weight: 400; }

.cca-res input[type="text"], .cca-res input[type="email"], .cca-res input[type="tel"],
.cca-res input[type="number"], .cca-res textarea {
  width: 100%; min-height: 46px; padding: 9px 12px; font: inherit; color: inherit;
  background: #fff; border: 1px solid var(--cca-line); border-radius: 4px; box-shadow: none;
}
.cca-res select {
  width: 100%; min-height: 46px; padding: 9px 12px; font: inherit; color: inherit;
  background: #fff; border: 1px solid var(--cca-line); border-radius: 4px; box-shadow: none;
}
.cca-res textarea { min-height: 90px; resize: vertical; }
.cca-res input:disabled { background: var(--cca-stub); }
.cca-res input:focus-visible, .cca-res select:focus-visible, .cca-res textarea:focus-visible, .cca-res button:focus-visible {
  outline: 3px solid var(--cca-accent); outline-offset: 2px; border-color: var(--cca-accent);
}

/* Table rows with steppers */
.cca-tbl {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--cca-line);
}
.cca-tbl__what { display: flex; flex-direction: column; gap: 2px; }
.cca-step { display: flex; align-items: center; gap: 6px; flex: none; }
.cca-step input[type="number"] { width: 64px; text-align: center; -moz-appearance: textfield; }
.cca-step input::-webkit-outer-spin-button, .cca-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cca-step button {
  width: 46px; height: 46px; padding: 0; font-size: 1.4em; line-height: 1; cursor: pointer;
  color: var(--cca-ink); background: #fff; border: 1px solid var(--cca-ink); border-radius: 4px;
}
.cca-step button:hover { background: var(--cca-ink); color: #fff; }

/* Checks and radios */
.cca-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400 !important; cursor: pointer; }
.cca-check input { margin-top: .35em; width: 18px; height: 18px; flex: none; }
.cca-check--block { margin: 0 0 20px; }
.cca-elec { margin-top: 18px; }
.cca-radios { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 0 28px; }
.cca-radios--row { flex-direction: row; gap: 24px; margin-left: 0; }

/* Notes */
.cca-note { padding: 14px 16px; border-left: 4px solid var(--cca-line); background: var(--cca-stub); margin: 16px 0; }
.cca-note p { margin: 0 0 12px; }
.cca-note--warn { background: var(--cca-warn-bg); border-left-color: var(--cca-warn-line); }
.cca-cert { border: 1px solid var(--cca-line); padding: 16px; margin: 0 0 20px; border-radius: 4px; }
.cca-cert p { margin: 0 0 12px; font-size: .95em; }

/* Order summary: styled as a receipt stub, the one distinctive element on the page */
.cca-ticket {
  background: var(--cca-stub); border: 1px solid var(--cca-line); border-top: 6px solid var(--cca-accent);
  border-radius: 2px 2px 0 0; padding: 22px 22px 20px;
}
.cca-ticket h2 { font-size: 1.2em; margin: 0 0 14px; }
.cca-lines { list-style: none; margin: 0; padding: 0 0 14px; border-bottom: 2px dashed var(--cca-line); }
.cca-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-variant-numeric: tabular-nums; }
.cca-lines__empty { color: var(--cca-muted); }
.cca-badges-line { margin: 10px 0 0; color: var(--cca-muted); font-size: .9em; min-height: 1.3em; }
.cca-total { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 18px; }
.cca-total strong { font-size: 2em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cca-pay {
  display: block; width: 100%; min-height: 52px; padding: 12px 16px; font: inherit; font-weight: 700; cursor: pointer;
  color: #fff; background: var(--cca-accent); border: 0; border-radius: 4px;
}
.cca-pay:hover:not(:disabled) { background: var(--cca-accent-dark); }
.cca-pay:disabled { background: #98a4ad; cursor: not-allowed; }
.cca-fine { color: var(--cca-muted); font-size: .85em; margin: 14px 0 0; }
.cca-err { background: #fdeceb; border-left: 4px solid var(--cca-error); color: var(--cca-error); padding: 10px 12px; margin: 0 0 14px; font-size: .92em; }
.cca-err p { margin: 0 0 4px; font-weight: 600; }
.cca-err ul { margin: 0; padding-left: 18px; }

/* Honeypot: off-screen, not display:none, so simple bots still fill it */
.cca-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cca-res--done { padding: 8px 0 24px; }
.cca-res--done h2 { margin-top: 0; }

.cca-rules-link { margin: 0; padding-top: 16px; border-top: 1px solid var(--cca-line); font-weight: 600; text-align: center; }
.cca-rules-link a { color: var(--cca-accent); text-decoration: underline; text-underline-offset: 3px; }

.cca-questions { margin: 20px 0 0; padding: 18px 20px; background: var(--cca-stub); border: 1px solid var(--cca-line); border-radius: 4px; text-align: center; }
.cca-questions a { color: var(--cca-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Header and intro */
.cca-res .cca-head { text-align: center; margin: 0 0 24px; }
.cca-res .cca-head__title {
  margin: 0; font-family: inherit; font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.2rem); font-weight: 700;
  line-height: 1.25; letter-spacing: 0; text-transform: none; color: var(--cca-ink);
}
.cca-res .cca-intro { text-align: left; margin: 0 0 32px; }
.cca-res .cca-intro p { margin: 0; }
.cca-res .cca-intro a { color: var(--cca-accent); text-decoration: underline; text-underline-offset: 3px; }
.cca-res .cca-u { text-decoration: underline; text-underline-offset: 3px; }
