/* ============================================
   HEALTH RUN — Design System
   Premium Professional Registration Form
   ============================================ */
:root {
  --bg-primary: #04090c;
  --bg-secondary: #0a1317;
  --bg-card: rgba(10, 19, 23, 0.94);
  --bg-input: rgba(18, 30, 36, 0.8);
  --surface: #172a32;
  --border: rgba(52, 211, 153, 0.1);
  --border-hover: rgba(52, 211, 153, 0.25);
  --border-focus: rgba(52, 211, 153, 0.5);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #5a6a85;
  --accent: #34d399;
  --accent-2: #10b981;
  --gradient-1: linear-gradient(135deg, #059669, #10b981, #34d399);
  --gradient-2: linear-gradient(135deg, #0d9488, #34d399);
  --gradient-hero: radial-gradient(ellipse at 50% 0%, rgba(16,185,129,0.08) 0%, transparent 70%);
  --success: #34d399;
  --error: #f87171;
  --warning: #fbbf24;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 10px 40px rgba(0,0,0,0.35);
  --shadow-lg: 0 25px 80px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 60px rgba(52,211,153,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ---- Particles ---- */
.bg-particles { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-particles span {
  position: absolute; bottom: -20px;
  background: var(--accent);
  border-radius: 50%;
  animation: particleRise linear infinite;
}
@keyframes particleRise {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 0.7; }
  100% { transform: translateY(-110vh) scale(0); opacity: 0; }
}

/* ---- Navbar ---- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 10, 24, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800; font-size: 24px;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.accent { color: var(--accent); }

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 80px 32px 56px;
  position: relative; z-index: 1;
  background: var(--gradient-hero);
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.hero-badge {
  display: inline-block;
  background: rgba(52,211,153,0.08);
  border: 1px solid rgba(52,211,153,0.2);
  color: var(--accent);
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease;
}
.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(44px, 8vw, 80px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 40%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease;
}
.hero-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 600px; margin: 0 auto 40px;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.1s both;
}
.hero-stats {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0;
  background: rgba(12, 18, 37, 0.7);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 4px;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.stat {
  text-align: center;
  padding: 14px 28px;
  border-radius: 12px;
  transition: background 0.2s;
}
.stat:hover { background: rgba(52,211,153,0.06); }
.stat-num {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 24px; font-weight: 800;
  color: var(--accent);
}
.stat-label { font-size: 11px; color: var(--text-muted); letter-spacing: 1.5px; text-transform: uppercase; }
.stat-divider { width: 1px; height: 32px; background: var(--border); }

/* ---- Main ---- */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  position: relative; z-index: 1;
}

/* ---- Form ---- */
.reg-form {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 52px 64px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  animation: fadeInUp 0.6s ease;
}
.form-header { text-align: center; margin-bottom: 40px; }
.form-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 28px; font-weight: 700;
  margin-bottom: 8px;
}
.form-header p { color: var(--text-secondary); font-size: 14px; }

.form-section {
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.form-section:last-of-type { border-bottom: none; margin-bottom: 16px; padding-bottom: 0; }

.section-title {
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.section-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  background: var(--gradient-2);
  color: var(--bg-primary);
  border-radius: 50%;
  font-size: 11px; font-weight: 800;
}

.form-stack { display: flex; flex-direction: column; gap: 18px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }

label {
  font-size: 13px; font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}
.req { color: var(--error); }

input, select, textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  outline: none;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(52,211,153,0.1);
  background: rgba(14, 25, 20, 1);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
textarea { resize: vertical; min-height: 60px; }
select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
select option { background: var(--bg-secondary); color: var(--text-primary); }

/* File Input */
.file-input { padding: 10px 14px; cursor: pointer; }
.file-input::file-selector-button {
  background: var(--gradient-2);
  color: var(--bg-primary);
  border: none;
  padding: 7px 18px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  margin-right: 12px;
  transition: opacity 0.2s;
}
.file-input::file-selector-button:hover { opacity: 0.85; }

/* Radio Cards */
.radio-group { display: flex; flex-direction: column; gap: 10px; }
.radio-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.radio-card:hover { border-color: var(--border-hover); background: rgba(20, 30, 55, 0.95); }
.radio-card input { display: none; }
.radio-check {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  margin-top: 2px;
}
.radio-card input:checked ~ .radio-check {
  border-color: var(--accent);
  background: var(--accent);
}
.radio-card input:checked ~ .radio-check::after {
  content: '';
  width: 8px; height: 8px;
  background: var(--bg-primary);
  border-radius: 50%;
}
.radio-card input:checked ~ .radio-content strong { color: var(--accent); }
.radio-card:has(input:checked) {
  border-color: rgba(52,211,153,0.35);
  background: rgba(52,211,153,0.04);
  box-shadow: 0 0 20px rgba(52,211,153,0.06);
}
.radio-content { flex: 1; }
.radio-content strong { display: block; font-size: 14px; color: var(--text-primary); margin-bottom: 4px; transition: color 0.2s; }
.radio-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* Checkbox Cards */
.checkbox-group { display: flex; flex-direction: column; gap: 8px; }
.check-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  transition: border-color 0.2s, background 0.2s;
}
.check-card:hover { border-color: var(--border-hover); }
.check-card input { display: none; }
.check-box {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border: 2px solid var(--text-muted);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.check-card input:checked ~ .check-box {
  background: var(--accent);
  border-color: var(--accent);
}
.check-card input:checked ~ .check-box::after {
  content: '\2713'; color: var(--bg-primary); font-size: 12px; font-weight: 800;
}
.check-card:has(input:checked) {
  border-color: rgba(52,211,153,0.35);
  background: rgba(52,211,153,0.04);
}
.check-card:has(input:checked) span:last-child { color: var(--accent); }

/* Total Card */
.total-card {
  background: rgba(52,211,153,0.04);
  border: 1px solid rgba(52,211,153,0.15);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  overflow: hidden;
}
.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(56,189,248,0.06);
}
.total-row:last-child { border-bottom: none; }
.total-row span:last-child { font-weight: 600; color: var(--text-primary); }
.total-row-final {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(52,211,153,0.2);
  border-bottom: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.total-price {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
}

/* Payment Info */
.payment-info {
  background: rgba(52,211,153,0.04);
  border: 1px solid rgba(52,211,153,0.12);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.payment-info strong { color: var(--text-primary); }

/* Waiver */
.waiver-text {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.waiver-check { margin-bottom: 12px; }
.notice-text { font-size: 13px; color: var(--text-muted); font-style: italic; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px;
  border: none; border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--gradient-1);
  color: var(--bg-primary);
  box-shadow: 0 6px 24px rgba(52,211,153,0.25);
}
.btn-primary:hover { box-shadow: 0 10px 36px rgba(52,211,153,0.4); }
.btn-primary:disabled {
  background: #13201a !important;
  color: #4b6256 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  transform: none !important;
  opacity: 0.75;
}
.btn-submit { width: 100%; padding: 16px; font-size: 16px; letter-spacing: 0.5px; border-radius: var(--radius-md); }
.btn-submit.loading { opacity: 0.7; pointer-events: none; }
.form-actions { margin-top: 8px; }

/* Success Card */
.success-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(74,222,128,0.15);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(74,222,128,0.06);
  animation: fadeInUp 0.6s ease;
}
.success-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: #fff;
  margin: 0 auto 20px;
  box-shadow: 0 8px 30px rgba(74,222,128,0.25);
}
.success-card h2 { font-family: 'Outfit', sans-serif; font-size: 26px; margin-bottom: 10px; color: var(--success); }
.success-card p { color: var(--text-secondary); margin-bottom: 28px; max-width: 380px; margin-left: auto; margin-right: auto; }

/* Alert */
.alert { padding: 14px 20px; border-radius: var(--radius-md); margin-bottom: 20px; font-size: 14px; }
.alert-error { background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.2); color: var(--error); }

/* Footer */
.footer {
  text-align: center;
  padding: 32px 20px;
  color: var(--text-muted);
  font-size: 13px;
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .form-grid-2 { grid-template-columns: 1fr; }
  .reg-form { padding: 32px 24px; border-radius: var(--radius-lg); }
  .hero { padding: 50px 20px 36px; }
  .hero-title { font-size: clamp(36px, 10vw, 56px); }
  .hero-desc { font-size: 13px; padding: 0 8px; }
  .stat { padding: 12px 20px; }
  .stat-num { font-size: 20px; }
  .main-content { padding: 24px 16px 60px; }
  .form-header h2 { font-size: 24px; }
  .radio-card { padding: 14px 14px; }
  .radio-content strong { font-size: 13px; }
  .radio-desc { font-size: 11px; }
  .check-card { padding: 12px 14px; font-size: 13px; }
  .payment-info { padding: 14px 16px; font-size: 12px; }
  .waiver-text { padding: 16px; font-size: 12px; }
  .total-card { padding: 16px 18px; }
  .total-price { font-size: 22px; }
  .success-card { padding: 40px 24px; }
}

@media (max-width: 480px) {
  body { font-size: 14px; }
  .navbar { padding: 0 14px; }
  .nav-inner { height: 56px; }
  .nav-logo { font-size: 20px; }
  .hero { padding: 36px 14px 28px; }
  .hero-badge { font-size: 10px; padding: 6px 16px; letter-spacing: 2px; }
  .hero-title { font-size: clamp(28px, 11vw, 40px); letter-spacing: -1px; }
  .hero-desc { font-size: 12px; line-height: 1.6; margin-bottom: 24px; }
  .hero-stats { border-radius: 12px; flex-wrap: wrap; justify-content: center; gap: 10px 4px; padding: 12px 8px; }
  .stat { padding: 6px 12px; flex: 1 1 40%; min-width: 80px; }
  .stat-num { font-size: 18px; }
  .stat-label { font-size: 9px; }
  .stat-divider { display: none; }
  .main-content { padding: 16px 8px 50px; }
  .reg-form { padding: 22px 14px; border-radius: 18px; }
  .form-header { margin-bottom: 24px; }
  .form-header h2 { font-size: 22px; }
  .form-header p { font-size: 13px; }
  .form-section { margin-bottom: 24px; padding-bottom: 22px; }
  .section-title { font-size: 13px; gap: 10px; margin-bottom: 16px; }
  .section-num { width: 26px; height: 26px; font-size: 10px; }
  label { font-size: 12px; }
  input, select, textarea { padding: 12px 14px; font-size: 14px; }
  .radio-card { padding: 12px 12px; gap: 10px; border-radius: 12px; }
  .radio-check { width: 18px; height: 18px; }
  .radio-content strong { font-size: 12px; line-height: 1.4; }
  .radio-desc { font-size: 10px; line-height: 1.4; }
  .check-card { padding: 11px 12px; gap: 10px; font-size: 12px; }
  .check-box { width: 18px; height: 18px; }
  .payment-info { padding: 12px 12px; font-size: 11px; }
  .payment-info p { word-break: break-word; }
  .waiver-text { padding: 14px; font-size: 11px; line-height: 1.7; }
  .notice-text { font-size: 12px; }
  .total-card { padding: 14px 16px; }
  .total-row { font-size: 12px; padding: 7px 0; }
  .total-row-final { font-size: 14px; }
  .total-price { font-size: 20px; }
  .btn-submit { padding: 14px; font-size: 15px; }
  .success-card { padding: 32px 16px; border-radius: 18px; }
  .success-icon { width: 60px; height: 60px; font-size: 26px; }
  .success-card h2 { font-size: 20px; }
  .success-card p { font-size: 13px; }
  .footer { padding: 20px 14px; font-size: 12px; }
}

@media (max-width: 360px) {
  .hero-title { font-size: 26px; }
  .stat { padding: 6px 8px; flex: 1 1 45%; }
  .stat-num { font-size: 16px; }
  .reg-form { padding: 18px 10px; border-radius: 14px; }
  .radio-content strong { font-size: 11px; }
  .radio-desc { font-size: 9px; }
  .total-price { font-size: 18px; }
}
