:root {
  --ink: #4b4f54;
  --muted: #66727a;
  --line: #dce5e8;
  --paper: #ffffff;
  --soft: #f5f8f8;
  --teal: #3f6c7d;
  --green: #4b9560;
  --coral: #d66965;
  --shadow: 0 24px 70px rgba(63, 108, 125, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Jost, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  width: min(940px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(38px, 8vw, 86px) 0;
}

.hero {
  display: grid;
  justify-items: center;
  min-height: calc(100vh - 120px);
  align-content: center;
  padding: clamp(30px, 6vw, 62px);
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.twfg-logo {
  display: block;
  width: min(260px, 76vw);
  height: auto;
  border-radius: 8px;
}

h1 {
  margin: 30px 0 0;
  font-size: clamp(2rem, 5.5vw, 4.1rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.producer-title {
  margin: 10px 0 0;
  color: var(--teal);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 800;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(720px, 100%);
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 13px 18px;
  color: white;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.call {
  background: var(--teal);
}

.button.secondary {
  background: var(--coral);
}

.button.primary {
  background: var(--green);
  box-shadow: 0 14px 32px rgba(75, 149, 96, 0.24);
}

.button.review-button {
  width: min(360px, 100%);
  margin-top: 14px;
  color: var(--teal);
  background: white;
  border: 2px solid var(--teal);
}

.button.review-button:hover {
  color: white;
  background: var(--teal);
}

.button.full {
  width: 100%;
  margin-top: 20px;
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-top: 28px;
  color: var(--muted);
  font-weight: 700;
}

.contact-line a {
  text-decoration: none;
}

address {
  margin-top: 12px;
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
}

.panel {
  width: min(620px, 100%);
  margin: 22px auto 0;
  padding: clamp(20px, 4vw, 32px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 700;
}

.field-grid {
  display: grid;
  gap: 8px;
}

.quote-progress {
  margin: 0 0 22px;
}

.quote-progress-track {
  height: 8px;
  overflow: hidden;
  background: var(--line);
  border-radius: 999px;
}

.quote-progress-track span {
  display: block;
  height: 100%;
  width: 33.333%;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent),
    var(--green);
  background-size: 80px 100%, 100% 100%;
  border-radius: inherit;
  transition: width 180ms ease;
  animation: progress-shimmer 1.4s linear infinite;
}

.quote-progress[data-progress="2"] .quote-progress-track span {
  width: 66.666%;
}

.quote-progress[data-progress="3"] .quote-progress-track span {
  width: 100%;
}

.quote-progress-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.quote-progress-labels span:first-child {
  text-align: left;
}

.quote-progress-labels span {
  text-align: center;
}

.quote-progress-labels span:last-child {
  text-align: right;
}

@keyframes progress-shimmer {
  from {
    background-position: -80px 0, 0 0;
  }

  to {
    background-position: 160px 0, 0 0;
  }
}

.field-grid.two-column {
  grid-template-columns: 1fr 1fr;
  column-gap: 14px;
}

.field-grid.two-column .wide {
  grid-column: 1 / -1;
}

.form-section-title {
  margin: 18px 0 4px;
  color: var(--teal);
  font-size: 1.08rem;
  line-height: 1.2;
}

.field-help {
  margin: -2px 0 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.quote-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.quote-type-button {
  display: grid;
  aspect-ratio: 1.18;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 0;
  color: white;
  background: var(--teal);
  border: 0;
  border-bottom: 6px solid var(--green);
  border-radius: 8px;
  cursor: pointer;
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease;
}

.quote-type-button svg {
  width: clamp(24px, 4vw, 34px);
  height: clamp(24px, 4vw, 34px);
  stroke-width: 2.2;
}

.quote-type-button[data-coverage="home"] svg {
  color: #f6c65b;
}

.quote-type-button[data-coverage="auto"] svg {
  color: #9ed7ff;
}

.quote-type-button[data-coverage="flood"] svg {
  color: #7ee3ef;
}

.quote-type-button[data-coverage="umbrella"] svg {
  color: #f6a7a3;
}

.quote-type-button[data-coverage="renters"] svg {
  color: #bde59a;
}

.quote-type-button[data-coverage="other"] svg {
  color: #d6c3ff;
}

.quote-type-button span {
  display: block;
}

.quote-type-button:hover {
  background: #345c6b;
  transform: translateY(-1px);
}

label {
  margin-top: 8px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  color: var(--ink);
  background: white;
  border: 1px solid #c9d5dc;
  border-radius: 8px;
  padding: 11px 12px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(75, 149, 96, 0.18);
  border-color: var(--green);
}

.form-message {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--green);
  font-weight: 800;
}

.privacy-section {
  width: min(760px, 100%);
  margin: 28px auto 0;
  padding: clamp(20px, 4vw, 30px);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.privacy-section h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.privacy-section p {
  margin: 0 0 12px;
}

.privacy-section p:last-child {
  margin-bottom: 0;
}

.privacy-section a {
  color: var(--teal);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.privacy-link {
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  text-decoration: underline;
}

.privacy-link:hover {
  color: var(--teal);
}

.hidden {
  display: none !important;
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 22px, 940px);
    padding: 16px 0;
  }

  .hero {
    min-height: calc(100vh - 32px);
    padding: 26px 18px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .quote-type-grid {
    grid-template-columns: 1fr;
  }

  .field-grid.two-column {
    grid-template-columns: 1fr;
  }
}
