/* ═══════════════════════════════════════════════════════════════════════════
   RALLY ATL — STUDENT REGISTRATION & WAIVER FORM STYLESHEET
   /public/registration.css
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --primary-navy: var(--navy, #1a2e44);
  --primary-green: var(--green, #2ecc71);
  --primary-green-dark: var(--green-d, #27ae60);
  --card-bg: var(--white, #ffffff);
  --border-color: var(--border, #e2e8f0);
  --text-dark: #0f172a;
  --text-muted: var(--muted, #64748b);
  --accent-blue: #3b82f6;
  --accent-pink: #ec4899;
  --accent-yellow: #f59e0b;
  --accent-red: #ef4444;
}

/* ── 1. Container & Card Layout ── */
.reg-container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 16px 16px 24px 16px;
}

.reg-card {
  background: var(--card-bg);
  border-radius: var(--radius, 12px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  padding: 18px;
}



/* ── 3. Form Label & Required Star Helpers ── */
.input-group label {
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
}

.required-star {
  color: var(--accent-red);
  margin-left: 2px;
}

/* ── 4. Gender Selector Radios unified in elements.css ── */

/* ── 5. Waiver & Photo Permission Box ── */
.waiver-box {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.waiver-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.waiver-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-navy);
}

.waiver-version-tag {
  font-size: 11.5px;
  font-weight: 700;
  background: var(--primary-navy);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 12px;
}

.waiver-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary-navy);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 10px;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.waiver-link-btn:hover {
  background: #243b55;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 46, 68, 0.2);
}

.permission-radio-group {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.permission-radio-item {
  position: relative;
}

.permission-radio-item input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.permission-btn-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.permission-radio-item input[type="radio"]:checked+.permission-btn-label.granted {
  border-color: var(--primary-green-dark);
  background: #f0fdf4;
  color: #15803d;
  font-weight: 700;
}

.permission-radio-item input[type="radio"]:checked+.permission-btn-label.optout {
  border-color: var(--accent-yellow);
  background: #fffbeb;
  color: #b45309;
  font-weight: 700;
}

/* ── 6. Signature & Actions ── */
.signature-box {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  padding: 16px;
  margin-top: 14px;
}

.reg-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  user-select: none;
  line-height: 1.4;
  margin-top: 14px;
}

.reg-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-green);
  cursor: pointer;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ── 7. Alert & Notice Boxes ── */
.reg-alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
}

.reg-alert--warning {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  color: #92400e;
}

.reg-alert--warning strong {
  color: #78350f;
}

.reg-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.btn-reg-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary-green);
  color: #ffffff;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(46, 204, 113, 0.35);
  width: 100%;
}

.btn-reg-submit:hover:not(:disabled) {
  background: var(--primary-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(39, 174, 96, 0.45);
}

.btn-reg-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ── 7. Success Confirmation Screen ── */
.confirm-card {
  display: none;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border-color);
  padding: 40px 24px;
  text-align: center;
}

.confirm-card.active {
  display: block;
}

.confirm-icon-wrap {
  width: 72px;
  height: 72px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 20px auto;
}

.confirm-card h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.confirm-card p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 24px auto;
  line-height: 1.5;
}

.confirm-details-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px;
  text-align: left;
  max-width: 520px;
  margin: 0 auto 28px auto;
}

.confirm-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}

.confirm-detail-row:not(:last-child) {
  border-bottom: 1px dashed #e2e8f0;
}

.confirm-detail-label {
  color: var(--text-muted);
  font-weight: 600;
}

.confirm-detail-value {
  color: var(--text-dark);
  font-weight: 700;
}

.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-confirm-secondary {
  background: #f1f5f9;
  color: var(--primary-navy);
  border: 1px solid #cbd5e1;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-confirm-secondary:hover {
  background: #e2e8f0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   8. MEDIA QUERIES (Sequential Order)
   ═══════════════════════════════════════════════════════════════════════════ */

@media (min-width: 480px) {
  .reg-actions {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }

  .btn-reg-submit {
    width: auto;
  }
}

@media (min-width: 640px) {
  .reg-card {
    padding: 36px;
  }
}