/* Safety-Care branding ----------------------------------------------------
   Colors lifted from the brand icon SVGs; type is Poppins (UI/body) +
   Roboto Slab (headings). */

:root {
  --sc-blue: #0056b8;       /* primary Safety-Care blue */
  --sc-blue-dark: #011689;  /* deep blue */
  --sc-blue-light: #56b3e4; /* light blue */
  --sc-peach: #fc5000;      /* peach/orange accent */
  --sc-peach-soft: #fea068;
  --sc-green: #00943a;
  --sc-ink: #16223a;
  --sc-muted: #5a6678;
  --sc-line: #e3e8f0;
  --sc-bg: #f4f7fb;
  --sc-card: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(1, 22, 137, 0.10);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--sc-ink);
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(86, 179, 228, 0.18), transparent 60%),
    var(--sc-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* Header ------------------------------------------------------------------ */
.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 24px;
}
.site-header .icon { height: 38px; width: auto; }
.site-header .wordmark { height: 26px; width: auto; }

/* Main layout ------------------------------------------------------------- */
main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12px 20px 56px;
}

.card {
  background: var(--sc-card);
  border: 1px solid var(--sc-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 560px;
  width: 100%;
  overflow: hidden;
}

.card__body { padding: 32px 34px 36px; }

h1 {
  font-family: "Roboto Slab", Georgia, serif;
  font-weight: 400;
  font-size: 1.85rem;
  line-height: 1.15;
  margin: 0 0 6px;
  color: var(--sc-blue-dark);
  text-align: center;
  text-wrap: balance;
}

.lede {
  font-size: 1.05rem;
  color: var(--sc-muted);
  margin: 0 0 22px;
}

/* The honest deterrence notice (plan decision #6) ------------------------- */
.notice {
  display: flex;
  gap: 12px;
  background: rgba(86, 179, 228, 0.10);
  border: 1px solid rgba(0, 86, 184, 0.18);
  border-left: 4px solid var(--sc-blue);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 24px;
  font-size: 0.96rem;
}
.notice strong { color: var(--sc-blue-dark); }
.notice .mark { color: var(--sc-peach); flex: none; font-size: 1.1rem; line-height: 1.4; }

/* Form -------------------------------------------------------------------- */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.field input[type="text"],
.field input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--sc-ink);
  background: #fff;
  border: 1.5px solid var(--sc-line);
  border-radius: 10px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.field input:focus {
  outline: none;
  border-color: var(--sc-blue);
  box-shadow: 0 0 0 3px rgba(0, 86, 184, 0.15);
}
.field .errorlist {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  color: #b3261e;
  font-size: 0.9rem;
}

/* Honeypot — hidden from humans. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: var(--sc-blue);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 120ms ease, transform 60ms ease;
}
.btn:hover { background: var(--sc-blue-dark); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.7; cursor: progress; }

.btn .spinner { display: none; }
.btn.is-loading .label { display: none; }
.btn.is-loading .spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2.5px solid rgba(255,255,255,0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.alert {
  background: #fff4ef;
  border: 1px solid var(--sc-peach-soft);
  border-left: 4px solid var(--sc-peach);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 22px;
  font-size: 0.95rem;
}

.fineprint {
  margin: 18px 0 0;
  font-size: 0.86rem;
  color: var(--sc-muted);
}

/* Footer ------------------------------------------------------------------ */
.site-footer {
  text-align: center;
  padding: 18px;
  font-size: 0.85rem;
  color: var(--sc-muted);
}

@media (max-width: 540px) {
  .site-header { padding: 16px 18px; }
  .card__body { padding: 26px 22px 30px; }
  h1 { font-size: 1.55rem; }
}
