:root{
  --bg: #f6fafc;
  --card: #ffffff;
  --ink: #1f2a37;
  --muted: #6b7280;
  --brand: #3aa0c6;       /* calm medical teal/blue */
  --brand-2: #7fd1c7;     /* accent mint */
  --ring: rgba(58,160,198,.35);
  --border: #e5e7eb;
  --shadow: 0 10px 25px rgba(31,42,55,.08);
}

*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

/* containers */
.container{ width: min(1100px, 92%); margin-inline: auto; }

/* header */
.site-header{ background:#fff; border-bottom:1px solid var(--border); position:sticky; top:0; z-index:10; }
.header-inner{ display:flex; align-items:center; justify-content:space-between; padding:14px 0; }
.brand{ display:flex; align-items:center; gap:10px; }
.brand-mark{ width:14px; height:14px; border-radius:50%; background:linear-gradient(135deg, var(--brand), var(--brand-2)); }
.brand-name{ font-weight:700; letter-spacing:.2px; }

.nav{ display:flex; gap:18px; }
.nav-link{ color:var(--muted); text-decoration:none; font-size:14px; }
.nav-link[aria-disabled="true"]{ opacity:.6; pointer-events:none; }

/* hero */
.hero{
  background:
    radial-gradient(1200px 400px at 50% -40%, rgba(58,160,198,.18), transparent 60%),
    radial-gradient(900px 300px at 10% -30%, rgba(127,209,199,.18), transparent 60%);
  padding:56px 0 48px;
}
.hero-title{ margin:0 0 8px; font-size: clamp(28px, 4vw, 40px); line-height:1.1; }

/* ✅ tagline */
.hero-tagline {
  margin: 8px 0 12px;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 600;
  color: var(--brand);
}

.hero-subtitle{ margin:0; color:var(--muted); max-width: 780px; }

/* card */
.card{
  background: var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow: var(--shadow);
  padding: 22px;
  margin-top: -28px;
}
.card-header{ margin-bottom:16px; }
.card-title{ margin:0 0 6px; font-size:20px; }
.card-desc{ margin:0; color:var(--muted); }

.form-grid{ display:grid; gap:16px; }
.section{ margin-top:6px; }
.form-row{ display:flex; flex-direction:column; gap:8px; }

.label{ font-weight:600; }
.hint{ color:var(--muted); margin-left:8px; }

.input, select{
  appearance:none;
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px 14px;
  font-size:16px;
  outline:none;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.input:focus, select:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--ring);
}

.inline-inputs{ display:flex; gap:10px; }
.input.small{ width:120px; }

.radio-row{ display:flex; gap:20px; }
.radio input{ margin-right:8px; }
.checkbox input{ margin-right:8px; }

.icon-btn{
  margin-left:10px;
  width:22px; height:22px; border-radius:50%;
  background:#eef7fb; color:#0e7490; border:1px solid #dbeafe;
  font-size:14px; line-height:20px; text-align:center; cursor:pointer;
}

.divider{ height:1px; background:var(--border); margin:10px 0; }

.actions{ margin-top:8px; }
.btn{
  background: linear-gradient(135deg, var(--brand), #2a7ea3);
  color:#fff; border:none; border-radius:12px; padding:12px 18px; font-size:16px;
  cursor:pointer; box-shadow: 0 6px 16px rgba(42,126,163,.22);
}
.btn:hover{ filter: brightness(1.05); }

.result-wrap{ margin-top:10px; }
.result{
  background:#f8fbfc; border:1px solid var(--border); border-radius:12px;
  padding:14px; white-space:pre-line; min-height:24px;
}

/* info blocks */
.info{ padding:28px 0 56px; }
.info-grid{ display:grid; grid-template-columns:1fr; gap:14px; }
.info-card{
  background:#fff; border:1px solid var(--border); border-radius:14px; padding:16px; box-shadow: var(--shadow);
}
@media (min-width: 800px){
  .info-grid{ grid-template-columns:1fr 1fr; }
}

/* footer */
.site-footer{ border-top:1px solid var(--border); background:#fff; }
.footer-inner{ display:flex; align-items:center; justify-content:space-between; padding:16px 0; }
.footer-links a{ color:var(--muted); text-decoration:none; margin-left:14px; }

/* modal */
.modal{
  display:none; position:fixed; inset:0; z-index:50;
  background: rgba(2, 14, 23, .45);
  padding: 24px;
}
.modal-content{
  background:#fff; border-radius:16px; border:1px solid var(--border);
  box-shadow: 0 20px 50px rgba(2,14,23,.25);
  width:min(640px, 100%); margin:40px auto; padding:22px;
}
.close-btn{
  float:right; border:none; background:#f4f7f9; color:#334155; width:32px; height:32px; border-radius:10px;
  cursor:pointer; font-size:18px;
}
.guidelines{ text-align:left; padding-left:18px; line-height:1.6; margin: 10px 0 0; }
