/* ==========================================================================
   Oak Tree Gymnastics — registration & free trial page
   ========================================================================== */

.reg-hero { padding: 72px 0 64px; }
.reg-hero .title-sans { margin-bottom: 14px; color: var(--post-mint); }
.reg-hero .big { color: var(--post-mint); }

.reg-steps { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.reg-steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: .92rem;
  font-weight: 600;
}
.reg-steps b {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--mustard);
  font-size: .8rem;
}

.reg-band { padding: 56px 0 88px; }
.reg-wrap { max-width: 820px; }

.reg-note { margin: 0 0 24px; font-size: .92rem; color: var(--muted); }
.reg-note a, .reg-section a, .bg-note a, .reg-done a:not(.pill) { color: var(--post-green); font-weight: 600; }

.reg-section {
  margin: 0 0 20px;
  padding: 30px 30px 14px;
  border: 1px solid rgba(65, 103, 82, .14);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(65, 103, 82, .05), 0 18px 36px -30px rgba(65, 103, 82, .5);
}
.reg-section legend {
  float: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  padding: 0;
  font: 800 1.35rem/1.2 var(--font-body);
  color: var(--post-ink);
}
.reg-section legend + * { clear: both; }
.reg-num {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--post-green);
  color: #fff;
  font-size: 1rem;
}

.grid-2, .grid-3 { display: grid; gap: 0 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.reg-section label, .reg-section .label {
  display: block;
  margin: 0 0 6px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--post-ink);
}
.reg-section label.sub { font-weight: 500; color: var(--muted); font-size: .85rem; }
.reg-section .label { margin-top: 4px; }
.hint { margin: -8px 0 16px; font-size: .88rem; color: var(--muted); }
.field .hint { margin: 8px 0 0; }

.reg-section input[type="text"], .reg-section input[type="email"], .reg-section input[type="tel"],
.reg-section input[type="date"], .reg-section select, .reg-section textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: 400 1rem/1.4 var(--font-body);
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.reg-section input[type="date"] { min-height: 48px; }
.reg-section textarea { resize: vertical; min-height: 64px; }
.reg-section select {
  padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%23548264' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
.reg-section input:focus, .reg-section select:focus, .reg-section textarea:focus {
  outline: none;
  border-color: var(--post-green);
  box-shadow: 0 0 0 4px rgba(84, 130, 100, .15);
}
.reg-section .reveal-box textarea + label { margin-top: 14px; }

.invalid input, .invalid select, .invalid textarea { border-color: var(--error) !important; }

/* Choice pills (radios) */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { margin: 0 !important; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink);
  transition: all .15s ease;
}
.choice span::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid #c3cbbf;
  transition: all .15s ease;
}
.choice:hover span { border-color: var(--post-sage); }
.choice input:checked + span { border-color: var(--post-green); background: var(--post-mist); color: var(--post-ink); }
.choice input:checked + span::before { border: 4px solid var(--post-green); }
.choice input:focus-visible + span { outline: 3px solid rgba(84, 130, 100, .45); outline-offset: 2px; }
.invalid .choice span { border-color: var(--error); }

.reveal-box {
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  background: var(--post-mist);
}
.reveal-box[hidden] { display: none; }
.reveal-box.grid-2 { padding: 16px 16px 0; }

.toggle { display: inline-flex !important; align-items: center; gap: 10px; margin: 4px 0 16px !important; cursor: pointer; font-weight: 600; }
.toggle input, .check input { width: 20px; height: 20px; flex: none; accent-color: var(--post-green); }

/* Declaration */
.check {
  display: flex !important;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--post-mist);
  font-weight: 400 !important;
  line-height: 1.5;
  cursor: pointer;
}
.check input { margin-top: 2px; }
.invalid .check { box-shadow: inset 0 0 0 1.5px var(--error); }
#consent-error.show { display: block; margin: -6px 0 16px; }

.sign-row { margin-top: 10px; align-items: end; }
.signature { font-family: var(--font-display) !important; font-style: italic; font-size: 1.2rem !important; }
.sign-date { margin: 0; padding: 12px 0; font-weight: 600; color: var(--post-ink); }

.age-hint {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fbf1dc;
  color: #7a5a1c;
  font-size: .92rem;
}

/* Submit */
.reg-submit { margin-top: 28px; text-align: center; }
.bg-note { max-width: 560px; margin: 0 auto 22px; font-size: .92rem; color: var(--muted); }
.reg-submit .btn { width: auto; min-width: 260px; margin: 0 auto; background: var(--post-green); }
.reg-submit .btn:hover { background: var(--post-forest); }

/* Done */
.reg-done { max-width: 560px; margin: 0 auto; text-align: center; outline: none; animation: rise .5s ease both; }
.reg-done img { width: 140px; margin: 0 auto 18px; }
.reg-done .title-sans { margin-bottom: 10px; color: var(--post-ink); }
.reg-done .big { margin: 0 auto 14px; font-weight: 600; color: var(--post-green); }
.bring {
  display: grid;
  gap: 8px;
  margin: 24px 0 28px;
  padding: 20px 22px;
  border-radius: 18px;
  background: #fff;
  list-style: none;
  text-align: left;
  font-size: .95rem;
}
.bring li { display: flex; gap: 10px; }
.bring li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--mustard); }


@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .reg-section { padding: 22px 18px 8px; border-radius: 18px; }
  .reg-section legend { font-size: 1.2rem; }
  .reg-submit .btn { width: 100%; min-width: 0; }
}
