/* ===========================
   Hot Shots Day Camps
   Loaded AFTER ../styles.css — only adds/overrides what the
   landing stylesheet doesn't cover. Light theme, Inter, same palette.
   =========================== */

:root {
  /* Accessible-on-white variants of the brand palette (>= 4.5:1).
     Never use --color-primary (#ffbc00) as text on white. */
  --camps-blue-dark: #086ca5;
  --camps-green-dark: #166b2f;
  --camps-red-dark: #b3261e;
  --camps-gray-text: #595959;
  --camps-input-border: #767676;
}

[hidden] {
  display: none !important;
}

/* ===========================
   Header / nav — grass-textured header with the badge floating on it,
   matching the landing page; account link pinned to the corner.
   =========================== */

/* Non-sticky on the camps pages: these are long registration forms, and
   (unlike the landing) they don't load the scroll-shrink script, so a sticky
   header would follow the whole form down at full size. */
.camps-page header {
  position: static;
}

.camps-nav {
  position: relative;
}

.camps-nav .camps-account-link {
  position: absolute;
  top: 0.5rem;
  right: var(--spacing-md);
  display: inline-block;
  background: var(--color-primary);
  color: #1a1a1a;
  font-weight: 700;
  text-decoration: none;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: background-color 0.15s, box-shadow 0.15s;
}

.camps-nav .camps-account-link:hover,
.camps-nav .camps-account-link:focus {
  background: var(--color-primary-light);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

/* ===========================
   Page layout
   =========================== */

.camps-main {
  padding: 0;
}

/* Hero CTA — yellow brand button on the blue hero */
.hero-cta-row {
  margin-top: var(--spacing-md);
}

.hero-cta {
  display: inline-block;
  background: var(--color-primary);
  color: #1a1a1a;
  font-weight: 800;
  font-size: var(--font-size-lg);
  padding: 0.9rem 2.2rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s, box-shadow 0.15s;
}

.hero-cta:hover,
.hero-cta:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  .hero-cta,
  .hero-cta:hover,
  .hero-cta:focus {
    transform: none;
    transition: none;
  }
}

/* Registration band — light gray like the landing features section,
   with the stepper + white step cards on top. */
.camps-register {
  background: var(--color-background-alt);
  padding: var(--spacing-2xl) 0;
}

.camps-register .section-title {
  margin-bottom: var(--spacing-lg);
}

.step-panel {
  background: #ffffff;
  border-radius: 12px;
  border-top: 4px solid var(--color-accent);
  box-shadow: 0 4px 16px rgba(6, 42, 69, 0.08);
  padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-xl);
  max-width: 56rem;
  margin: 0 auto;
}

.step-panel .step-heading:first-child,
.step-panel .step-heading {
  margin-top: 0;
}

.step-heading,
.account-section h2 {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  margin: var(--spacing-md) 0 var(--spacing-sm);
}

.step-panel h3,
.account-section h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin: var(--spacing-md) 0 var(--spacing-xs);
}

.step-help,
.camp-description {
  color: var(--color-text-light);
  max-width: 46rem;
}

.camp-description {
  white-space: pre-line;
  margin-bottom: var(--spacing-sm);
}

.camp-facts {
  list-style: none;
  padding: 0;
  margin: var(--spacing-sm) 0;
}

.camp-facts li {
  padding: 0.25rem 0;
}

.loading-text {
  color: var(--camps-gray-text);
}

.account-section {
  margin-bottom: var(--spacing-2xl);
}

.account-section h2 {
  border-bottom: 3px solid var(--color-primary);
  padding-bottom: 0.35rem;
}

/* ===========================
   Buttons
   =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--camps-blue-dark);
  color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--color-accent);
}

.btn-secondary {
  background: #ffffff;
  color: var(--color-text);
  border-color: var(--camps-input-border);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--color-accent);
  background: var(--color-background-alt);
}

.btn-link {
  background: none;
  border: none;
  padding: 0.2rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  color: var(--camps-blue-dark);
  text-decoration: underline;
  cursor: pointer;
}

.btn-link:hover {
  color: var(--color-accent);
}

.btn-link-danger {
  color: var(--camps-red-dark);
}

.step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

/* ===========================
   Stepper indicator
   =========================== */

.stepper {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.1rem;
  padding: 0;
  margin: 0 auto var(--spacing-lg);
  counter-reset: step;
  font-size: var(--font-size-sm);
  max-width: 56rem;
}

.stepper li {
  display: flex;
  align-items: center;
  color: var(--camps-gray-text);
}

.stepper li::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  border: 2px solid currentColor;
  margin-right: 0.4rem;
  font-weight: 700;
  flex-shrink: 0;
}

.stepper li[aria-current="step"] {
  color: var(--color-text);
  font-weight: 700;
}

.stepper li[aria-current="step"]::before {
  background: var(--color-primary);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.stepper li.done::before {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
}

/* The step breadcrumb only reads as a clean linear progress bar when it fits
   on one line (~768px+). Below that it wraps and clutters, and the per-step
   headings already convey where you are — so hide it on phones. */
@media (max-width: 767px) {
  .stepper-nav {
    display: none;
  }
}

/* ===========================
   Notices & status text
   =========================== */

.notice {
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius);
  border: 1px solid;
  margin: var(--spacing-sm) 0;
}

.notice-info {
  background: #eaf4fb;
  border-color: #9ecbe8;
  color: #0b3a56;
}

.notice-error {
  background: #fdecea;
  border-color: #f0b4ae;
  color: var(--camps-red-dark);
}

.notice-success {
  background: #e9f6ec;
  border-color: #a9d8b4;
  color: var(--camps-green-dark);
}

.form-error {
  color: var(--camps-red-dark);
  font-weight: 600;
  margin: 0.5rem 0 0;
  min-height: 1.2em;
}

.form-status {
  color: var(--camps-green-dark);
  font-weight: 600;
  margin: 0.5rem 0 0;
  min-height: 1.2em;
}

/* ===========================
   Forms
   =========================== */

.field {
  margin-bottom: var(--spacing-sm);
}

.field label,
.field-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="tel"],
.field input[type="date"],
.field textarea,
.field select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--color-text);
  background: #ffffff;
  border: 1px solid var(--camps-input-border);
  border-radius: var(--border-radius);
}

.field textarea {
  min-height: 4.5rem;
  resize: vertical;
}

.field-hint {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--camps-gray-text);
  margin-top: 0.2rem;
}

.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.field-checkbox input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.field-checkbox label {
  margin-bottom: 0;
  font-weight: 400;
}

textarea:focus,
select:focus,
[tabindex="-1"]:focus,
[tabindex="0"]:focus {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.form-row {
  display: grid;
  gap: 0 var(--spacing-sm);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===========================
   Auth panel (tabs + OAuth)
   =========================== */

.auth-panel {
  max-width: 480px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
}

.auth-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--spacing-md);
}

.auth-tabs [role="tab"] {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  color: #444444;
  cursor: pointer;
}

.auth-tabs [role="tab"][aria-selected="true"] {
  color: var(--color-text);
  font-weight: 700;
  border-bottom-color: var(--color-accent);
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: var(--spacing-md) 0;
  color: var(--camps-gray-text);
  font-size: var(--font-size-sm);
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--color-border);
}

.divider span {
  padding: 0 0.75rem;
}

/* OAuth buttons — brand colors. Text is bold >= 18.66px so the white-on-
   Facebook-blue combination meets WCAG large-text contrast (3:1). */
.oauth-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: 1.17rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}

.oauth-btn + .oauth-btn {
  margin-top: 0.75rem;
}

.oauth-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.oauth-google {
  background: #ffffff;
  color: #3c4043;
  border-color: #dadce0;
}

.oauth-google:hover {
  background: #f8f9fa;
}

.oauth-apple {
  background: #000000;
  color: #ffffff;
}

.oauth-apple:hover {
  background: #1a1a1a;
}

.oauth-facebook {
  background: #1877f2;
  color: #ffffff;
}

.oauth-facebook:hover {
  background: #1568d3;
}

/* ===========================
   Day picker
   =========================== */

.day-month {
  margin-top: var(--spacing-lg);
}

.day-grid {
  list-style: none;
  padding: 0;
  margin: var(--spacing-sm) 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-sm);
}

@media (min-width: 700px) {
  .day-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

.day-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-sm) var(--spacing-md);
  box-shadow: var(--shadow-sm);
}

.day-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.day-date {
  font-weight: 700;
  font-size: var(--font-size-lg);
}

.day-notes {
  font-size: var(--font-size-sm);
  color: #444444;
  margin: 0.3rem 0 0;
}

.day-badge,
.status-badge {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid;
  white-space: nowrap;
}

.day-badge-summer {
  color: var(--camps-green-dark);
  background: #e9f6ec;
  border-color: #a9d8b4;
}

.day-badge-snow {
  color: #0b3a56;
  background: #eaf4fb;
  border-color: #9ecbe8;
}

.day-badge-pd {
  color: #5b2d86;
  background: #f3ecfa;
  border-color: #cdb4e8;
}

.day-badge-other {
  color: #333333;
  background: #f1f3f5;
  border-color: #c6ccd2;
}

.slot-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.6rem;
}

@media (max-width: 420px) {
  .slot-buttons {
    grid-template-columns: 1fr;
  }
}

.slot-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.55rem 0.4rem;
  background: #ffffff;
  border: 2px solid var(--camps-input-border);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.3;
  cursor: pointer;
}

.slot-btn .slot-label {
  font-weight: 700;
}

.slot-btn .slot-time {
  font-size: 0.72rem;
  color: #444444;
}

.slot-btn .slot-price {
  font-weight: 600;
}

.slot-btn .slot-remaining {
  font-size: 0.72rem;
  color: var(--camps-gray-text);
}

/* Selected state: color change PLUS a check mark so it isn't color-only */
.slot-btn[aria-pressed="true"] {
  background: #fff8e0;
  border-color: var(--color-accent);
  box-shadow: inset 0 0 0 1px var(--color-accent);
}

.slot-btn[aria-pressed="true"] .slot-label::before {
  content: "\2713\00a0";
}

.slot-btn:disabled {
  background: var(--color-background-alt);
  border-color: #c0c0c0;
  color: var(--camps-gray-text);
  cursor: not-allowed;
}

.slot-btn:disabled .slot-time {
  color: var(--camps-gray-text);
}

/* ===========================
   Campers
   =========================== */

.camper-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 0.75rem var(--spacing-sm);
  margin-bottom: 0.5rem;
}

.camper-name {
  font-weight: 700;
}

.camper-meta {
  font-size: var(--font-size-sm);
  color: #444444;
  margin: 0.1rem 0 0;
}

.camper-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.camper-form {
  background: var(--color-background-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-md);
  margin: var(--spacing-sm) 0 var(--spacing-md);
  max-width: 640px;
}

/* Assignment matrix */
.assign-group {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--spacing-sm) var(--spacing-md);
  margin: 0 0 var(--spacing-sm);
  background: #ffffff;
}

.assign-group legend {
  font-weight: 700;
  padding: 0 0.3rem;
}

.assign-remaining {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--camps-gray-text);
}

.assign-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.25rem 0;
  font-weight: 400;
}

.assign-option input {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

/* ===========================
   Waiver
   =========================== */

.waiver-version {
  font-size: var(--font-size-sm);
  color: var(--camps-gray-text);
}

.waiver-body {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background: var(--color-background-alt);
  padding: var(--spacing-sm) var(--spacing-md);
  white-space: pre-wrap;
  font-size: var(--font-size-sm);
  line-height: 1.6;
  margin: var(--spacing-sm) 0 var(--spacing-md);
  max-width: 46rem;
}

/* ===========================
   Payment & summary tables
   =========================== */

.payment-box {
  max-width: 560px;
}

.summary-table-wrap,
.reg-table-wrap {
  overflow-x: auto;
  margin: var(--spacing-sm) 0;
}

.summary-table,
.reg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.summary-table th,
.summary-table td,
.reg-table th,
.reg-table td {
  text-align: left;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.summary-table .num,
.reg-table .num {
  text-align: right;
}

.summary-table tfoot th,
.summary-table tfoot td {
  font-weight: 800;
  border-bottom: none;
  font-size: 1rem;
}

.card-element {
  padding: 0.8rem 0.75rem;
  border: 1px solid var(--camps-input-border);
  border-radius: var(--border-radius);
  background: #ffffff;
}

/* ===========================
   Account page
   =========================== */

.signed-in-line {
  color: #444444;
  margin: var(--spacing-xs) 0 var(--spacing-md);
}

.reg-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-sm) var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.reg-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.reg-total {
  font-weight: 800;
}

.status-completed {
  color: var(--camps-green-dark);
  background: #e9f6ec;
  border-color: #a9d8b4;
}

.status-pending {
  color: #7a5300;
  background: #fff4d6;
  border-color: #e6c25c;
}

.status-refunded,
.status-partially-refunded,
.status-cancelled {
  color: #444444;
  background: #f1f3f5;
  border-color: #c6ccd2;
}

.status-failed {
  color: var(--camps-red-dark);
  background: #fdecea;
  border-color: #f0b4ae;
}

.status-other {
  color: #333333;
  background: #f1f3f5;
  border-color: #c6ccd2;
}

.provider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
}

.link-buttons {
  max-width: 360px;
  margin-top: var(--spacing-sm);
}

.password-form {
  max-width: 420px;
}

/* ===========================
   Small standalone pages (verify / reset / oauth-complete)
   =========================== */

.auth-card {
  max-width: 480px;
  margin: var(--spacing-2xl) auto;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
}

.auth-card h1 {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  margin-bottom: var(--spacing-sm);
}

.oc-text {
  text-align: center;
  color: var(--camps-gray-text);
  padding: var(--spacing-3xl) var(--spacing-md);
}

/* ===========================
   Full-week selection & discount
   =========================== */

.week-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  background: #eaf4fb;
  border: 1px solid #9ecbe8;
  border-radius: var(--border-radius);
  padding: 0.6rem var(--spacing-sm);
  margin: var(--spacing-sm) 0 0.4rem;
}

.week-bar-label {
  font-weight: 700;
}

.week-bar-price {
  color: var(--camps-green-dark);
  font-weight: 600;
}

.week-bar .week-select-btn {
  margin-left: auto;
  padding: 0.45rem 1rem;
}

.summary-table .discount-row th,
.summary-table .discount-row td {
  color: var(--camps-green-dark);
  font-weight: 600;
}

/* ===========================
   Account page (matches the camps page identity)
   =========================== */

.camps-hero-compact {
  padding: var(--spacing-xl) 0;
}

.account-band .account-section {
  background: #ffffff;
  border-radius: 12px;
  border-top: 4px solid var(--color-accent);
  box-shadow: 0 4px 16px rgba(6, 42, 69, 0.08);
  padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-xl);
  max-width: 56rem;
  margin: 0 auto var(--spacing-lg);
}

.account-signedin {
  max-width: 56rem;
  margin: 0 auto var(--spacing-md);
}

/* Already-registered campers in the assignment matrix */
.assign-booked-option {
  opacity: 0.75;
}

.assign-booked {
  color: var(--camps-green-dark);
  font-weight: 600;
}
