:root {
  --bg: #f3f3fd;
  --card: #ffffff;
  --ink: #2c3345;
  --muted: #6c7385;
  --line: #d3d6e0;
  --accent: #3c66f0;
  --go: #2e9e57;
  --bad: #c0392b;
  --radius: 6px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; }
.page { max-width: 760px; margin: 0 auto; padding: 24px 16px 60px; }
.brand { text-align: center; padding: 8px 0 18px; }
.brand img { height: auto; }
.card { background: var(--card); border-radius: 8px; box-shadow: 0 2px 10px rgba(40, 50, 90, .07); padding: 28px 32px; margin-bottom: 18px; }
h1 { font-size: 24px; line-height: 1.3; margin: 0 0 10px; }
h2 { font-size: 19px; margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid #e4e6ee; }
.lead { color: var(--muted); margin: 0; }
.q { margin: 0 0 24px; }
.ql { display: block; font-size: 17px; font-weight: 500; margin-bottom: 10px; }
input[type="text"], input:not([type]), input[type="email"], input[type="month"], input[type="date"] {
  width: 100%; height: 46px; padding: 0 12px; font: inherit; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(60, 102, 240, .15); }
input:disabled { background: #f6f7fa; color: #7c8294; }
input.missing { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(192, 57, 43, .12); }
small { display: block; color: var(--muted); font-size: 13px; margin: 6px 0 12px; }
.w-md { max-width: 340px; }
.w-sm { max-width: 220px; }
.grid { display: grid; gap: 12px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.name { grid-template-columns: 1fr 1fr 1fr 0.5fr; }
.choices { display: flex; gap: 28px; }
.choices label, .check { display: flex; align-items: center; gap: 10px; font-size: 16px; margin: 8px 0; }
.check input, .choices input { width: 18px; height: 18px; margin: 0; }
.fixed { opacity: .6; }
.note { color: var(--ink); margin: 0 0 20px; }
.indent { margin: 6px 0 0 28px; }
.sig { position: relative; border: 1px solid var(--line); border-radius: var(--radius); max-width: 520px; background: #fff; }
.sig canvas { display: block; width: 100%; height: 160px; touch-action: none; cursor: crosshair; }
.sig .link { position: absolute; right: 12px; bottom: 8px; }
.witness summary { cursor: pointer; color: var(--ink); margin-bottom: 16px; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
button { font: inherit; border-radius: var(--radius); padding: 12px 22px; cursor: pointer; border: 1px solid transparent; }
button.primary { background: var(--go); color: #fff; }
button.primary:hover { background: #26864a; }
button.secondary { background: #e9ebf3; color: var(--ink); }
button.secondary:hover { background: #dfe2ec; }
button.link { background: none; border: 0; padding: 0; color: #6b74a8; font-size: 14px; }
button:disabled { opacity: .6; cursor: default; }
.msg { padding: 12px 14px; border-radius: var(--radius); margin: 0 0 14px; }
.msg.error { color: var(--bad); background: #fdecea; border: 1px solid #f5c6c0; }
.msg.ok { color: #1e6b3c; background: #e6f4ea; border: 1px solid #b7dfc1; }
.after { color: var(--muted); font-size: 14px; margin-top: 18px; }
@media (max-width: 600px) {
  .card { padding: 22px 18px; }
  .grid.two, .grid.name { grid-template-columns: 1fr; }
}
@media print { body { background: #fff; } }

.privacy { background: #eef6ef; border: 1px solid #c9e3cf; color: #24563a; border-radius: 8px; padding: 12px 16px; margin: 0 0 18px; font-size: 15px; }
.forms { list-style: none; margin: 0; padding: 0; }
.forms li { border: 1px solid #e4e6ee; border-radius: 8px; margin-bottom: 12px; }
.forms a { display: block; padding: 16px 18px; color: var(--ink); text-decoration: none; }
.forms a:hover { background: #f7f8fc; }
.forms b { display: block; font-size: 17px; }
.forms span { color: var(--muted); font-size: 14px; }
.how li { margin-bottom: 6px; }
a { color: var(--accent); }

/* Home page: one section per form, with a navy button */
.form-card { display: flex; align-items: center; gap: 24px; }
.form-card .form-text { flex: 1; }
.form-card h2 { margin-bottom: 8px; padding-bottom: 0; border-bottom: 0; }
.form-card .lead { margin: 0; }
.form-card .button { flex: none; padding: 12px 32px; }
@media (max-width: 600px) { .form-card { flex-direction: column; align-items: stretch; } .form-card .button { text-align: center; } }
a.button { display: inline-block; text-decoration: none; font-weight: 600; border-radius: var(--radius); padding: 12px 24px; }
a.button.navy { background: #1e3a8a; color: #fff; }
a.button.navy:hover { background: #172e6e; }

.site-foot { color: var(--muted); font-size: 13px; text-align: center; margin-top: 28px; }
.site-foot p { margin: 6px 0; }

/* Two-form flow */
.step { color: #1e3a8a; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 6px; }
ol.steps { margin: 16px 0 0; padding-left: 22px; }
.msg a { font-weight: 600; }
.msg a.button.next { margin-top: 12px; color: #fff; }

/* Globe Life page */
.choices.wrap { flex-wrap: wrap; gap: 10px 24px; }
.grid.name3 { grid-template-columns: 1fr 0.4fr 1fr; }
h3 { font-size: 17px; margin: 26px 0 14px; }
.yn .choices { margin-bottom: 4px; }
details.agent summary { cursor: pointer; list-style: none; }
details.agent summary h2 { display: inline-block; border: 0; margin: 0; padding: 0; }
details.agent summary::after { content: " (prefilled, tap to check)"; color: var(--muted); font-size: 14px; }
details.agent[open] summary { margin-bottom: 18px; }
select { height: 46px; padding: 0 10px; font: inherit; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; width: 100%; }
@media (max-width: 600px) { .grid.name3 { grid-template-columns: 1fr; } }
.alert { background: #fff6e0; border: 1px solid #f0d48a; color: #6b4e00; border-radius: 8px; padding: 12px 16px; margin: 8px 0 16px; font-size: 15px; }
.alert a { color: #6b4e00; font-weight: 600; }
