:root {
  --brand-red: #d52b1e;
  --brand-red-dark: #a91f16;
  --ink: #1f2933;
  --muted: #5d6b78;
  --line: #cfd7df;
  --paper: #fbf7f3;
  --panel: #f1ebe5;
  --field-bg: #fffdfb;
  --danger: #b42318;
  --success-bg: #edf9f0;
  --success-text: #155724;
  --error-bg: #fff1f0;
  --shadow: 0 24px 70px rgba(31, 41, 51, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(213, 43, 30, 0.18), transparent 30rem),
    radial-gradient(circle at bottom right, rgba(31, 41, 51, 0.12), transparent 28rem),
    linear-gradient(135deg, #d9dee4 0%, #eef0f2 45%, #d2d8df 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 10px;
  background: var(--brand-red);
  z-index: 2;
}

.page-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 40px 18px;
}

.hero-card {
  overflow: hidden;
  background: var(--paper);
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(207, 215, 223, 0.95);
}

.brand-bar {
  height: 16px;
  background: var(--brand-red);
}

.agency-header {
  padding: 36px 32px 26px;
  text-align: center;
  background: linear-gradient(180deg, #fff9f6 0%, var(--paper) 100%);
}

h1 {
  margin: 0;
  color: var(--brand-red-dark);
  font-size: clamp(2.15rem, 6vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.agency-details {
  margin: 18px auto 0;
  max-width: 470px;
  line-height: 1.6;
  color: var(--brand-red-dark);
  font-size: 1rem;
  font-weight: 700;
}

.agency-details a {
  color: var(--brand-red-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 800;
}

.intro-panel {
  margin: 0 32px 28px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 7px solid var(--brand-red);
  border-radius: 22px;
  text-align: center;
}

.intro-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 4vw, 2rem);
}

.intro-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.lead-form {
  padding: 0 32px 34px;
}

.form-grid {
  display: grid;
  gap: 18px;
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.address-grid {
  grid-template-columns: minmax(0, 1.7fr) 92px minmax(120px, 0.7fr);
}

.field-group,
.choice-section {
  margin-bottom: 18px;
}

label,
legend {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--ink);
}

legend {
  padding: 0;
}

input[type="text"],
input[type="date"],
input[type="tel"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 16px;
  font-size: 1rem;
  color: var(--ink);
  background: var(--field-bg);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 4px rgba(213, 43, 30, 0.14);
}

.choice-section {
  border: 0;
  padding: 0;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice-row.three-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-row.home-options {
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
}

.choice-card {
  margin: 0;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  background: var(--field-bg);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.choice-card input {
  width: 20px;
  height: 20px;
  margin: 0 12px 0 0;
  accent-color: var(--brand-red);
}

.choice-card:has(input:checked) {
  border-color: var(--brand-red);
  background: #fff0ed;
  box-shadow: 0 0 0 4px rgba(213, 43, 30, 0.08);
}

.choice-card span {
  font-weight: 700;
}

.other-home-field {
  display: none;
  margin-top: 14px;
  margin-bottom: 0;
}

.other-home-field.show {
  display: block;
}

.helper-text {
  margin: -2px 0 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.error {
  min-height: 18px;
  margin: 6px 0 0;
  color: var(--danger);
  font-size: 0.9rem;
}


.disclosure-section {
  margin: 6px 0 20px;
}

.disclosure-box {
  max-height: 260px;
  overflow-y: auto;
  padding: 18px 18px 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff8f5;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.disclosure-box h3 {
  margin: 0 0 10px;
  color: var(--brand-red-dark);
  font-size: 1.12rem;
}

.disclosure-box p {
  margin: 0 0 14px;
  color: #384550;
  font-size: 0.92rem;
  line-height: 1.58;
}

.acknowledgment-card {
  margin: 12px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px 16px;
  background: var(--field-bg);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.acknowledgment-card input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--brand-red);
}

.acknowledgment-card span {
  font-weight: 800;
  line-height: 1.35;
}

.acknowledgment-card:has(input:checked) {
  border-color: var(--brand-red);
  background: #fff0ed;
  box-shadow: 0 0 0 4px rgba(213, 43, 30, 0.08);
}

.form-message {
  display: none;
  margin: 6px 0 18px;
  padding: 15px 16px;
  border-radius: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.form-message.show {
  display: block;
}

.form-message.success {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid #b8e8c4;
}

.form-message.error-message {
  background: var(--error-bg);
  color: var(--danger);
  border: 1px solid #ffd4d0;
}

.submit-button {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 16px 20px;
  background: var(--brand-red);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(213, 43, 30, 0.28);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.submit-button:hover {
  background: var(--brand-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(213, 43, 30, 0.34);
}

.submit-button:disabled {
  opacity: 0.68;
  cursor: wait;
  transform: none;
}

.privacy-note {
  margin: 16px auto 0;
  max-width: 690px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

@media (max-width: 720px) {
  .page-shell {
    padding: 20px 12px;
  }

  .hero-card {
    border-radius: 20px;
  }

  .agency-header,
  .lead-form {
    padding-left: 18px;
    padding-right: 18px;
  }

  .intro-panel {
    margin-left: 18px;
    margin-right: 18px;
    padding: 18px;
  }

  .two-columns,
  .address-grid,
  .choice-row,
  .choice-row.three-options,
  .choice-row.home-options {
    grid-template-columns: 1fr;
  }
}
