:root{
  --green-dark:#179169;
  --green:#1FA67A;
  --green-light:#2ECC8F;
  --green-bg:#EAF8F2;
  --ink:#1c2b26;
  --muted:#5d6f68;
  --line:#d9e6e0;
  --white:#ffffff;
  --red:#c2362d;
  --red-bg:#fdeceb;
  --radius:14px;
  --shadow:0 4px 24px rgba(23,145,105,.10);
  --font-head:"Poppins",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --font-body:"Source Sans 3",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--green-bg);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
}

.wrap{max-width:760px;margin:0 auto;padding:0 18px}

/* Header */
header.site{
  background:var(--white);
  border-bottom:3px solid var(--green);
  padding:18px 0;
  text-align:center;
}
header.site img{max-width:340px;width:80%;height:auto}

/* Security banner */
.secure-banner{
  background:var(--red-bg);
  border:2px solid var(--red);
  border-radius:var(--radius);
  color:var(--red);
  padding:14px 16px;
  margin:22px 0;
  font-weight:600;
  font-size:.96rem;
  display:flex;
  gap:10px;
  align-items:flex-start;
  line-height:1.4;
}
.secure-banner .lock{font-size:1.3rem;line-height:1;flex-shrink:0}

/* Cards / choices */
.intro{text-align:center;margin:30px 0 10px}
.intro h1{font-family:var(--font-head);font-size:1.7rem;color:var(--green-dark);font-weight:700}
.intro p{color:var(--muted);margin-top:8px}

.choices{display:grid;gap:18px;margin:28px 0 50px}
@media(min-width:620px){.choices{grid-template-columns:1fr 1fr}}
.choice{
  background:var(--white);
  border:2px solid var(--line);
  border-radius:var(--radius);
  padding:26px 22px;
  text-decoration:none;
  color:var(--ink);
  box-shadow:var(--shadow);
  transition:transform .18s ease,border-color .18s ease;
  display:block;
}
.choice:hover{transform:translateY(-4px);border-color:var(--green)}
.choice .ico{
  width:54px;height:54px;border-radius:12px;
  background:var(--green-bg);color:var(--green-dark);
  display:flex;align-items:center;justify-content:center;
  font-size:1.7rem;margin-bottom:14px;
}
.choice h2{font-family:var(--font-head);font-size:1.18rem;color:var(--green-dark);margin-bottom:6px}
.choice p{color:var(--muted);font-size:.93rem}

/* Form */
.card{
  background:var(--white);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:26px 22px;
  margin:22px 0 40px;
}
.form-title{font-family:var(--font-head);color:var(--green-dark);font-size:1.35rem;margin-bottom:4px}
.form-sub{color:var(--muted);font-size:.92rem;margin-bottom:20px}

fieldset{border:none;margin:0 0 22px}
legend{
  font-family:var(--font-head);
  font-weight:600;font-size:1.02rem;color:var(--green-dark);
  padding-bottom:8px;margin-bottom:14px;width:100%;
  border-bottom:2px solid var(--green-bg);
}

.row{display:grid;gap:14px;margin-bottom:14px}
@media(min-width:560px){.row.two{grid-template-columns:1fr 1fr}.row.three{grid-template-columns:1fr 1fr 1fr}}

label{display:block;font-weight:600;font-size:.88rem;margin-bottom:5px;color:var(--ink)}
label .req{color:var(--red)}
.hint{font-weight:400;font-size:.78rem;color:var(--muted);display:block;margin-top:2px}

input[type=text],input[type=email],input[type=tel],input[type=date],input[type=number],select,textarea{
  width:100%;padding:11px 12px;border:1.5px solid var(--line);
  border-radius:10px;font-size:1rem;font-family:var(--font-body);
  background:#fbfdfc;color:var(--ink);transition:border-color .15s;
}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--green)}
textarea{resize:vertical;min-height:84px}

.age-pill{
  display:inline-block;background:var(--green-bg);color:var(--green-dark);
  font-weight:700;padding:6px 14px;border-radius:20px;font-size:.9rem;margin-top:6px;
}

.check{display:flex;gap:10px;align-items:flex-start;background:var(--green-bg);
  padding:12px 14px;border-radius:10px;margin:6px 0}
.check input{width:18px;height:18px;margin-top:3px;flex-shrink:0}
.check label{margin:0;font-weight:500;font-size:.92rem}

.hidden{display:none}

.minor-box{border:2px dashed var(--green);border-radius:12px;padding:18px;margin-top:8px;background:#f6fdf9}

.btn{
  width:100%;background:var(--green-dark);color:#fff;border:none;
  padding:15px;border-radius:12px;font-size:1.08rem;font-weight:700;
  font-family:var(--font-head);cursor:pointer;transition:background .15s;margin-top:8px;
}
.btn:hover{background:var(--green)}
.btn.secondary{background:#fff;color:var(--green-dark);border:2px solid var(--green-dark)}

.err{color:var(--red);font-size:.82rem;margin-top:4px;display:none}
.field-bad input,.field-bad select{border-color:var(--red)}
.field-bad .err{display:block}

.back{display:inline-block;margin:18px 0;color:var(--green-dark);text-decoration:none;font-weight:600}
.back:hover{text-decoration:underline}

footer.site{text-align:center;padding:26px 18px 40px;color:var(--muted);font-size:.82rem;line-height:1.6}

/* Success */
.success{text-align:center;padding:40px 22px}
.success .big{font-size:3rem;color:var(--green)}
.success h1{font-family:var(--font-head);color:var(--green-dark);margin:10px 0}
.alert-inline{background:var(--red-bg);border:1.5px solid var(--red);color:var(--red);
  padding:12px;border-radius:10px;margin-bottom:18px;font-weight:600;font-size:.9rem}

/* ===== Intake packet: directions, guardian explainer, accessibility ===== */
.directions{background:#fff8e6;border:1.5px solid var(--gold,#D4A017);border-left:5px solid #D4A017;
  border-radius:10px;padding:12px 14px;margin:6px 0 14px}
.directions .dir-title{font-family:var(--font-head);font-weight:700;color:#8a6d0f;margin-bottom:6px;font-size:.95rem}
.directions ol{margin:0 0 0 20px;padding:0}
.directions li{margin-bottom:5px;font-size:.9rem;line-height:1.45}
.child-banner strong{color:var(--green-dark)}

/* visible keyboard focus for accessibility (WCAG 2.4.7) */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,
textarea:focus-visible,.formdoc:focus-visible,[tabindex]:focus-visible{
  outline:3px solid #1FA67A;outline-offset:2px;border-radius:6px}

/* highlight target during the guided walkthrough */
.guide-highlight{outline:3px solid #D4A017 !important;outline-offset:3px;
  box-shadow:0 0 0 6px rgba(212,160,23,.18);border-radius:8px;scroll-margin-top:90px}

/* screen-reader-only helper text */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* signature pad keyboard hint */
.sig-help{font-size:.8rem;color:var(--muted);margin-top:4px}
