/* ==========================================================================
   San Tan Valley Fire District — Bootstrap 5 theme overlay
   Brand: red #b32121, dark #161616, charcoal #242424, gold #d7a43b
   ========================================================================== */

:root {
  --stv-red:       #b32121;
  --stv-red-dark:  #8a1818;
  --stv-dark:      #161616;
  --stv-charcoal:  #242424;
  --stv-gold:      #d7a43b;
  --stv-light:     #f7f7f7;
  --stv-muted:     #666666;

  /* Override Bootstrap focus/link to brand red */
  --bs-link-color: var(--stv-red);
  --bs-link-hover-color: var(--stv-red-dark);
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  line-height: 1.6;
  background: #fff;
}

main { display: block; }

/* ---------- Navbar ---------- */
.stv-navbar {
  background: var(--stv-dark) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.stv-brand {
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff !important;
  line-height: 1.1;
}
.stv-brand-sub {
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: #ddd;
  font-size: 12px;
  margin-top: 2px;
}
.stv-navbar .nav-link {
  color: #eee !important;
  font-size: 14px;
  font-weight: 500;
  padding: .5rem .85rem;
}
.stv-navbar .nav-link:hover,
.stv-navbar .nav-link.active {
  color: var(--stv-gold) !important;
}

/* ---------- Buttons ---------- */
.btn-stv-primary {
  background: var(--stv-red);
  color: #fff;
  border: 0;
  font-weight: 700;
  border-radius: 7px;
  padding: .6rem 1.1rem;
}
.btn-stv-primary:hover,
.btn-stv-primary:focus {
  background: var(--stv-red-dark);
  color: #fff;
}
.btn-stv-secondary {
  background: #fff;
  color: #111;
  border: 0;
  font-weight: 700;
  border-radius: 7px;
  padding: .6rem 1.1rem;
}
.btn-stv-secondary:hover { background: #eee; color: #111; }

.btn-stv-outline {
  background: transparent;
  color: var(--stv-red);
  border: 2px solid var(--stv-red);
  font-weight: 700;
  border-radius: 7px;
  padding: .55rem 1.05rem;
}
.btn-stv-outline:hover { background: var(--stv-red); color: #fff; }

/* ---------- Hero ---------- */
.stv-hero {
  background: linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.55)),
              url('https://img1.wsimg.com/isteam/stock/43073');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 95px 0;
}
.stv-hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 800;
  margin: 12px 0 18px;
}
.stv-hero p { font-size: 20px; max-width: 760px; }
.stv-eyebrow {
  color: var(--stv-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 0;
}

/* ---------- Page title banner ---------- */
.stv-page-title {
  background: var(--stv-dark);
  color: #fff;
  padding: 58px 0;
}
.stv-page-title h1 {
  font-size: clamp(32px, 5vw, 52px);
  margin: 0;
  font-weight: 800;
}

/* ---------- Sections ---------- */
.stv-section { padding: 64px 0; }
.stv-section.alt { background: var(--stv-light); }

h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; font-weight: 800; }
h3 { font-size: 24px; }

.lead-stv { font-size: 20px; color: #444; max-width: 850px; }

/* ---------- Cards (Bootstrap-friendly campaign cards) ---------- */
.stv-card {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  height: 100%;
}
.stv-card.dark {
  background: var(--stv-charcoal);
  color: #fff;
  border: 0;
}
.stv-metric {
  font-size: 42px;
  font-weight: 900;
  color: var(--stv-red);
  line-height: 1;
}
.stv-card.dark .stv-metric { color: var(--stv-gold); }

/* ---------- Callouts ---------- */
.stv-callout {
  border-left: 7px solid var(--stv-red);
  background: #fff;
  padding: 24px;
  margin: 28px 0;
  border-radius: 8px;
  box-shadow: 0 5px 16px rgba(0,0,0,.06);
  font-size: 20px;
  font-weight: 700;
}
.stv-callout.dark {
  background: var(--stv-dark);
  color: #fff;
  border-left-color: var(--stv-gold);
}

/* ---------- Campaign-style alert variants ---------- */
.stv-alert {
  border: 0;
  border-left: 6px solid;
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  font-weight: 500;
}
.stv-alert-danger {
  background: #fdecec;
  border-left-color: var(--stv-red);
  color: #5a0e0e;
}
.stv-alert-warning {
  background: #fff8e1;
  border-left-color: var(--stv-gold);
  color: #5a4310;
}

/* ---------- Tables ---------- */
.stv-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.stv-table th, .stv-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}
.stv-table th {
  background: var(--stv-dark);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .9rem;
}

/* ---------- Footer ---------- */
.stv-footer {
  background: var(--stv-dark);
  color: #ddd;
  padding-bottom: 0;
}
.stv-footer a { color: #fff; text-decoration: none; }
.stv-footer a:hover { color: var(--stv-gold); }

/* ---------- Form notice ---------- */
.stv-notice {
  font-size: 14px;
  color: #555;
  background: #fffbe9;
  border: 1px solid #f0d58b;
  padding: 16px;
  border-radius: 8px;
}

/* ---------- Form ---------- */
/* Text-style inputs and textareas keep the full pill treatment.
   Radios and checkboxes get their own larger, more visible styling. */
.stv-form input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]),
.stv-form textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: .85rem;
  font-family: inherit;
}

/* Radios and checkboxes — larger and more visible.
   Native appearance is preserved but with site-themed accent color when checked. */
.stv-form input[type="radio"],
.stv-form input[type="checkbox"] {
  width: auto;
  margin: 0 .65rem 0 0;
  vertical-align: middle;
}

/* One option per row, neatly aligned. */
.stv-form .form-check {
  margin-bottom: .55rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .25rem .5rem;
  border-radius: 4px;
  transition: background-color .15s ease;
}

/* Subtle hover so users see the row is interactive. */
.stv-form .form-check:hover {
  background-color: rgba(179, 33, 33, 0.05);
}

.stv-form .form-check-label {
  margin-bottom: 0;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.4;
  flex-grow: 1;
}

/* Larger, more pronounced radio/checkbox boxes. */
.stv-form .form-check-input {
  width: 1.75em;
  height: 1.75em;
  margin: 0;
  flex-shrink: 0;
  border: 3px solid #555;
  cursor: pointer;
  background-color: #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 75% 75%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

/* Hover — slight emphasis so the boxes feel interactive */
.stv-form .form-check-input:hover {
  border-color: var(--stv-red, #b32121);
  box-shadow: 0 0 0 3px rgba(179, 33, 33, 0.10);
}

/* Checked state — solid red fill with white indicator */
.stv-form .form-check-input:checked {
  background-color: var(--stv-red, #b32121);
  border-color: var(--stv-red, #b32121);
}

/* Radio: white dot inside the filled red circle */
.stv-form .form-check-input[type="radio"] {
  border-radius: 50%;
}
.stv-form .form-check-input[type="radio"]:checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle r='3' fill='%23fff' cx='8' cy='8'/%3e%3c/svg%3e");
}

/* Checkbox: white checkmark inside the filled red square */
.stv-form .form-check-input[type="checkbox"] {
  border-radius: 4px;
}
.stv-form .form-check-input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M3 8l3.5 3.5L13 5'/%3e%3c/svg%3e");
}

/* Clear focus ring for keyboard users */
.stv-form .form-check-input:focus,
.stv-form .form-check-input:focus-visible {
  outline: 3px solid rgba(179, 33, 33, 0.45);
  outline-offset: 2px;
  border-color: var(--stv-red, #b32121);
}

/* Fieldset legends as section headings, not stretched inputs. */
.stv-form fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 1.5rem 0;
}
.stv-form fieldset legend {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: .65rem;
  padding: 0;
  border: 0;
  width: auto;
  float: none;
}

/* ---------- Contact section disabled state ---------- */
/* Used by the survey: when the user selects "No" to "Would you like to be
   contacted with updates?", the contact info block is grayed out.
   Toggle the .stv-contact-disabled class via JavaScript. */
.stv-contact-block {
  transition: opacity .2s ease;
}
.stv-contact-block.stv-contact-disabled {
  opacity: .45;
  pointer-events: none;
  user-select: none;
}
.stv-contact-block.stv-contact-disabled input,
.stv-contact-block.stv-contact-disabled textarea {
  background-color: #f3f3f3;
  border-color: #ddd;
}

/* ---------- Pills ---------- */
.stv-pill {
  display: inline-block;
  background: #eee;
  border-radius: 999px;
  padding: 6px 12px;
  margin: 4px 4px 4px 0;
  font-size: 13px;
}

/* ---------- Mobile ---------- */
@media (max-width: 991.98px) {
  .stv-navbar .nav-link { padding: .65rem 0; }
  .stv-hero { padding: 64px 0; }
  .stv-section { padding: 48px 0; }
}
