/* ==========================================================================
   The Hills Rivermakers — Front-end styles
   ========================================================================== */

:root {
  --bg:       #f6f4ef;
  --card:     #fff;
  --text:     #101010;
  --muted:    rgba(16,16,16,.6);
  --line:     rgba(16,16,16,.12);
  --line2:    rgba(16,16,16,.18);
  --accent:   #d85a1a;
  --accent2:  #f28b2a;
  --success:  #1faa59;
  --danger:   #c0392b;
  --radius:   18px;
  --rsm:      12px;
  --shadow:   0 8px 24px rgba(0,0,0,.07);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.thr-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 64px;
  color: var(--text);
  font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.thr-hero {
  padding: 28px 0 12px;
}
.thr-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.thr-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}
.thr-hero h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 5vw, 34px);
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 600;
}
.thr-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 72ch;
}

.thr-flow {
  max-width: 860px;
  margin: 18px auto 0;
  display: grid;
  gap: 18px;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.thr-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

/* --------------------------------------------------------------------------
   Form elements
   -------------------------------------------------------------------------- */
.thr-section-label {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
}
.thr-field-wrap {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.thr-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .04em;
}
.thr-field,
input.thr-field,
textarea.thr-field,
select.thr-field {
  width: 100%;
  padding: 14px;
  border-radius: var(--rsm);
  border: 1px solid var(--line2);
  background: #fff;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
}
.thr-field:focus {
  border-color: var(--accent);
}
.thr-field-lg {
  font-size: 17px;
  padding: 16px;
}

.thr-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 640px) {
  .thr-row { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.thr-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  align-items: center;
}
.thr-btn,
a.thr-btn,
button.thr-btn {
  appearance: none;
  border: none;
  border-radius: var(--rsm);
  padding: 14px 22px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(180deg, var(--accent2), var(--accent));
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(216,90,26,.25);
  transition: opacity .15s, transform .1s;
}
.thr-btn:hover  { opacity: .9; }
.thr-btn:active { transform: scale(.98); }
.thr-btn.thr-ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line2);
  box-shadow: none;
}
.thr-btn-lg {
  padding: 18px 28px;
  font-size: 17px;
  width: 100%;
  justify-content: center;
  border-radius: 14px;
}
.thr-btn-approve {
  background: linear-gradient(180deg, #27ae60, #1e8449);
  box-shadow: 0 2px 12px rgba(30,132,73,.3);
  font-size: 18px;
}
.thr-btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Check rows (checkboxes)
   -------------------------------------------------------------------------- */
.thr-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: var(--rsm);
  border: 1px solid var(--line);
  background: #fafafa;
  margin-bottom: 8px;
}
.thr-check input { margin-top: 3px; flex-shrink: 0; }
.thr-check-title { font-weight: 600; font-size: 15px; }
.thr-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   Children accordions
   -------------------------------------------------------------------------- */
.thr-child {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  margin: 10px 0;
}
.thr-child-head {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
}
.thr-child-body {
  padding: 14px;
  display: none;
  border-top: 1px solid var(--line);
}
.thr-child.open .thr-child-body { display: block; }
.thr-pill {
  font-size: 12px;
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--muted);
  border: 1px solid var(--line2);
  background: #fff;
}

/* --------------------------------------------------------------------------
   Waiver display
   -------------------------------------------------------------------------- */
.thr-waiver {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: #fafaf8;
  max-height: 560px;
  overflow: auto;
  line-height: 1.75;
  font-size: 15px;
}
.thr-waiver h3 { margin: 0 0 10px; font-size: 18px; font-weight: 600; }
.thr-waiver h4 { margin: 16px 0 6px; font-size: 15px; font-weight: 600; }
.thr-waiver p  { margin: 10px 0; }
.thr-waiver ol { margin: 0 0 0 18px; }
.thr-waiver li { margin: 8px 0; }

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.thr-muted  { color: var(--muted); font-size: 13px; line-height: 1.55; }
.thr-alert  { background: #fdf2f2; color: var(--danger); border: 1px solid #f5c6c6; border-radius: var(--rsm); padding: 12px 16px; font-size: 14px; }
.thr-badge  {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 10px;
  background: var(--bg);
  border: 1px solid var(--line2);
  color: var(--muted);
}
.thr-center { text-align: center; padding: 40px 20px; }

.thr-qr {
  max-width: 200px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 16px;
}
.thr-age-list { list-style: none; padding: 0; margin: 12px 0 0; }
.thr-age-list li { margin: 5px 0; font-size: 16px; }

/* Approved entry heading */
.thr-approved-heading { color: var(--success); font-size: 26px; font-weight: 700; margin: 0 0 6px; }
.thr-approved-name    { font-size: 18px; font-weight: 600; margin: 8px 0; }

/* Marketing opt-in inside waiver */
.thr-marketing-inline { padding-top: 4px; }

/* Animated SVG tick — used on approved entry + check-in confirmation */
.thr-tick-wrap {
  width: 110px;
  height: 110px;
  margin: 0 auto 22px;
}
.thr-tick-svg {
  width: 110px;
  height: 110px;
  display: block;
}

/* Circle draws itself */
.thr-tick-circle {
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  animation: tickCircle .55s cubic-bezier(.4,0,.2,1) forwards;
}

/* Checkmark draws after circle */
.thr-tick-check {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  fill: none;
  animation: tickCheck .35s cubic-bezier(.4,0,.2,1) .5s forwards;
}

@keyframes tickCircle {
  to { stroke-dashoffset: 0; }
}
@keyframes tickCheck {
  to { stroke-dashoffset: 0; }
}

/* --------------------------------------------------------------------------
   Check-in UI (full-width mobile, no retro skin)
   -------------------------------------------------------------------------- */
.thr-checkin {
  max-width: 600px;
}
.thr-checkin-header {
  padding: 24px 0 12px;
}
.thr-checkin-header h2 {
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 600;
  margin: 0;
}
.thr-checkin-search {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.thr-checkin-search .thr-field { flex: 1; }

/* QR auto-scanner section */
.thr-qr-section {
  margin: 0 0 20px;
  text-align: center;
}
.thr-qr-label {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.thr-reader-box {
  max-width: 320px;
  margin: 0 auto;
  border-radius: var(--rsm);
  overflow: hidden;
  border: 2px solid var(--line2);
  background: #000;
}

.thr-checkin-result {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-top: 8px;
}
.thr-result-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.thr-child-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}
.thr-child-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.thr-child-list li:last-child { border-bottom: none; }

.thr-already-in {
  background: #f0faf5;
  border: 1px solid #b7e4cb;
  color: #166534;
  border-radius: var(--rsm);
  padding: 14px;
  font-weight: 600;
  margin-top: 16px;
}
.thr-checkin-empty {
  color: var(--muted);
  text-align: center;
  padding: 32px 0;
  font-size: 15px;
}

/* Post-check-in confirmation */
.thr-confirm-screen {
  text-align: center;
  padding: 40px 20px;
}
.thr-confirm-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--success);
  margin: 0 0 8px;
}

/* --------------------------------------------------------------------------
   Square payment modal — styles moved to admin.php inline <style> block
   (modal only renders in admin, not front-end)
   -------------------------------------------------------------------------- */
