/* SoftCare forms — Lagoon brand tokens */
:root {
  --sc-ink: #1F3A3B;
  --sc-teal: #3C8C89;
  --sc-teal-dark: #337876;
  --sc-aqua: #BFE0DC;
  --sc-paper: #EFF5F3;
  --sc-coral: #E0936B;
  --sc-muted: #5b7573;
  --sc-line: #d8e5e2;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sc-paper);
  color: var(--sc-ink);
  font-family: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

/* ---------- top bar ---------- */
.nav {
  background: #fff;
  border-bottom: 1px solid var(--sc-line);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav .brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--sc-ink);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.nav .brand img { width: 34px; height: 34px; border-radius: 8px; display: block; }
.nav .brand b { font-weight: 800; }
.nav .navr { font-size: 13px; color: var(--sc-muted); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- layout ---------- */
.wrap { max-width: 720px; margin: 0 auto; padding: 44px 20px 80px; }
h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 10px;
}
.sub { color: var(--sc-muted); margin: 0 0 24px; font-size: 17px; }
.intro {
  background: var(--sc-aqua);
  border-left: 4px solid var(--sc-teal);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 0 0 36px;
  font-size: 15px;
}

/* ---------- sections ---------- */
fieldset {
  border: 1px solid var(--sc-line);
  background: #fff;
  border-radius: 14px;
  padding: 26px 28px 20px;
  margin: 0 0 26px;
  box-shadow: 0 1px 2px rgba(31,58,59,0.05);
}
legend {
  float: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  padding: 0 0 14px;
  margin: 0 0 6px;
  border-bottom: 1px solid var(--sc-line);
}
legend + * { clear: both; }
fieldset > label:first-of-type { margin-top: 4px; }
legend .n {
  font-family: 'Mulish', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: var(--sc-teal);
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.hint { font-size: 14px; color: var(--sc-muted); margin: 6px 0 14px; }

/* ---------- fields ---------- */
label { display: block; font-weight: 700; font-size: 14.5px; margin: 18px 0 7px; }
label .opt { font-weight: 400; color: var(--sc-muted); }
input[type=text], input[type=number], input[type=email], input[type=tel],
input[type=date], select, textarea {
  width: 100%;
  height: 44px;
  padding: 10px 13px;
  border: 1.5px solid var(--sc-line);
  border-radius: 9px;
  font: inherit;
  font-size: 15px;
  color: var(--sc-ink);
  background: #fcfefe;
}
textarea { height: auto; min-height: 92px; resize: vertical; }
select { appearance: none; 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='%233C8C89' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--sc-teal);
  box-shadow: 0 0 0 3px rgba(60,140,137,0.16);
  background: #fff;
}
input::placeholder { color: #9db4b1; }

/* two-column rows: inputs bottom-aligned so uneven labels don't misalign */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; align-items: end; }
.row > div { display: flex; flex-direction: column; justify-content: flex-end; }
@media (max-width: 580px) { .row { grid-template-columns: 1fr; } }

/* ---------- checkboxes / radios ---------- */
.checks label {
  font-weight: 400;
  font-size: 15px;
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 0;
  padding: 9px 12px;
  border-radius: 8px;
}
.checks label:hover { background: var(--sc-paper); }
.checks input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--sc-teal); flex: none; }
.checks .group-label { font-weight: 700; font-size: 14.5px; margin: 18px 0 7px; padding: 0; display: block; }
.checks .group-label:hover { background: none; }

/* ---------- submit ---------- */
.actions { text-align: center; margin-top: 8px; }
button {
  background: var(--sc-teal);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 15px 44px;
  font: inherit;
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(60,140,137,0.35);
  transition: background 0.15s;
}
button:hover { background: var(--sc-teal-dark); }
button:disabled { opacity: 0.6; cursor: wait; }
.error { color: #a33b1f; font-weight: 700; margin-top: 14px; display: none; text-align: center; }

/* ---------- done ---------- */
.done { display: none; background: #fff; border: 1px solid var(--sc-line); border-radius: 14px; padding: 56px 32px; text-align: center; box-shadow: 0 1px 2px rgba(31,58,59,0.05); }
.done img { width: 56px; height: 56px; border-radius: 13px; margin-bottom: 12px; }
.done h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 28px; margin: 0 0 10px; }
.done p { color: var(--sc-muted); max-width: 46ch; margin: 0 auto; }

/* ---------- misc ---------- */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.footer { margin-top: 40px; font-size: 13px; color: var(--sc-muted); text-align: center; }
.footer a { color: var(--sc-teal); font-weight: 700; text-decoration: none; }

/* ---------- index cards ---------- */
.card-link { color: var(--sc-teal); font-weight: 800; text-decoration: none; font-size: 16px; }
.card-link:hover { color: var(--sc-teal-dark); }
