/* ============================================================
   REGISTRATION PAGE — Clean color-only design
   ============================================================ */

/* ---- Page ---- */
body {
  background: #0b1628;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Header ---- */
.reg-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: rgba(11,22,40,.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: #fff;
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(212,168,67,.15);
}
.reg-back {
  font-family: var(--font-condensed); font-weight: 600; font-size: .85rem;
  color: rgba(255,255,255,.7); text-decoration: none; transition: color .2s;
}
.reg-back:hover { color: #fff; }
.reg-header-title {
  font-family: var(--font-impact); font-weight: 700; font-size: 1rem;
  text-transform: uppercase; letter-spacing: .05em;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.reg-header-price {
  font-family: var(--font-impact); font-weight: 700; font-size: 1rem; color: var(--gold);
}
.reg-header-price span {
  font-family: var(--font-condensed); font-weight: 400; font-size: .75rem;
  color: rgba(255,255,255,.5);
}

/* ---- Stepper ---- */
.stepper-wrap {
  background: rgba(11,22,40,.85);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 20px 20px 14px; overflow-x: auto;
  position: relative; z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.stepper {
  display: flex; align-items: center; justify-content: center;
  gap: 0; max-width: 640px; margin: 0 auto;
}
.step {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.step-num {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-impact); font-weight: 700; font-size: .82rem;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.4); transition: all .3s;
}
.step.active .step-num,
.step.completed .step-num {
  background: var(--red); color: #fff;
}
.step.completed .step-num { background: var(--green); }
.step-label {
  font-family: var(--font-condensed); font-weight: 600; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.4);
  display: none;
}
.step.active .step-label { display: block; color: rgba(255,255,255,.9); }
.step-line {
  flex: 1; min-width: 20px; max-width: 60px; height: 2px;
  background: rgba(255,255,255,.1); margin: 0 8px; transition: background .3s;
}
.step.completed + .step-line,
.step-line.done { background: var(--green); }

/* ---- Main Container ---- */
.reg-main {
  padding: 24px 16px 60px;
  display: flex;
  justify-content: center;
}

.form-container {
  width: 100%;
  max-width: 500px;
}

/* ---- Paper Form Area ---- */
.paper-form-area {
  width: 100%;
  background: #fff;
  border-radius: 12px;
  padding: 28px 22px 32px;
  box-shadow:
    0 8px 32px rgba(0,0,0,.3),
    0 2px 8px rgba(0,0,0,.2);
}

/* ---- Form Steps ---- */
.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.form-step h2 {
  font-family: var(--font-impact); font-weight: 700; font-size: 1.35rem;
  text-transform: uppercase; letter-spacing: .02em; margin-bottom: 4px;
  color: #1a1a1a;
}
.form-step-desc {
  color: #666; font-size: .85rem; margin-bottom: 20px;
}
.form-subtitle {
  font-family: var(--font-condensed); font-weight: 700; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .1em; color: #8b2020;
  margin: 22px 0 10px; padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,.08);
}
.form-subtitle:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

/* ---- Fields ---- */
.field-hint {
  font-size: .72rem; color: #888; margin-top: 5px; line-height: 1.45;
}
.field-group { margin-bottom: 14px; }
.field-label {
  display: block; font-family: var(--font-condensed); font-weight: 700;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .06em;
  color: #333; margin-bottom: 4px;
}
.req { color: #8b2020; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 6px; font-size: .85rem; font-family: var(--font-body);
  background: #fafafa;
  color: #1a1a1a; transition: all .2s;
  appearance: none; -webkit-appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px;
  background-color: #fafafa;
}
textarea { resize: vertical; min-height: 64px; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: #8b2020;
  box-shadow: 0 0 0 3px rgba(139,32,32,.08);
  background: #fff;
}
input.error, select.error, textarea.error { border-color: var(--danger); }
.field-error {
  font-size: .72rem; color: var(--danger); margin-top: 3px;
  font-family: var(--font-condensed); font-weight: 600;
}

.field-row {
  display: grid; grid-template-columns: 1fr; gap: 0;
}

/* ---- Sport Toggle ---- */
.sport-toggle {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.sport-opt input { position: absolute; opacity: 0; pointer-events: none; }
.sport-opt-box {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 14px 10px;
  border: 2px solid #e0e0e0; border-radius: 8px;
  cursor: pointer; transition: all .2s;
  background: #fafafa; text-align: center;
}
.sport-opt-box:hover { border-color: #bbb; background: #f5f5f5; }
.sport-opt input:checked + .sport-opt-box {
  border-color: #8b2020; background: rgba(139,32,32,.04);
  box-shadow: 0 0 0 3px rgba(139,32,32,.08);
}
.sport-opt-icon { font-size: 1.5rem; }
.sport-opt-name {
  font-family: var(--font-impact); font-weight: 700; font-size: .88rem;
  text-transform: uppercase; letter-spacing: .04em; color: #333;
}

/* ---- Yes/No Toggle ---- */
.yn-toggle {
  display: flex; gap: 8px;
}
.yn-opt {
  display: flex; align-items: center; cursor: pointer;
}
.yn-opt input { position: absolute; opacity: 0; pointer-events: none; }
.yn-opt span {
  display: inline-block; padding: 8px 20px;
  border: 2px solid #e0e0e0; border-radius: 6px;
  font-family: var(--font-condensed); font-weight: 600; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .04em; color: #666;
  background: #fafafa; transition: all .2s;
}
.yn-opt:hover span { border-color: #bbb; }
.yn-opt input:checked + span {
  border-color: #8b2020; background: rgba(139,32,32,.04);
  color: #8b2020; box-shadow: 0 0 0 3px rgba(139,32,32,.08);
}

/* ---- 3-Column Field Row ---- */
.field-row-3 {
  grid-template-columns: 1fr !important;
}

/* ---- Jersey Sizing ---- */
.jersey-sizing {
  display: flex; gap: 20px; align-items: flex-start;
  margin-bottom: 20px;
  background: #f8f8f8; border: 1px solid #e8e8e8;
  border-radius: 10px; padding: 16px; overflow-x: auto;
}
.jersey-graphic {
  flex-shrink: 0; width: 130px;
}
.jersey-svg { width: 100%; height: auto; }
.size-chart-table { flex: 1; min-width: 0; overflow-x: auto; }
.size-chart-table table {
  width: 100%; border-collapse: collapse; font-size: .72rem;
}
.size-chart-table th {
  font-family: var(--font-condensed); font-weight: 700; font-size: .68rem;
  text-transform: uppercase; letter-spacing: .06em; color: #666;
  padding: 5px 6px; border-bottom: 2px solid #ddd; text-align: center;
}
.size-chart-table .sub-header th {
  font-size: .62rem; font-weight: 600; color: #999;
  border-bottom: 1px solid #e8e8e8; padding: 3px 6px;
}
.size-chart-table td {
  padding: 4px 6px; text-align: center; border-bottom: 1px solid #f0f0f0;
  font-size: .75rem; color: #444;
}
.size-chart-table td:first-child {
  font-weight: 700; color: #1a1a1a; text-align: left;
}
.size-chart-table tr:nth-child(even) { background: #fafafa; }

/* ---- Jersey Confirmation ---- */
.jersey-confirm {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 8px;
  padding: 18px 16px;
  margin-top: 4px;
  margin-bottom: 14px;
}
.jersey-confirm-title {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #92400E;
  margin-bottom: 10px;
}
.jersey-confirm-text {
  font-size: .85rem;
  color: #1a1a1a;
  line-height: 1.5;
  margin-bottom: 8px;
}
.jersey-confirm-warning {
  font-size: .78rem;
  color: #92400E;
  line-height: 1.5;
  margin-bottom: 8px;
  font-style: italic;
}
.jersey-confirm-fee {
  font-size: .82rem;
  color: #991B1B;
  line-height: 1.5;
  margin-bottom: 0;
  background: rgba(153,27,27,.06);
  border-radius: 5px;
  padding: 8px 10px;
}

/* ---- Checkbox ---- */
.cb-group { margin-top: 18px; }
.checkbox-label {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  font-size: .8rem; color: #555; line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0;
  accent-color: #8b2020;
}
.checkbox-label a { color: #8b2020; text-decoration: underline; }

/* ---- Navigation ---- */
.form-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px; padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,.08);
}
.btn-next, .btn-pay { padding: 11px 24px; font-size: .85rem; }
.btn-prev { padding: 11px 18px; font-size: .8rem; }
.btn-outline-dark {
  background: transparent; color: #444;
  border: 2px solid #ccc; border-radius: 6px;
  font-family: var(--font-impact); font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; cursor: pointer;
  transition: all .2s;
}
.btn-outline-dark:hover { border-color: #999; background: #f5f5f5; }

/* ---- Review Card ---- */
.review-card {
  background: #f8f8f8; border: 1px solid #e8e8e8;
  border-radius: 8px; overflow: hidden; margin-bottom: 18px;
}
.review-section { padding: 14px; }
.review-section + .review-section { border-top: 1px solid #e8e8e8; }
.review-section h4 {
  font-family: var(--font-condensed); font-weight: 700; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .1em; color: #8b2020;
  margin-bottom: 6px;
}
.review-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 0; font-size: .82rem;
}
.review-row span:first-child { color: #888; }
.review-row span:last-child { font-weight: 600; color: #1a1a1a; }

/* ---- Order Summary ---- */
.order-summary {
  background: rgba(139,32,32,.04); border: 1px solid rgba(139,32,32,.12);
  border-radius: 8px; padding: 14px; margin-bottom: 18px;
}
.order-line {
  display: flex; justify-content: space-between; font-size: .85rem; padding: 3px 0;
  color: #1a1a1a;
}
.order-includes {
  font-size: .73rem; color: #888; display: block; padding: 2px 0 6px;
}
.order-total {
  display: flex; justify-content: space-between;
  font-family: var(--font-impact); font-weight: 700; font-size: 1.1rem;
  text-transform: uppercase; padding-top: 10px; margin-top: 6px;
  border-top: 2px solid rgba(139,32,32,.15); color: #1a1a1a;
}

/* ---- Stripe ---- */
.payment-section { margin-bottom: 8px; }
.stripe-card {
  padding: 10px; border: 1px solid #d0d0d0;
  border-radius: 6px; background: #fafafa; transition: border-color .2s;
}
.stripe-card.StripeElement--focus {
  border-color: #8b2020; box-shadow: 0 0 0 3px rgba(139,32,32,.08);
  background: #fff;
}
.card-errors {
  font-size: .73rem; color: var(--danger); margin-top: 5px; min-height: 18px;
  font-family: var(--font-condensed); font-weight: 600;
}

/* ---- Confirmation ---- */
.confirm-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(11,22,40,.85); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 24px;
}
.confirm-overlay.show { display: flex; }
.confirm-box {
  background: #fff; border-radius: 16px; padding: 48px 32px;
  text-align: center; max-width: 440px; width: 100%;
  animation: fadeIn .4s ease;
}
.confirm-icon { font-size: 3.5rem; margin-bottom: 16px; }
.confirm-box h2 {
  font-family: var(--font-impact); font-weight: 700; font-size: 2rem;
  text-transform: uppercase; margin-bottom: 10px; color: var(--green);
}
.confirm-box p {
  color: #666; font-size: .92rem; margin-bottom: 28px; line-height: 1.6;
}

/* ---- Age Division Result ---- */
.age-div-result {
  display: flex; align-items: center; gap: 10px;
  background: #f0faf0; border: 2px solid var(--green); border-radius: 8px;
  padding: 12px 14px;
}
.age-div-badge {
  font-family: var(--font-impact); font-weight: 700; font-size: 1.2rem;
  color: #fff; background: var(--green); border-radius: 7px;
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; text-transform: uppercase;
}
.age-div-info { display: flex; flex-direction: column; gap: 2px; }
.age-div-calc {
  font-family: var(--font-condensed); font-weight: 700; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .03em; color: #1a1a1a;
}
.age-div-rule {
  font-size: .72rem; color: #888; line-height: 1.4;
}

/* Age out of range */
.age-div-result.out-of-range { border-color: var(--danger); background: #fef0f0; }
.age-div-result.out-of-range .age-div-badge { background: var(--danger); }

/* ---- Waitlist Notice ---- */
.waitlist-notice {
  display: flex; align-items: flex-start; gap: 12px;
  background: #FFF7ED; border: 1px solid #FDBA74;
  border-radius: 8px; padding: 14px 16px; margin-bottom: 14px;
}
.wl-notice-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
.wl-notice-content strong {
  font-size: .85rem; color: #9A3412; display: block; margin-bottom: 4px;
}
.wl-notice-content p {
  font-size: .78rem; color: #78350F; line-height: 1.5; margin: 0;
}

/* ---- Age Exemption ---- */
.age-exempt-wrap { margin-bottom: 14px; }
.age-exempt-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-condensed); font-weight: 600; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .06em;
  color: #b08020; background: none; border: none; cursor: pointer;
  padding: 0; margin-bottom: 4px; transition: color .2s;
  text-decoration: underline; text-underline-offset: 3px;
}
.age-exempt-btn:hover { color: #8b2020; }
.age-exempt-hint {
  font-size: .72rem; color: #888; line-height: 1.5; margin-bottom: 10px;
}
.age-exempt-form {
  background: #fdf8ef; border: 1px solid #e8dcc0;
  border-radius: 8px; padding: 14px; margin-top: 8px;
}
.age-exempt-form .field-group { margin-bottom: 10px; }
.age-exempt-form .field-group:last-of-type { margin-bottom: 0; }
.age-exempt-notice {
  font-size: .73rem; color: #333; background: rgba(245,158,11,.08);
  border-radius: 5px; padding: 10px 12px; line-height: 1.5; margin-top: 10px;
}
.age-exempt-notice strong { color: var(--warning); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 600px) {
  .step-label { display: block; }

  .reg-main { padding: 32px 24px 60px; }

  .paper-form-area {
    padding: 32px 28px 36px;
  }

  .field-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .field-row-3 { grid-template-columns: 2fr 1fr 1fr !important; gap: 12px; }
  .form-step h2 { font-size: 1.5rem; }
  .reg-header-title { font-size: 1.1rem; }
}

@media (min-width: 900px) {
  .reg-header { padding: 16px 32px; }
  .stepper-wrap { padding: 24px 32px 18px; }

  .reg-main { padding: 40px 32px 80px; }

  .form-container { max-width: 520px; }

  .paper-form-area {
    padding: 40px 36px 44px;
  }

  .form-step h2 { font-size: 1.75rem; }
}

@media (min-width: 1200px) {
  .form-container { max-width: 540px; }

  .paper-form-area {
    padding: 44px 40px 48px;
  }

  .form-step h2 { font-size: 1.9rem; }
}
