:root {
  --ink: #111111;
  --paper: #ffffff;
  --page: #f5f5f5;
  --orange: #f56a00;
  --orange-dark: #d45c00;
  --gold: #f3bf2d;
  --border: #111111;
  --shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

body.is-exit-intent-open {
  overflow: hidden;
}

.page-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.intro-block {
  text-align: center;
  padding: 0 12px 26px;
}

.intro-logo {
  display: block;
  width: min(240px, 52vw);
  margin: 0 auto 18px;
}

.intro-block h1 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2.7rem, 7vw, 4.95rem);
  line-height: 0.96;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.stars-line,
.owner-line,
.survey-line {
  margin: 16px 0 0;
}

.stars-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 3vw, 1.95rem);
}

.stars {
  color: var(--gold);
  letter-spacing: 0.08em;
}

.owner-line,
.survey-line {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2.8vw, 1.7rem);
}

.survey-line {
  font-weight: 700;
}

.form-stage {
  width: min(690px, 100%);
  margin: 0 auto 36px;
}

.social-proof-band {
  margin: 0 auto 20px;
  padding: 10px 18px 18px;
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
}

.social-proof-copy {
  margin: 0 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.02rem, 1.35vw, 1.35rem);
  line-height: 1.45;
  text-align: center;
  white-space: nowrap;
}

.social-proof-copy strong {
  font-weight: 700;
}

.social-proof-copy em {
  font-style: italic;
  font-weight: 700;
}

.social-proof-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.social-proof-row h2 {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 1.55rem);
  font-weight: 800;
  color: #173b63;
}

.social-proof-rating {
  display: grid;
  justify-items: end;
  gap: 4px;
  margin-left: auto;
}

.social-proof-rating strong {
  font-size: clamp(2.35rem, 4vw, 3.1rem);
  line-height: 1;
  color: #2b3542;
}

.social-proof-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #8791a4;
  font-size: 0.96rem;
  justify-content: flex-end;
  white-space: nowrap;
}

.social-proof-stars {
  color: #f8b400;
  letter-spacing: 0.08em;
  font-size: 1.15rem;
}

.social-proof-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 70px;
  padding: 0 24px;
  border-radius: 10px;
  background: #2f6fed;
  color: var(--paper);
  font-size: 1.1rem;
  font-weight: 700;
  margin-left: 12px;
}

.form-step {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.step-content {
  min-height: 300px;
  padding: 50px 52px 56px;
  display: grid;
  gap: 22px;
}

.step-choice-content {
  min-height: 264px;
}

.form-step h3,
.field-group span {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.2;
  font-weight: 800;
}

.form-step h3 span,
.field-group span span {
  font-weight: 800;
}

.radio-stack {
  display: grid;
  gap: 28px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
}

.radio-option input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--ink);
}

.field-grid {
  display: grid;
  gap: 22px;
}

.address-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-group span {
  display: inline-block;
  margin-bottom: 10px;
}

.field-span-full {
  width: 100%;
}

.zip-group {
  width: min(280px, 100%);
}

.field-group input {
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
}

.field-group input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 106, 0, 0.18);
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-footer,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-footer {
  min-height: 64px;
  background: var(--orange);
}

.single-action {
  justify-content: flex-end;
}

.dual-action {
  justify-content: space-between;
}

.footer-button,
.button-secondary,
.carousel-button {
  min-width: 140px;
  height: 64px;
  border: 0;
  border-radius: 0;
  padding: 0 28px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  cursor: pointer;
}

.footer-button-next {
  background: var(--orange-dark);
  color: var(--paper);
}

.footer-button-prev,
.button-secondary,
.carousel-button {
  background: transparent;
  color: var(--paper);
}

.footer-button:hover,
.button-secondary:hover,
.carousel-button:hover {
  opacity: 0.92;
}

.form-status {
  min-height: 22px;
  margin: 14px 0 0;
  font-weight: 700;
}

.form-status.is-error {
  color: #b12e0d;
}

.form-status.is-success {
  color: #0f7c25;
}

.submission-confirmation {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 34px 32px;
}

.submission-confirmation-eyebrow {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #173b63;
}

.submission-confirmation h3 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.15;
}

.submission-confirmation-copy {
  margin: 14px 0 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: #434343;
}

.submission-confirmation-details {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e8e8e8;
}

.submission-confirmation-details p {
  margin: 0;
  color: #2b3542;
  line-height: 1.55;
}

.submission-confirmation-button {
  margin-top: 22px;
  min-width: 220px;
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  background: var(--orange-dark);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.submission-confirmation-button:hover {
  opacity: 0.92;
}

.reviews-section {
  margin-top: 14px;
  padding: 30px;
  border: 1px solid #e6e6e6;
  border-radius: 18px;
  background: #fafafa;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.8rem;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666666;
}

.reviews-section .button-secondary {
  min-width: auto;
  height: auto;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--orange-dark);
  color: var(--paper);
}

.reviews-summary {
  font-size: 1.05rem;
  margin-bottom: 18px;
}

html[data-review-mode="api"] .reviews-iframe-shell {
  display: none;
}

html[data-review-mode="iframe"] .reviews-grid,
html[data-review-mode="iframe"] .reviews-actions {
  display: none;
}

.reviews-iframe-shell {
  margin-bottom: 18px;
  border: 1px solid #e6e6e6;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.08);
  overflow: hidden;
}

.reviews-iframe-frame {
  display: block;
  min-width: 100%;
  width: 100%;
  min-height: 1180px;
  border: 0;
  background: var(--paper);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.review-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  border-radius: 18px;
  padding: 26px 24px;
  min-height: 280px;
  background: var(--paper);
  border: 1px solid #e6e6e6;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.08);
}

.reviews-grid.is-loading {
  grid-template-columns: 1fr;
}

.review-card-fallback,
.reviews-grid.is-loading .review-card {
  display: grid;
  place-items: center;
  color: #555555;
}

.review-meta {
  display: grid;
  gap: 6px;
  color: #555555;
  font-size: 0.98rem;
}

.review-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review-avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 auto;
}

.review-avatar-image,
.review-avatar-fallback {
  width: 100%;
  height: 100%;
}

.review-avatar-image {
  display: block;
  object-fit: cover;
}

.review-avatar-fallback {
  display: grid;
  place-items: center;
  background: #173b63;
  color: var(--paper);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.review-meta strong {
  color: #28303d;
}

.review-stars {
  color: var(--gold);
  letter-spacing: 0.08em;
  font-size: 1.1rem;
  margin: 18px 0 0;
}

.review-body {
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 18px 0 0;
}

.review-body.is-collapsed {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.review-body.is-expanded {
  display: block;
}

.review-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.review-expand-button,
.review-source-link {
  font-size: 0.95rem;
  font-weight: 700;
}

.review-expand-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #173b63;
  cursor: pointer;
}

.review-source-link {
  color: var(--orange-dark);
}

.review-expand-button:hover,
.review-source-link:hover {
  text-decoration: underline;
}

.review-owner-reply {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f2f6fb;
  border: 1px solid #dce7f5;
}

.review-owner-label,
.review-owner-meta,
.review-owner-text {
  margin: 0;
}

.review-owner-label {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #173b63;
}

.review-owner-text {
  margin-top: 8px;
  font-size: 0.94rem;
  line-height: 1.6;
  color: #27415c;
}

.review-owner-meta {
  margin-top: 8px;
  font-size: 0.82rem;
  color: #5d7288;
}

.reviews-actions {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.reviews-load-more {
  border: 0;
  background: transparent;
  color: #173b63;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
}

.reviews-load-more:hover {
  text-decoration: underline;
}

.reviews-load-more:disabled {
  opacity: 0.6;
  cursor: wait;
}

.reviews-note {
  margin: 16px 0 0;
}

.site-footer {
  padding: 22px 0 10px;
  color: #555555;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.exit-intent-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 20px;
  background: rgba(17, 17, 17, 0.7);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.exit-intent-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.exit-intent-dialog {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 34px 34px 28px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffaf4 0%, #ffffff 100%);
  color: #20242b;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.exit-intent-close {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 59, 99, 0.08);
  color: #173b63;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.exit-intent-eyebrow {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #173b63;
}

.exit-intent-dialog h2 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.exit-intent-copy {
  margin: 16px 0 0;
  max-width: 60ch;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #4d5664;
}

.exit-intent-video-shell {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  min-height: 220px;
  border-radius: 18px;
  overflow: hidden;
  background: #111111;
  box-shadow: 0 16px 40px rgba(17, 17, 17, 0.16);
}

.exit-intent-video-launch {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.28) 0%, rgba(17, 17, 17, 0.72) 100%),
    radial-gradient(circle at top, rgba(245, 106, 0, 0.22), transparent 55%);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.exit-intent-video-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: rgba(245, 106, 0, 0.95);
  color: var(--paper);
  font-size: 2rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.exit-intent-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.exit-intent-video[hidden],
.exit-intent-video-launch[hidden] {
  display: none;
}

.exit-intent-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
  position: sticky;
  bottom: 0;
  padding-top: 16px;
  padding-bottom: 4px;
  background: linear-gradient(180deg, rgba(255, 250, 244, 0) 0%, rgba(255, 255, 255, 0.94) 24%, #ffffff 100%);
}

.exit-intent-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 800;
  text-transform: uppercase;
}

.exit-intent-button-primary {
  border: 0;
  background: var(--orange-dark);
  color: var(--paper);
  cursor: pointer;
}

.exit-intent-button-secondary {
  border: 2px solid #d8dee7;
  color: #173b63;
  background: var(--paper);
  cursor: pointer;
}

@media (max-width: 980px) {
  .page-shell {
    width: min(100% - 24px, 1040px);
  }

  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reviews-iframe-frame {
    min-height: 1040px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 18px, 1040px);
  }

  .site-footer,
  .address-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .section-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .intro-block {
    padding-bottom: 20px;
  }

  .social-proof-row {
    flex-direction: column;
    align-items: stretch;
  }

  .social-proof-copy {
    white-space: normal;
  }

  .social-proof-rating {
    justify-items: start;
    margin-left: 0;
  }

  .social-proof-meta {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
  }

  .social-proof-button {
    width: 100%;
    margin-left: 0;
  }

  .step-content {
    min-height: 0;
    padding: 34px 20px 40px;
  }

  .address-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .form-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .single-action {
    grid-template-columns: 1fr;
  }

  .footer-button,
  .button-secondary {
    width: 100%;
    min-width: 0;
  }

  .reviews-section {
    padding: 22px;
  }

  .submission-confirmation {
    padding: 28px 20px;
  }

  .submission-confirmation-button {
    width: 100%;
    min-width: 0;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .reviews-iframe-frame {
    min-height: 920px;
  }

  .exit-intent-backdrop {
    padding: 12px;
    align-items: end;
  }

  .exit-intent-dialog {
    width: 100%;
    max-height: calc(100vh - 12px);
    padding: 26px 18px 20px;
    border-radius: 18px 18px 0 0;
  }

  .exit-intent-video-shell {
    min-height: 188px;
  }

  .exit-intent-video-icon {
    width: 72px;
    height: 72px;
    font-size: 1.8rem;
  }

  .exit-intent-copy {
    font-size: 0.98rem;
  }

  .exit-intent-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .exit-intent-button {
    width: 100%;
    min-width: 0;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
