:root {
  --navy: #1e436c;
  --dark: #132a44;
  --gold: #c9a84c;
  --gold-light: #f5e9c8;
  --white: #ffffff;
  --soft: #f7f5f0;
  --text: #1a1a1a;
  --muted: #666666;
  --risk-high: #c0392b;
  --risk-med: #d68910;
  --risk-low: #1e8449;
  --border: rgba(30,67,108,0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--soft);
  color: var(--text);
  min-height: 100vh;
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.intro {
  margin-bottom: 48px;
  animation: fadeUp 0.6s ease both;
}

.intro h1 {
  font-family: 'Fraunces', serif;
  font-size: 36px;
  font-weight: 300;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.2;
}

.intro h1 em { font-style: italic; color: var(--gold); }

.intro p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
}

.details-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.field label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 6px;
}

.field input, .field select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.field input:focus, .field select:focus { border-color: var(--navy); }

.bmi-display {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
  height: 16px;
  transition: color 0.2s;
}

.error-box {
  background: #fdeaea;
  border: 1.5px solid #c0392b;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 13px;
  color: #6b1a1a;
  margin-bottom: 16px;
  display: none;
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
  .details-row { grid-template-columns: 1fr; }
  .intro h1 { font-size: 26px; }
}
