/* Multi-step estimate funnel — Six Six design language */

.ssd-funnel-section {
  background: linear-gradient(105deg, #00cfff 0%, #0b0b0b 100%);
  padding: 60px 16px 80px;
  min-height: 70vh;
}

.ssd-funnel {
  max-width: 640px;
  margin: 0 auto;
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
}

.ssd-funnel-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 18px;
}

.ssd-funnel-progress-fill {
  height: 100%;
  background: #ffffff;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.ssd-funnel-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  padding: 36px 32px 40px;
}

.ssd-funnel-back {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 14px;
  cursor: pointer;
  padding: 0 0 14px;
  font-family: inherit;
}

.ssd-funnel-back:hover {
  color: #00cfff;
}

.ssd-funnel h2 {
  font-size: 26px;
  font-weight: 600;
  color: #101010;
  padding-bottom: 6px;
}

.ssd-funnel-sub {
  color: #4b5563;
  font-size: 16px; /* readability floor (was 15px) */
  padding-bottom: 22px;
}

.ssd-funnel-note {
  display: inline-block;
  background: #e6fbff;
  border: 1px solid #00cfff;
  color: #056e85;
  border-radius: 8px;
  font-size: 14px;
  padding: 8px 12px;
  margin-bottom: 18px;
}

.ssd-funnel-note.is-soft {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
}

.ssd-funnel-options {
  display: grid;
  gap: 12px;
}

.ssd-funnel-option {
  text-align: left;
  background: #ffffff;
  border: 2px solid #d1d5db;
  border-radius: 10px;
  padding: 16px 18px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  color: #101010;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ssd-funnel-option:hover {
  border-color: #00cfff;
}

.ssd-funnel-option.is-selected {
  border-color: #00cfff;
  background: #e6fbff;
}

.ssd-funnel input[type="text"],
.ssd-funnel input[type="tel"],
.ssd-funnel input[type="email"] {
  width: 100%;
  border: 2px solid #d1d5db;
  border-radius: 10px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 17px;
  margin-bottom: 14px;
  box-sizing: border-box;
  color: #101010; /* real values must be unmistakably darker than ghost text */
}

.ssd-funnel input::placeholder,
.ssd-hero-start input::placeholder {
  color: #c2c8d0; /* light enough to never read as a prefilled value */
  opacity: 1;
}

.ssd-funnel input:focus {
  outline: none;
  border-color: #00cfff;
}

.ssd-funnel input.is-invalid {
  border-color: #dc2626;
}

.ssd-funnel-hint {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: #6b7280;
  font-size: 12px;
}

/* inline address suggestions (our own dropdown; no mobile takeover) */
.ssd-ac-wrap {
  position: relative;
}

.ssd-ac-list {
  position: absolute;
  top: calc(100% - 10px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 2px solid #00cfff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  z-index: 100001;
  max-height: 264px;
  overflow-y: auto;
}

.ssd-ac-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid #eef0f3;
  padding: 11px 14px;
  font-family: inherit;
  cursor: pointer;
}

.ssd-ac-item:hover {
  background: #e6fbff;
}

.ssd-ac-item strong {
  display: block;
  font-size: 15px;
  color: #101010;
}

.ssd-ac-item span {
  font-size: 12.5px;
  color: #6b7280;
}

.ssd-ac-attribution {
  text-align: right;
  font-size: 11px;
  color: #9ca3af;
  padding: 6px 12px;
}

.ssd-funnel label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  padding-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ssd-funnel-next {
  display: block;
  width: 100%;
  background: #00cfff;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  padding: 16px;
  margin-top: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ssd-funnel-next:hover {
  background: #00b8e6;
}

.ssd-funnel-next:disabled {
  background: #9ca3af;
  cursor: default;
}

.ssd-field-error {
  display: none;
  color: #dc2626;
  font-size: 13px;
  margin: -8px 0 12px;
}

.ssd-field-error.is-visible {
  display: block;
}

.ssd-funnel-error {
  color: #dc2626;
  font-size: 14px;
  padding: 0 0 10px;
  display: none;
}

.ssd-funnel-error.is-visible {
  display: block;
}

.ssd-funnel-success {
  text-align: center;
  padding: 20px 0;
}

.ssd-funnel-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #00cfff;
  color: #fff;
  font-size: 34px;
  line-height: 64px;
  margin: 0 auto 18px;
}

.ssd-funnel-call {
  color: #056e85;
  font-weight: 600;
  text-decoration: underline;
}

@media (max-width: 480px) {
  .ssd-funnel-card {
    padding: 26px 20px 30px;
  }

  .ssd-funnel h2 {
    font-size: 22px;
  }
}

/* ---- service-page two-column layout with sticky estimate rail ---- */

/* Divi sets overflow-x:hidden on html+body, which turns body into a scroll
   container and silently disables position:sticky everywhere. `clip` gives
   the same horizontal-scroll protection without creating a scroll container. */
html,
body {
  overflow-x: clip !important;
}

.ssd-2col {
  display: grid;
  /* rail width matches the city-page sidebar card (317px) so the estimate
     form is identical across templates (Matt, 2026-07-16) */
  grid-template-columns: minmax(0, 1fr) 317px;
  gap: 36px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  /* default stretch: the rail cell must span full height for sticky travel */
}

.ssd-2col-main {
  min-width: 0;
}

/* sections inside the narrow column: let rows use the full column width */
.ssd-2col-main .et_pb_section {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.ssd-2col-main .et_pb_row {
  width: 100% !important;
  max-width: none !important;
}

.ssd-rail-sticky {
  position: sticky;
  top: 170px; /* below the fixed header */
  /* padding + margin matched to the city sidebar card so the two are
     identical; margin-top aligns the card's top with the first line of
     body text in the left column (Matt, 2026-07-16) */
  margin-top: 50px;
  background: linear-gradient(150deg, #00cfff 0%, #0b0b0b 130%);
  border-radius: 14px;
  padding: 18px 14px 20px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.18);
}

.ssd-rail-sticky > h3 {
  color: #ffffff;
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-bottom: 10px;
}

.ssd-rail-sticky .ssd-funnel-card {
  padding: 20px 16px 24px;
  box-shadow: none;
}

.ssd-rail-sticky .ssd-funnel h2 {
  font-size: 18px;
}

@media (max-width: 980px) {
  .ssd-2col {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .ssd-2col-main .et_pb_section {
    padding-left: 4% !important;
    padding-right: 4% !important;
  }

  .ssd-rail-sticky {
    position: static;
    margin-top: 0; /* alignment nudge is desktop-only; mobile stacks */
    border-radius: 0;
    padding: 30px 16px 36px;
  }
}

/* ---- location-page sidebar estimate card ---- */

.ssd-sidebar-funnel {
  background: linear-gradient(150deg, #00cfff 0%, #0b0b0b 130%);
  border-radius: 14px;
  padding: 18px 14px 20px;
  margin-bottom: 28px;
}

/* Desktop only: pull the card up so its top lines up with the big page
   title, which sits in its own row above the two-column section (Matt,
   2026-07-16). The title is ~58px above the sidebar card's natural top.
   Mobile stacks single-column — no nudge. */
@media (min-width: 981px) {
  .ssd-sidebar-funnel {
    margin-top: -58px;
  }
}

.ssd-sidebar-funnel > h4 {
  color: #ffffff;
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-bottom: 10px;
}

.ssd-sidebar-funnel .ssd-funnel-card {
  padding: 20px 16px 24px;
  box-shadow: none;
}

.ssd-sidebar-funnel .ssd-funnel h2 {
  font-size: 18px;
}

.ssd-sidebar-funnel .ssd-funnel-sub {
  font-size: 16px; /* readability floor (was 13px) */
  padding-bottom: 14px;
}

/* ---- FAQ accordions ---- */

.ssd-faq {
  border-bottom: 1px solid #e5e7eb;
}

.ssd-faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: #101010;
  padding: 13px 26px 13px 0;
  position: relative;
  list-style: none;
}

.ssd-faq summary::-webkit-details-marker {
  display: none;
}

.ssd-faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: #00cfff;
  font-size: 22px;
  font-weight: 400;
}

.ssd-faq[open] summary::after {
  content: "\2212";
}

.ssd-faq > p {
  padding: 0 0 14px;
}

/* ---- density: two-column bullet lists + tighter copy sections ---- */

@media (min-width: 981px) {
  .ssd-2col-main ul.home-clean-ul {
    columns: 2;
    column-gap: 36px;
  }

  .ssd-2col-main ul.home-clean-ul li {
    break-inside: avoid;
  }
}

.ssd-copy-section {
  padding-top: 12px !important;
  padding-bottom: 24px !important;
}

/* ---- overlay ---- */

.ssd-funnel-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(6, 10, 12, 0.82);
  overflow-y: auto;
  padding: 40px 16px;
}

.ssd-funnel-overlay.is-open {
  display: block;
}

.ssd-funnel-overlay-inner {
  position: relative;
  max-width: 640px;
  margin: 4vh auto 40px;
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
}

.ssd-funnel-close {
  position: absolute;
  top: -14px;
  right: -8px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #101010;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.ssd-funnel-close:hover {
  color: #00cfff;
}

@media (max-width: 480px) {
  .ssd-funnel-overlay {
    padding: 16px 10px;
  }

  .ssd-funnel-overlay-inner {
    margin-top: 8px;
  }

  .ssd-funnel-close {
    top: -4px;
    right: 0;
  }
}

/* ---- homepage hero ZIP card ---- */

.ssd-hero-start {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  padding: 12px;
  max-width: 460px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
}

.ssd-hero-start input {
  flex: 1 1 auto;
  min-width: 0;
  color: #101010;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 17px;
}

.ssd-hero-start input:focus {
  outline: none;
  border-color: #00cfff;
}

.ssd-hero-start.has-error input {
  border-color: #dc2626;
}

.ssd-hero-error {
  display: none;
  flex-basis: 100%;
  color: #dc2626;
  font-size: 13px;
  padding: 2px 2px 0;
}

.ssd-hero-error.is-visible {
  display: block;
}

.ssd-hero-start {
  flex-wrap: wrap;
}

.ssd-hero-start button {
  flex: 0 0 auto;
  background: #00cfff;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 18px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ssd-hero-start button:hover {
  background: #00b8e6;
}

@media (max-width: 480px) {
  .ssd-hero-start {
    flex-direction: column;
  }
}

/* SMS opt-in disclosure under the contact-step submit button */
.ssd-consent {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #6b7280;
}
.ssd-consent a { color: #6b7280; text-decoration: underline; }

/* Turnstile mount: invisible (interaction-only) for almost everyone; when a
   challenge does appear it needs breathing room above the submit button */
.ssd-turnstile:not(:empty) { margin: 10px 0; }

/* Sitewide banner hero: homepage-style layout — title top-left in the
   banner image, ZIP card under it, dark scrim for text contrast */
.ssd-banner-hero {
  position: relative;
}
/* Vertical rhythm matched to the homepage hero (Matt, 2026-07-15): the
   original Divi banner jammed content to the bottom via padding-top:500px.
   Balanced padding lifts the title/card into the upper-middle like home. */
.et_pb_section.ssd-banner-hero {
  padding-top: 210px !important;
  padding-bottom: 72px !important;
}
@media (max-width: 980px) {
  .et_pb_section.ssd-banner-hero {
    padding-top: 140px !important;
    padding-bottom: 44px !important;
  }
}
.ssd-banner-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.08));
}
.ssd-banner-inner {
  position: relative;
  /* Mirror the Divi content row EXACTLY so the hero title/card share the
     content column's left edge at every width (Matt, 2026-07-15). The row
     is width:80% capped at 1140px — matching the cap is what keeps them
     aligned on wide monitors, where a bigger cap would drift left. */
  width: 80%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 44px 0;
}
/* Service pages use the ssd-2col grid (max-width 1240 + 20px gutter); its
   card must align to that grid, not the 1140 content row. */
.ssd-banner--wide .ssd-banner-inner {
  width: auto;
  max-width: 1240px;
  padding: 44px 20px;
}
@media (max-width: 768px) {
  .ssd-banner-inner,
  .ssd-banner--wide .ssd-banner-inner {
    width: auto;
    padding: 34px 16px;
  }
}
/* Matches the homepage hero H1 (.fw-normal): 60px, weight 400, mixed-case,
   line-height 1.2 — the uppercase 600-weight was a one-off. clamp keeps
   longer promoted titles from overflowing narrow screens. */
.ssd-banner-title {
  color: #ffffff;
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.2;
  text-transform: none;
  margin: 0 0 28px;
  padding: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}
.ssd-banner-start {
  display: flex;
  justify-content: flex-start;
}
.ssd-banner-start .ssd-hero-start {
  width: 100%;
}

/* ---- static Google review cards (/reviews/) ---- */
.ssd-reviews { font-family: 'Montserrat', Helvetica, Arial, sans-serif; text-align: left; }
.ssd-reviews-head { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 26px; font-size: 17px; }
.ssd-stars { color: #fbbc04; font-size: 18px; letter-spacing: 2px; }
.ssd-reviews-grid { column-count: 3; column-gap: 18px; }
.ssd-review {
  display: inline-block;
  box-sizing: border-box;
  width: 100%;
  break-inside: avoid;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  padding: 18px;
  margin: 0 0 18px;
}
.ssd-review header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ssd-review header img { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; }
.ssd-review-who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ssd-review-who strong { font-size: 15px; color: #101010; }
.ssd-review-who span { font-size: 12.5px; color: #6b7280; }
.ssd-review-g { flex: 0 0 auto; }
.ssd-review .ssd-stars { font-size: 15px; }
.ssd-review p { margin: 8px 0 0; font-size: 14px; line-height: 1.65; color: #374151; }
@media (max-width: 980px) { .ssd-reviews-grid { column-count: 2; } }
@media (max-width: 640px) { .ssd-reviews-grid { column-count: 1; } }


/* Divi ships widget rails with a grey panel (#eee + border) — white reads
   cleaner against the estimate card (Matt, 2026-07-15) */
.et_pb_widget_area {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
}

/* Contact-form message box: the theme styles .wpcf7-response-output as a red
   alert (pink bg + ETmodules ✕ icon) unconditionally. Make it state-aware —
   green on success, red only on real errors, and kill the stray icon. */
.wpcf7-response-output.ssd-msg {
  margin-top: 14px !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  border-width: 1px !important;
  border-style: solid !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
}
.wpcf7-response-output.ssd-msg::before,
.wpcf7-response-output.ssd-msg::after { content: none !important; display: none !important; }
.wpcf7-response-output.ssd-msg-ok {
  background: #e7f6e7 !important;
  border-color: #46b450 !important;
  color: #1e5b28 !important;
}
.wpcf7-response-output.ssd-msg-err {
  background: #fdeaea !important;
  border-color: #dc3232 !important;
  color: #8a1f1f !important;
}

/* ============================================================
   Readability pass for an older audience (Matt, 2026-07-17)
   Our customers skew older; usability guidance (NN/g, WCAG) puts the
   floor for reading text at 16px, 18px ideal for 50+. Three moves:

   1. Body reading copy 17 -> 18. Divi sets a global body size of 17px
      that paragraphs/lists INHERIT; every heading, button, nav item,
      footer element and input is sized in explicit px, so bumping the
      body only moves inherited reading text — chrome stays put.
   2. Contact + SMS-policy form fields 15 -> 16. Meets the a11y floor
      AND stops iOS Safari's zoom-on-focus (it zooms any input < 16px),
      which was the cause of the mobile horizontal-slide on those forms.
   3. Sub-16px reading text (footer nav + blurb + cities list, both review
      layouts, service-checkbox labels) lifted to a 16px floor. True legal
      fine-print (image/figure captions, the funnel's .ssd-consent SMS
      disclosure) is intentionally left smaller/de-emphasized by design.
   ============================================================ */

/* 1. Body reading copy 17 -> 18. Body-inherited text (e.g. .et_pb_text p)
      moves via the body rule; Divi pins blog-post and text-widget paragraphs
      to 17px with higher-specificity rules, so those selectors are matched
      explicitly to keep body copy uniformly 18px. funnel.css loads after
      Divi, so equal-specificity rules win without !important. */
body { font-size: 18px; }
body .et_pb_bg_layout_light .et_pb_post p,
body .et_pb_bg_layout_dark .et_pb_post p,
.textwidget p { font-size: 18px; }

/* 2. Contact + SMS-policy form fields 15 -> 16 (a11y floor + no iOS zoom) */
.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form textarea,
.contact-form select,
.checklist-form span.wpcf7-list-item { font-size: 16px !important; }

/* 3. Sub-16px reading text -> 16px floor. Covers all three review layouts
      (Divi .review-box + .review-paragraph testimonials, static /reviews/
      grid), the footer nav/blurb/cities, and the blog-index card teasers.
      !important because several of these Divi/plugin rules carry high
      specificity that a plain selector could not outrank. */
.et_pb_menu_0_tb_footer.et_pb_menu ul li a,
.et_pb_text_0_tb_footer,
.ssd-footer-cities,
.review-box p.review-content,
.review-paragraph,
.ssd-review p,
.et_pb_blog_extras_0 .et_pb_post.et_pb_post_extra .post-content .post-data p { font-size: 16px !important; }

/* The 16px footer-menu bump + Divi's 33px side padding overflow the 850px
   footer row (PRIVACY POLICY wrapped to a 2nd line). Tighten the padding so
   all five links stay on one line at the larger size. */
div#footer-menu li a { padding: 0 22px !important; }

/* Inline validation on the contact + SMS-policy forms — same blur-validate /
   clear-on-fix pattern as the estimate funnel. Red border on the offending
   field, a short message right beneath it. */
.contact-form input.is-invalid,
.contact-form textarea.is-invalid { border-color: #dc2626 !important; }
.ssd-contact-error {
  display: none;
  color: #dc2626;
  font-size: 14px;
  line-height: 1.4;
  margin: -6px 0 12px;
}
.ssd-contact-error.is-visible { display: block; }

/* Drop-off value prop under the hero ZIP card (elevated 2026-07-17). */
.ssd-hero-tagline {
  margin: 10px 0 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
}
