/* Plumber Pro Service & Drains — free estimate funnel
   Layout/flow mirrors pricemyjob.com/c/aces-four-plumbing; branding is Plumber Pro. */

:root {
  --pp-purple: #311da3;
  --pp-purple-dark: #241572;
  --pp-ink: #14103a;
  --pp-cyan: #22c0f1;
  --pp-green: #81c341;
  --pp-green-dark: #6aa833;
  --pp-paper: #ffffff;
  --pp-ground: #f4f5fb;
  --pp-rule: #d9dbeb;
  --pp-muted: #63698c;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  /* the hero's 100vmax bleed shadow must never open a horizontal scrollbar */
  max-width: 100%;
  overflow-x: hidden;
  background: var(--pp-ground);
  color: var(--pp-ink);
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .4;
  background-image:
    linear-gradient(rgba(20, 16, 58, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 16, 58, .035) 1px, transparent 1px);
  background-size: 34px 34px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--pp-ink);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.header-inner {
  max-width: 82rem;
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem clamp(1rem, 3vw, 2rem);
}

.brand { display: flex; align-items: center; }
.brand img { height: 58px; width: auto; display: block; }

.header-right { display: flex; align-items: center; gap: 1rem; }

.service-line {
  border-left: 1px solid rgba(255, 255, 255, .25);
  padding-left: .75rem;
  color: #c9cde8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone svg { width: 18px; height: 18px; color: var(--pp-green); }
.header-phone:hover { color: var(--pp-green); }

/* ---------- progress ---------- */

.progress {
  height: 6px;
  background: repeating-linear-gradient(-45deg, #2c2665 0 10px, var(--pp-ink) 10px 20px);
}
.progress-fill {
  height: 100%;
  width: 33.33%;
  background: var(--pp-green);
  transition: width .25s ease;
}

/* ---------- main split layout ---------- */

.quiz-main {
  max-width: 82rem;
  margin: 0 auto;
  /* deliberately NOT 100dvh — forcing viewport height left a dead purple band
     under the hero on short content (Jess, 2026-09-28). Padding sets the height. */
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(500px, 540px);
  /* top-aligned, not centred — centring left a dead band above the hero copy (Jess, 2026-09-28) */
  align-items: start;
  gap: clamp(3rem, 8vw, 9rem);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 3vw, 2rem) clamp(2.5rem, 5vw, 4rem);
  background-color: var(--pp-purple);
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 34px 34px;
  box-shadow: 0 0 0 100vmax var(--pp-purple);
  clip-path: inset(0 -100vmax);
}

.quiz-aside {
  color: #fff;
  /* no top padding: the eyebrow should sit level with the card's green cap */
  padding: 0 0 1rem clamp(0rem, 2vw, 1rem);
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--pp-green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.display {
  max-width: 690px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.9rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.02;
}

.aside-sub {
  max-width: 44ch;
  margin: 1.4rem 0 0;
  color: #cdd2ee;
  font-size: 1rem;
  line-height: 1.65;
}

.aside-rule {
  width: 176px;
  height: 8px;
  margin-top: 2rem;
  background: repeating-linear-gradient(-45deg, var(--pp-green) 0 10px, transparent 10px 20px);
}

/* ---------- google proof chip (hero) ---------- */

.aside-proof {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-top: 1.9rem;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .07);
  padding: .7rem .95rem;
  text-decoration: none;
  transition: background .12s ease, border-color .12s ease;
}
.aside-proof:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .4); }

.g-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: #fff;
}
.g-mark svg { width: 17px; height: 17px; }

.aside-proof-text { display: flex; flex-direction: column; gap: .1rem; }
.aside-proof-label { color: #fff; font-size: .82rem; font-weight: 600; }

.stars { color: #fbbc05; font-size: .8rem; letter-spacing: .12em; line-height: 1; }

/* ---------- card ---------- */

.card-slot { min-width: 0; }

.step {
  width: 100%;
  max-width: 540px;
  border-top: 8px solid var(--pp-green);
  background: var(--pp-paper);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 12px 12px rgba(20, 16, 58, .92);
}
.step[hidden] { display: none; }

.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.btn-back {
  border: 0;
  background: none;
  padding: 0;
  color: var(--pp-muted);
  font-family: inherit;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.btn-back:hover:not(:disabled) { color: var(--pp-ink); }
.btn-back:disabled { opacity: .4; cursor: not-allowed; }

.step-counter {
  flex: 0 0 auto;
  background: var(--pp-ink);
  padding: .45rem .65rem;
  color: var(--pp-green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.question-label {
  max-width: 25ch;
  margin: 0 0 1.4rem;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.05;
}

/* ---------- options ---------- */

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.option-grid--simple { grid-template-columns: 1fr; }

.option {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  min-height: 104px;
  border: 1px solid var(--pp-rule);
  background: #fbfbff;
  padding: 1rem 1.05rem;
  text-align: left;
  font-family: inherit;
  color: var(--pp-ink);
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.option-grid--simple .option { min-height: 64px; align-items: center; }

.option:hover { border-color: var(--pp-green); transform: translateY(-2px); }
.option[data-selected="true"] {
  border-color: var(--pp-green);
  background: #f1f9e9;
  box-shadow: inset 4px 0 0 var(--pp-green);
}

.option-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: #ece9ff;
  color: var(--pp-purple);
}
.option-icon svg { width: 20px; height: 20px; }

.option-text { flex: 1 1 auto; min-width: 0; }

.option-title {
  display: block;
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.option-desc {
  display: block;
  margin-top: .25rem;
  color: var(--pp-muted);
  font-size: .8rem;
  line-height: 1.4;
}

/* ---------- contact form ---------- */

.contact-disclaimer {
  margin: -0.9rem 0 1.35rem;
  color: var(--pp-muted);
  font-size: .875rem;
}

#contact-form { display: flex; flex-direction: column; gap: 1rem; }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }

.field label {
  color: var(--pp-ink);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .01em;
}

.field input,
.field textarea {
  border: 1px solid #b9bdd4;
  background: #fbfbff;
  color: var(--pp-ink);
  font-family: inherit;
  font-size: 1rem;
}
.field input { min-height: 52px; padding: 0 .85rem; }
.field textarea { padding: .7rem .85rem; line-height: 1.5; resize: vertical; min-height: 84px; }

.field input:focus,
.field textarea:focus {
  border-color: var(--pp-purple);
  outline: 2px solid rgba(49, 29, 163, .18);
  outline-offset: 1px;
}

/* the notes prompt is a full sentence — let it wrap instead of clipping */
.field label[for="notes"] { font-weight: 600; line-height: 1.45; }

.field-error, .form-error {
  margin: 0;
  color: #c62828;
  font-size: .75rem;
  font-weight: 500;
}

.btn-primary {
  min-height: 52px;
  border: 0;
  background: var(--pp-purple);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}
.btn-primary:hover:not(:disabled) { background: var(--pp-purple-dark); transform: translateY(-2px); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary--link {
  display: grid;
  place-items: center;
  margin-top: 1.5rem;
  text-decoration: none;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  color: var(--pp-muted);
  font-size: .72rem;
  line-height: 1.55;
  cursor: pointer;
}
.consent input { margin-top: .15rem; width: 16px; height: 16px; accent-color: var(--pp-purple); flex: 0 0 auto; }

.secure-note { margin: 0; color: var(--pp-muted); font-size: .72rem; text-align: center; }

/* ---------- thanks ---------- */

.thanks-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
  background: var(--pp-green);
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
}
.thanks-copy { margin: 0 0 .9rem; color: #3c4166; font-size: 1rem; line-height: 1.65; }

/* ---------- reviews ---------- */

.reviews {
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1rem, 3vw, 2rem);
  background: var(--pp-ground);
  border-bottom: 1px solid var(--pp-rule);
}
.reviews-inner { max-width: 82rem; margin: 0 auto; }

.reviews-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.reviews-heading {
  margin: 0;
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.reviews-link {
  flex: 0 0 auto;
  color: var(--pp-purple);
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.reviews-link:hover { text-decoration: underline; }

.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }

.review {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--pp-rule);
  border-top: 6px solid var(--pp-green);
  background: var(--pp-paper);
  padding: 1.5rem;
  box-shadow: 8px 8px rgba(20, 16, 58, .07);
}

.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .9rem;
}
.review-top .stars { font-size: 1rem; }
.review-top .g-mark { width: 26px; height: 26px; background: #f1f2f9; }
.review-top .g-mark svg { width: 15px; height: 15px; }

.review-body {
  flex: 1 1 auto;
  margin: 0 0 1.25rem;
  color: #3c4166;
  font-size: .92rem;
  line-height: 1.7;
}

.review-name {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--pp-rule);
  font-size: .88rem;
  font-weight: 700;
}
.review-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--pp-purple);
  color: #fff;
  font-size: .85rem;
  font-weight: 800;
}

/* ---------- why us ---------- */

.why-us {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 3vw, 2rem);
  background: var(--pp-paper);
}
.why-us-inner { max-width: 82rem; margin: 0 auto; }

.why-eyebrow {
  margin: 0 0 .75rem;
  color: var(--pp-purple);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.why-heading {
  margin: 0 0 2.25rem;
  max-width: 760px;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }

.why-grid article {
  border: 1px solid var(--pp-rule);
  border-top: 6px solid var(--pp-green);
  padding: 1.5rem;
  background: #fbfbff;
}
.why-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  background: var(--pp-purple);
  color: #fff;
  font-size: .95rem;
  font-weight: 800;
}
.why-grid h3 { margin: 0 0 .5rem; font-size: 1.05rem; font-weight: 700; }
.why-grid p { margin: 0; color: var(--pp-muted); font-size: .9rem; line-height: 1.6; }

/* ---------- footer ---------- */

.site-footer {
  padding: 2rem clamp(1rem, 3vw, 2rem) 2.5rem;
  background: var(--pp-ink);
  color: #b9bfe0;
  text-align: center;
  font-size: .82rem;
  line-height: 1.7;
}
.site-footer p { margin: 0; }
.site-footer strong { color: #fff; }
.site-footer a { color: var(--pp-green); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-legal { margin-top: .5rem !important; font-size: .75rem; }

/* ---------- responsive ---------- */

@media (max-width: 1023px) {
  .quiz-main {
    display: block;
    min-height: auto;
    padding: 2rem 1rem 3rem;
  }
  .quiz-aside { padding: 0 0 1.8rem; }
  .display { font-size: clamp(2.4rem, 10vw, 3.4rem); }
  .aside-sub { font-size: .95rem; }
  .step { max-width: none; padding: 1.25rem; box-shadow: 7px 7px rgba(20, 16, 58, .9); }
  .question-label { font-size: clamp(1.7rem, 7.5vw, 2.2rem); margin-bottom: 1.1rem; }
  .option-grid { grid-template-columns: 1fr; gap: .65rem; }
  .option { min-height: 64px; align-items: center; padding: .8rem .9rem; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aside-proof { margin-top: 1.5rem; }
  .reviews-grid { grid-template-columns: 1fr; }
  .reviews-head { flex-direction: column; align-items: flex-start; gap: .75rem; }
}

@media (max-width: 640px) {
  .brand img { height: 42px; }
  .service-line { display: none; }
  .header-phone span { font-size: .85rem; }
  .field-row { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
}
