/* ============================================================
   GHPEC Rodeo Night Registration — styles
   ============================================================ */

:root {
  --sky-1: #0B1A2B;
  --sky-2: #14365A;
  --sky-3: #2B5A7A;
  --gold:  #F2C14E;
  --gold-soft: #f7d37c;
  --green: #1E3A24;
  --rust:  #B8541C;
  --rust-hi: #d16724;
  --cream: #F5EAD2;
  --cream-soft: #fbf4e3;
  --white: #FFFFFF;
  --error: #e35c5c;
  --ink:   #1a1410;
  --panel: rgba(255,255,255,0.06);
  --panel-stroke: rgba(242,193,78,0.18);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 8px;

  --shadow-card: 0 18px 45px -20px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.3);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--cream);
  background:
    radial-gradient(ellipse 120% 60% at 50% 0%, rgba(242,193,78,0.08), transparent 60%),
    linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 50%, var(--sky-3) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--gold); }
a:hover { color: var(--gold-soft); }

h1, h2, h3 { font-family: var(--serif); color: var(--white); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 .5rem; }
h3 { font-size: 1.15rem; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }
.muted { color: rgba(245,234,210,0.72); }
.small { font-size: .875rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem clamp(2.5rem, 6vw, 3.5rem);
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}

.hero::before {
  /* subtle stars */
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1px 1px at 75% 15%, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 40% 70%, rgba(255,255,255,0.35), transparent 60%),
    radial-gradient(1px 1px at 85% 55%, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,0.4), transparent 60%);
  opacity: .55;
  pointer-events: none;
  z-index: -1;
}

.hero-silhouette {
  position: absolute;
  bottom: -12px;
  right: -40px;
  width: min(520px, 80%);
  height: auto;
  opacity: 0.18;
  filter: drop-shadow(0 0 30px rgba(0,0,0,0.4));
  pointer-events: none;
  z-index: -1;
}

@media (min-width: 720px) {
  .hero-silhouette {
    right: 4%;
    bottom: -30px;
    width: 440px;
    opacity: 0.22;
  }
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.hero-eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(3.2rem, 14vw, 7rem);
  line-height: 0.9;
  margin: 0 0 .25rem;
  color: var(--white);
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.hero-title span {
  display: block;
  color: var(--gold);
  font-style: italic;
  letter-spacing: -0.02em;
}

.hero-date {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--cream);
  margin: 1rem 0 0.5rem;
  font-weight: 600;
}

.hero-events {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .4rem .75rem;
  justify-content: center;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}
.hero-events .dot { color: rgba(242,193,78,0.5); }

.hero-sub {
  font-style: italic;
  color: var(--cream-soft);
  font-size: 1.05rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-facts {
  list-style: none;
  padding: 0;
  margin: 1.5rem auto;
  display: grid;
  gap: .4rem;
  max-width: 520px;
  color: var(--cream);
}
.hero-facts li::before {
  content: "★ ";
  color: var(--gold);
  margin-right: .4rem;
}

.hero-contact {
  color: var(--cream);
  font-size: .95rem;
}
.hero-contact a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dotted var(--gold);
}

.hero-cta {
  display: inline-block;
  margin-top: 1.25rem;
  padding: .95rem 1.8rem;
  background: var(--rust);
  color: var(--white);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 25px -10px rgba(184,84,28,0.8);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.hero-cta:hover { background: var(--rust-hi); transform: translateY(-1px); color: var(--white); }

/* ============================================================
   FORM SHELL
   ============================================================ */
.form-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  scroll-margin-top: 1rem;
}

/* Progress */
.progress {
  display: flex;
  justify-content: center;
  gap: .65rem;
  margin-bottom: 1.5rem;
}
.progress-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(245,234,210,0.2);
  border: 1px solid rgba(245,234,210,0.3);
  transition: all .25s ease;
}
.progress-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(242,193,78,0.6);
  transform: scale(1.2);
}
.progress-dot.done {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}

/* Steps */
.step {
  display: none;
  background: var(--panel);
  border: 1px solid var(--panel-stroke);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card);
  animation: fade-in .3s ease both;
}
.step.active { display: block; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.step-head h2 { margin: 0; }

.back-btn {
  background: transparent;
  border: 1px solid rgba(245,234,210,0.25);
  color: var(--cream);
  font-family: var(--sans);
  font-size: .85rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s ease;
}
.back-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ============================================================
   CHOICE CARDS (Step 1)
   ============================================================ */
.choice-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (min-width: 560px) {
  .choice-grid { grid-template-columns: 1fr 1fr; }
}

.choice-card {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  text-align: left;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(180deg, rgba(30,58,36,0.55), rgba(30,58,36,0.25));
  border: 1px solid rgba(242,193,78,0.3);
  border-radius: var(--radius);
  color: var(--cream);
  font-family: var(--sans);
  cursor: pointer;
  transition: all .18s ease;
}
.choice-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(30,58,36,0.75), rgba(30,58,36,0.4));
  box-shadow: 0 14px 34px -18px rgba(0,0,0,0.7);
}
.choice-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 700;
}
.choice-sub { color: var(--cream); opacity: 0.8; font-size: .92rem; }

/* Option cards (Step 2B) */
.option-card {
  background: rgba(11,26,43,0.5);
  border: 1px solid rgba(242,193,78,0.25);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1rem;
}
.option-card h3 { color: var(--gold); font-size: 1.3rem; margin-bottom: .25rem; }
.option-price {
  font-weight: 700; color: var(--white); margin-bottom: .5rem;
}
.option-card .btn-primary { display: block; width: 100%; margin: 1rem 0 .5rem; text-align: center; }
.option-card .btn-secondary { display: block; width: 100%; text-align: center; }

/* ============================================================
   FORM FIELDS
   ============================================================ */
.field {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.field label {
  color: var(--cream);
  font-size: .9rem;
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: .75rem .9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245,234,210,0.25);
  background: rgba(11,26,43,0.45);
  color: var(--white);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
  width: 100%;
}
.field input::placeholder { color: rgba(245,234,210,0.4); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(11,26,43,0.7);
  box-shadow: 0 0 0 3px rgba(242,193,78,0.2);
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: var(--error);
  background: rgba(227,92,92,0.1);
}
.err {
  color: var(--error);
  font-size: .82rem;
  min-height: 1em;
  display: block;
}
.field.invalid .err::before {
  content: "⚠ ";
}

.grid-2, .grid-3 { display: grid; gap: 1rem; }
@media (min-width: 560px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 2fr 1fr 1fr; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary,
.btn-secondary,
.btn-ghost {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  padding: .85rem 1.4rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all .15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  text-decoration: none;
  min-height: 48px;
}

.btn-primary {
  background: var(--rust);
  color: var(--white);
  box-shadow: 0 10px 22px -12px rgba(184,84,28,0.8);
}
.btn-primary:hover:not(:disabled) {
  background: var(--rust-hi);
  transform: translateY(-1px);
  color: var(--white);
}
.btn-primary:disabled {
  background: rgba(184,84,28,0.45);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-secondary:hover { background: rgba(242,193,78,0.1); color: var(--gold-soft); border-color: var(--gold-soft); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px dashed rgba(245,234,210,0.4);
  padding: .7rem 1.1rem;
  font-weight: 500;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* Spinner */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   CHECKBOX ROW
   ============================================================ */
.check-row {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .85rem;
  background: rgba(11,26,43,0.4);
  border: 1px solid rgba(245,234,210,0.18);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .15s ease;
  margin: .75rem 0 .25rem;
}
.check-row:hover { border-color: rgba(242,193,78,0.4); }
.check-row input[type="checkbox"] {
  width: 20px; height: 20px;
  flex-shrink: 0;
  accent-color: var(--rust);
  cursor: pointer;
  margin-top: 1px;
}
.check-row input[type="checkbox"]:disabled { cursor: not-allowed; opacity: 0.55; }
.check-row span { font-size: .92rem; line-height: 1.4; color: var(--cream); }

/* ============================================================
   WAIVER
   ============================================================ */
.waiver-wrap { margin: 1.75rem 0 1rem; }
.waiver-wrap h3 { color: var(--gold); }
.waiver-box {
  max-height: 280px;
  overflow-y: auto;
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  border: 1px solid rgba(242,193,78,0.4);
  font-size: .9rem;
  line-height: 1.55;
}
.waiver-box pre {
  font-family: Georgia, "Times New Roman", serif;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
  color: var(--ink);
}
.waiver-box:focus { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ============================================================
   SIGNATURE PAD (inside modal)
   ============================================================ */
.sig-canvas-wrap {
  background: var(--cream);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(242,193,78,0.4);
  padding: 6px;
  margin-bottom: .6rem;
  position: relative;
}
.sig-canvas-wrap::before {
  content: "Sign here";
  position: absolute;
  bottom: 8px; left: 12px;
  font-size: .7rem;
  color: rgba(0,0,0,0.35);
  pointer-events: none;
  font-style: italic;
}
#sig-canvas {
  display: block;
  width: 100%;
  height: 180px;
  touch-action: none;
  cursor: crosshair;
  background: transparent;
  border-radius: 4px;
}

/* ============================================================
   SIGN FLAG — DocuSign-style "Click to sign" cue
   ============================================================ */
.sign-flag-wrap { margin: .75rem 0 1rem; }

.sign-flag {
  position: relative;
  display: flex;
  align-items: center;
  gap: .9rem;
  width: 100%;
  text-align: left;
  padding: .85rem 1.1rem .85rem 2.4rem;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-soft) 100%);
  color: #1a1410;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--sans);
  box-shadow:
    0 0 0 2px rgba(242, 193, 78, 0.35),
    0 10px 22px -12px rgba(242, 193, 78, 0.7);
  animation: sign-pulse 2s ease-in-out infinite;
  transition: transform .15s ease, box-shadow .15s ease;
}
.sign-flag:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 2px rgba(242, 193, 78, 0.55),
    0 14px 28px -14px rgba(242, 193, 78, 0.9);
}
.sign-flag-arrow {
  position: absolute;
  left: .8rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: #7a4a00;
  animation: sign-arrow-bounce 1.2s ease-in-out infinite;
}
.sign-flag-body {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.sign-flag-eyebrow {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.sign-flag-sub {
  font-size: .82rem;
  color: rgba(26, 20, 16, 0.75);
  font-weight: 500;
}
@keyframes sign-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(242, 193, 78, 0.35), 0 10px 22px -12px rgba(242, 193, 78, 0.7); }
  50%      { box-shadow: 0 0 0 6px rgba(242, 193, 78, 0.18), 0 10px 22px -12px rgba(242, 193, 78, 0.9); }
}
@keyframes sign-arrow-bounce {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50%      { transform: translateY(-50%) translateX(4px); }
}

/* Signed state — replaces the flag */
.sign-flag-signed {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .75rem .9rem;
  background: rgba(90, 140, 94, 0.15);
  border: 1px solid rgba(90, 140, 94, 0.55);
  border-radius: 10px;
  flex-wrap: wrap;
}
.sign-flag-signed-left {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex: 1 1 200px;
}
.sign-check {
  flex: 0 0 auto;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: #5A8C5E;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
}
.sign-flag-signed-title {
  font-weight: 700;
  color: var(--cream);
  font-size: 1rem;
}
.sign-flag-signed-sub {
  font-size: .82rem;
  color: rgba(245, 234, 210, 0.8);
}
.sign-thumb {
  height: 44px;
  max-width: 160px;
  background: var(--cream);
  border-radius: 4px;
  padding: 3px 6px;
  border: 1px solid rgba(242, 193, 78, 0.4);
  object-fit: contain;
}
.sign-redo {
  flex: 0 0 auto;
}

/* ============================================================
   SIGN MODAL
   ============================================================ */
.sign-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fade-in .18s ease both;
  /* Make sure the modal uses the actual visible viewport on mobile (URL bar). */
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.sign-modal[hidden] { display: none; }

.sign-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 26, 43, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.sign-modal-panel {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, #1a2b42 0%, #14365A 100%);
  border: 1px solid var(--panel-stroke);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  animation: sign-modal-pop .22s cubic-bezier(.3,1.3,.4,1) both;
}
@media (max-width: 520px) {
  .sign-modal { padding: .5rem; align-items: flex-start; }
  .sign-modal-panel { padding: 1rem; }
  #sig-canvas { height: 160px; }
}
@keyframes sign-modal-pop {
  from { transform: translateY(12px) scale(.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.sign-modal-head {
  margin-bottom: .75rem;
}
.sign-modal-head h3 {
  margin: 0 0 .15rem;
  font-size: 1.2rem;
  color: var(--white);
}
.sign-modal-head p {
  margin: 0;
}
.sign-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .5rem;
  flex-wrap: wrap;
}
.sign-modal-actions-right {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
@media (max-width: 520px) {
  .sign-modal-actions { flex-direction: column; align-items: stretch; }
  .sign-modal-actions-right { flex-direction: column; }
  .sign-modal-actions-right .btn-primary,
  .sign-modal-actions-right .btn-secondary { width: 100%; }
}

/* ============================================================
   HORSES
   ============================================================ */
.horse-row {
  background: rgba(11,26,43,0.4);
  border: 1px solid rgba(242,193,78,0.22);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
  position: relative;
}
.horse-row h4 {
  font-family: var(--serif);
  color: var(--gold);
  margin: 0 0 .75rem;
  font-size: 1.05rem;
}
.horse-row .remove-horse {
  position: absolute;
  top: .75rem; right: .75rem;
  background: transparent;
  border: 1px solid rgba(227,92,92,0.4);
  color: var(--error);
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  cursor: pointer;
}
.horse-row .remove-horse:hover { background: rgba(227,92,92,0.15); }

.file-label {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem .9rem;
  border: 1px dashed rgba(245,234,210,0.3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: rgba(11,26,43,0.3);
  transition: border-color .15s ease;
}
.file-label:hover { border-color: var(--gold); }
.file-label input[type="file"] { display: none; }
.file-label .file-txt { color: var(--cream); font-size: .9rem; flex: 1; }
.file-label .file-icon { color: var(--gold); font-size: 1.1rem; }

/* Minors list */
#minors-list .minor-row {
  background: rgba(11,26,43,0.3);
  border: 1px solid rgba(245,234,210,0.15);
  border-radius: var(--radius-sm);
  padding: .75rem;
  margin-bottom: .5rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
#minors-list .minor-fields {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: .75rem;
}
#minors-list .minor-err {
  display: block;
  min-height: 1em;
}
#minors-list .minor-err:empty { display: none; }

/* Submit row */
.submit-row {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.submit-row .btn-primary { min-width: 200px; align-self: flex-start; }

/* ============================================================
   CONFIRMATION
   ============================================================ */
.confirm { text-align: center; padding: 1rem 0; }
.confirm-badge {
  width: 80px; height: 80px;
  background: var(--gold);
  color: var(--green);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  box-shadow: 0 8px 30px -8px rgba(242,193,78,0.7);
  animation: pop .5s cubic-bezier(.3,1.5,.4,1) both;
}
@keyframes pop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}
.confirm-lead { font-size: 1.1rem; color: var(--cream); margin-bottom: 1.5rem; }

.confirm-summary {
  text-align: left;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .5rem 1.25rem;
  max-width: 420px;
  margin: 1.5rem auto;
  background: rgba(11,26,43,0.4);
  border: 1px solid rgba(242,193,78,0.2);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.confirm-summary dt {
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: 0.05em;
  align-self: center;
}
.confirm-summary dd { margin: 0; color: var(--white); }

.reminders {
  margin: 1.5rem auto;
  max-width: 500px;
}
.reminder {
  background: rgba(184,84,28,0.15);
  border-left: 3px solid var(--rust);
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--cream);
  text-align: left;
  margin-bottom: .5rem;
  font-size: .92rem;
}
.reminder strong { color: var(--gold); }

.confirm-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: center;
}
.confirm-actions .btn-primary,
.confirm-actions .btn-secondary { min-width: 220px; }

@media (min-width: 560px) {
  .confirm-actions { flex-direction: row; justify-content: center; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-foot {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: rgba(245,234,210,0.7);
  font-size: .9rem;
  border-top: 1px solid rgba(242,193,78,0.15);
  margin-top: 2rem;
}
.site-foot a { color: var(--gold); }

/* ============================================================
   TOAST / INLINE ERROR
   ============================================================ */
.toast-err {
  background: rgba(227,92,92,0.15);
  border: 1px solid var(--error);
  border-radius: var(--radius-sm);
  padding: .9rem 1rem;
  color: var(--cream);
  margin: 1rem 0;
  font-size: .92rem;
}
.toast-err strong { color: var(--error); display: block; margin-bottom: .25rem; }
.toast-err .retry-btn {
  margin-top: .5rem;
  background: var(--error);
  color: white;
  border: none;
  padding: .5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

/* Keyboard focus visibility */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
button:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline-offset: 3px;
}

/* ============================================================
   v2 additions: PDF frame, Coggins result chips, calendar buttons
   ============================================================ */

/* --- PDF waiver frame --- */
.pdf-frame {
  position: relative;
  width: 100%;
  height: 600px;
  margin: .75rem 0 1rem;
  border: 2px solid rgba(242, 193, 78, 0.55);
  border-radius: var(--radius);
  overflow: hidden;
  background: #2a2418;
  box-shadow: 0 10px 30px -15px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.04);
}
.pdf-frame.scrolled {
  border-color: var(--gold);
  box-shadow: 0 10px 30px -15px rgba(0,0,0,0.6), 0 0 0 2px rgba(242,193,78,0.18);
}
.pdf-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}
/* Mobile fallback: pages rendered to canvases, stacked in a scrollable div. */
.pdf-canvases {
  width: 100%;
  height: 100%;
  background: #fff;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: .5rem;
  box-sizing: border-box;
}
.pdf-canvases canvas {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto .5rem;
  box-shadow: 0 1px 6px rgba(0,0,0,0.15);
  background: #fff;
}
.pdf-canvases .pdf-page-placeholder {
  color: #666;
  text-align: center;
  padding: 2rem 1rem;
  font-size: .9rem;
}
.pdf-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  background: rgba(11, 26, 43, 0.65);
  font-size: .95rem;
  letter-spacing: .02em;
  pointer-events: none;
}

@media (max-width: 640px) {
  .pdf-frame { height: 480px; }
}

/* --- Coggins result chips --- */
.coggins-status {
  margin-top: .5rem;
}
.cog-result {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .6rem .75rem;
  border-radius: 10px;
  font-size: .9rem;
  line-height: 1.4;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.04);
}
.cog-result .cog-icon {
  flex: 0 0 auto;
  width: 1.4rem; height: 1.4rem;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: .85rem;
}
.cog-result .cog-lead { font-weight: 600; color: var(--cream); }
.cog-warns { margin: .35rem 0 0 1rem; padding: 0; font-size: .85rem; color: rgba(245,234,210,0.85); }
.cog-warns li { margin: .15rem 0; }

.cog-ok {
  border-color: rgba(90, 140, 94, 0.6);
  background: rgba(90, 140, 94, 0.12);
}
.cog-ok .cog-icon { background: #5A8C5E; color: #fff; }

.cog-warn {
  border-color: rgba(242, 193, 78, 0.65);
  background: rgba(242, 193, 78, 0.10);
}
.cog-warn .cog-icon { background: var(--gold); color: #1a1410; }

.cog-retry-btn {
  margin-top: .5rem;
  padding: .35rem .75rem;
  font-size: .85rem;
  font-weight: 600;
  color: #1a1410;
  background: var(--gold);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.cog-retry-btn:hover { filter: brightness(1.08); }
.cog-retry-btn:active { filter: brightness(0.95); }

.cog-invalid {
  border-color: rgba(227, 92, 92, 0.65);
  background: rgba(227, 92, 92, 0.10);
}
.cog-invalid .cog-icon { background: var(--error); color: #fff; }

.cog-checking {
  border-color: rgba(245, 234, 210, 0.2);
  background: rgba(255,255,255,0.04);
  color: rgba(245,234,210,0.85);
  align-items: center;
}
.cog-checking .cog-lead { color: rgba(245,234,210,0.9); font-weight: 500; }
.cog-checking .spinner {
  width: 1rem; height: 1rem;
  border: 2px solid rgba(242,193,78,0.3);
  border-top-color: var(--gold);
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.7s linear infinite;
  margin-right: .15rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Calendar buttons on confirmation --- */
.cal-wrap {
  margin: 1.5rem auto 1rem;
  text-align: center;
}
.cal-title {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.15rem;
  margin: 0 0 .75rem;
  letter-spacing: .01em;
}
.cal-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
}
.cal-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(242, 193, 78, 0.55);
  background: rgba(242, 193, 78, 0.08);
  color: var(--cream);
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease, color .12s ease;
}
.cal-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1410;
  transform: translateY(-1px);
}
.cal-btn .cog-icon, .cal-btn .cal-ico { font-size: 1rem; line-height: 1; }
