:root {
  --bg-accent-1: rgb(252, 243, 243);
  --bg-accent-2: rgb(253, 253, 253);
  --particle-core: rgba(247, 246, 246, 0);
  --particle-mid: rgba(105, 101, 101, 0.959);
  --particle-edge: rgba(190, 190, 190, 0);

  
  --calc-width: 480px;
  --seo-width: 300px;
  --seo-gap: 48px;

  
  --brand-blue: #004080;
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background: transparent;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  display: block;
  position: relative;
  z-index: 1;
}


.intro-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.6s ease;
  background: #000;
}

.intro-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.intro-video {
  max-width: 100%;
  max-height: 100%;
}


.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  justify-content: center;
  z-index: 1000;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-logo {
  width: 60px;
  height: 60px;
  display: block;
  object-fit: contain;
}

.nav-brand {
  margin-right: auto;
}


.main-nav {
  width: 100%;
  max-width: 480px;
  
  padding: 16px 12px;
  
  margin: 0 auto;
  box-sizing: border-box;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
}

.nav-links .cta a {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  background: #053df7;
  color: #fff;
  font-weight: 600;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.nav-links .cta a:hover {
  background: #0056b3;
  box-shadow: 0 6px 14px rgba(0, 91, 187, 0.35);
  transform: translateY(-1px);
}

.nav-links .sign-in a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 2px solid #007bff;
  border-radius: 6px;
  color: #007bff;
}

.nav-links .sign-in a:hover {
  background: rgba(0, 123, 255, 0.12);
  border-color: #0056b3;
  color: #0056b3;
  box-shadow: 0 6px 14px rgba(0, 91, 187, 0.35);
  transform: translateY(-1px);
}


.buddy-icon svg {
  display: block;
}


.has-dropdown {
  position: relative;
}

.dropdown {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 240px;
  transition: opacity .25s ease, visibility .25s ease;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
}

.dropdown a {
  display: block;
  padding: 10px 16px;
  color: #333;
}

.dropdown a:hover {
  background: #f3f0f0;
}


#blur-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 100;
  padding-top: var(--nav-h);
}

#blur-wrapper.blur {
  filter: blur(4px);
  transition: filter .25s ease;
}


.bg-frame {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 0;
  pointer-events: none;
}



.calc-stage {
  position: relative;
  width: 480px;
  margin: 10px auto 0;
}


.calculator-container {
  position: relative;
  width: 480px;
  height: 750px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  margin-top: 10px;
}

.white-overlay {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 2;
  pointer-events: none;
}


.calculator {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  transition: opacity .6s ease;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0;
}

.calculator.show {
  opacity: 1;
}


.quiz-container {
  width: 100%;
  max-width: 480px;
  background: #fff;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);

  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}


.progress {
  height: 8px;
  background: #ddd;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: #007bff;
  transition: width 0.3s;
}


.quiz-container h2 {
  font-size: 1.25rem;
  margin: 0 0 18px 0;
  color: #111;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}


.options input,
#sqftInput,
.quiz-container select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d7d7d7;
  background: #f3f4f6;
  font-size: 1rem;
}

.quiz-container select:focus,
#sqftInput:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.18);
}


.next-btn {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d7d7d7;
  background: #007bff;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.06s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
}

#nextBtn {
  margin-top: 8px;
}

.next-btn:hover {
  background: #0056b3;
}

.next-btn:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.10);
}

.next-btn:disabled {
  background: #9aa3ad;
  border-color: #9aa3ad;
  cursor: not-allowed;
  box-shadow: none;
}


.multi-btn {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #007bff;
  background: #007bff;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 160ms ease, border-color 160ms ease;
}


.multi-btn:hover {
  background: #0056b3;
  border-color: rgba(0, 123, 255, 0.55);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
  transform: translateY(-1px);
}


.multi-btn:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.10);
}


.multi-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.18);
  border-color: rgba(0, 123, 255, 0.65);
}


.multi-btn.selected {
  background: #060a3d;
  color: #fff;
  border-color: #060a3d;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}


.multi-btn.selected,
.multi-btn.selected span {
  color: #fff;
}


.multi-btn.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 58px;
  padding: 0;
  width: 100%;
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #111;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  will-change: transform;
}

.multi-btn.category-card .cat-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: none;
  transition: filter 220ms ease, transform 220ms ease;
}

.multi-btn.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  pointer-events: none;
  transition: background 220ms ease;
}

.multi-btn.category-card .cat-label {
  position: absolute;
  left: 14px;
  bottom: 10px;
  z-index: 2;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.70);
}

.multi-btn.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  border-color: rgba(0, 123, 255, 0.65);
}

.multi-btn.category-card:hover .cat-img {
  filter: none;
  transform: scale(1.05);
}

.multi-btn.category-card:hover::after {
  background: rgba(0, 0, 0, 0.22);
}

.multi-btn.category-card.selected {
  outline: 3px solid rgba(0, 123, 255, 0.95);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.18), 0 14px 28px rgba(0, 0, 0, 0.22);
}

.multi-btn.category-card.selected .cat-img {
  filter: none;
  transform: scale(1.06);
}

.multi-btn.category-card.selected::after {
  background: linear-gradient(90deg,
      rgba(0, 123, 255, 0.28) 0%,
      rgba(0, 0, 0, 0.22) 70%,
      rgba(0, 0, 0, 0.10) 100%);
}


.back-btn {
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: none;
  background: #6c757d;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.back-btn:hover {
  background: #5a6268;
}


.social-icons-sticky {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 24px 0 40px;
  position: relative;
  z-index: 5;
}

.social-icons-sticky a img {
  width: 36px;
  height: 36px;
  display: block;
}

.social-icons-sticky a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: transform 180ms ease, filter 180ms ease;
  will-change: transform;
}

.social-icons-sticky a:hover {
  transform: translateY(-4px) scale(1.08);
}

.social-icons-sticky a:hover img {
  filter: brightness(1.08);
}

.social-icons-sticky a:active {
  transform: translateY(-1px) scale(1.03);
}


.calculator-note {
  width: 480px;
  margin-top: 10px;
  text-align: center;
}

.calculator-note p {
  margin: 0;
  font-size: 0.55rem;
  line-height: 1.55;
  color: #6b6b6b;
}

@media (max-width: 520px) {
  .calculator-note {
    width: 100%;
    padding: 0 12px;
  }
}


.signin-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}

.signin-modal.show,
.signin-modal.active {
  display: block;
}

.signin-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.signin-box {
  position: relative;
  background: #fff;
  width: 90%;
  max-width: 420px;
  margin: 10vh auto;
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.signin-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}


.signin-provider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease;
}

.signin-provider .icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.signin-provider .icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.signin-provider.google {
  background: #fff;
  color: #444;
  border: 1px solid #ddd;
}

.signin-provider.facebook {
  background: #1877f2;
  color: #fff;
}

.signin-provider.facebook .icon svg {
  fill: #fff;
}

.signin-provider.google .icon svg {
  fill: none;
}

.signin-provider:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}


.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
}

.quote-modal.show {
  display: block;
}

.quote-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.60);
}

.quote-box {
  position: relative;
  width: 92%;
  max-width: 720px;

  
  margin: clamp(12px, 6vh, 44px) auto;
  transform: translateY(-10px);

  background: rgba(255, 255, 255, 0.98);
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
  text-align: left;

  max-height: calc(100vh - 40px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.quote-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.quote-title {
  margin: 0 0 6px;
  font-size: 1.25rem;
  color: #111;
}

.quote-subtitle {
  margin: 0 0 14px;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.45;
}

.quote-step {
  margin-top: 8px;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 520px) {
  .quote-grid {
    grid-template-columns: 1fr;
  }
}

.quote-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quote-field-full {
  grid-column: 1 / -1;
}

.quote-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #222;
}

.quote-field .req {
  color: #c62828;
}

.quote-field input,
.quote-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d7d7d7;
  background: #f3f4f6;
  font-size: 1rem;
  outline: none;
}

.quote-field input:focus,
.quote-field textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.18);
}

.quote-section {
  border-top: 1px solid rgba(0, 0, 0, 0.10);
  padding-top: 14px;
  margin-top: 14px;
}

.quote-section h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: #111;
}

.quote-muted {
  margin: 0 0 10px;
  color: #555;
  font-size: 0.9rem;
}

.quote-checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 6px;
  padding-bottom: 10px;
}

@media (max-width:520px) {
  .quote-checkboxes {
    grid-template-columns: 1fr;
  }
}


@media (min-width: 760px) {
  .quote-checkboxes {
    grid-template-columns: repeat(5, 1fr);
  }
}

.quote-checkboxes::-webkit-scrollbar {
  width: 6px;
}

.quote-checkboxes::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}

.quote-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.quote-check * {
  cursor: pointer;
}

.quote-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  appearance: auto;
  -webkit-appearance: checkbox;
  -moz-appearance: auto;
  accent-color: var(--brand-blue);
  opacity: 1;
  visibility: visible;
  display: inline-block;
  flex: 0 0 auto;
}

.quote-check span {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111;
}

.quote-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.quote-actions-split {
  justify-content: space-between;
  align-items: center;
}

.quote-actions .next-btn,
.quote-actions .back-btn {
  margin-top: 0 !important;
}

.quote-trust {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #555;
  opacity: 0.95;
}

.quote-status {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #1b5e20;
}

.quote-status.error {
  color: #b71c1c;
}


.quote-btn {
  background: var(--brand-blue);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.quote-btn:hover {
  filter: brightness(1.05);
}

.quote-btn:active {
  transform: translateY(1px);
}


.results-container {
  padding-bottom: 10px;
}

.results-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-bottom: 10px;
}

.results-actions .next-btn {
  margin-top: 0 !important;
}

#contractorCtaBtn {
  order: 1;
  flex: 1 1 320px;
}

#startOverBtn {
  order: 2;
  flex: 0 0 auto;
  min-width: 160px;
}

@media (max-width:520px) {

  #contractorCtaBtn,
  #startOverBtn {
    width: 100%;
  }
}

.accordion-panel {
  margin-bottom: 12px;
}

.accordion-content {
  scroll-margin-bottom: 14px;
}

.email-capture {
  position: relative;
  z-index: 2;
  margin-top: 18px;
}


.seo-card {
  position: fixed;
  top: 120px;
  left: calc(50% - (var(--calc-width) / 2) - var(--seo-gap) - var(--seo-width));
  width: var(--seo-width);
  min-height: 300px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  backdrop-filter: blur(6px);
  z-index: 5;
  overflow: hidden;
  animation: seoFloat 7s ease-in-out infinite;
  will-change: transform;
}

@keyframes seoFloat {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }

  100% {
    transform: translateY(0);
  }
}

.seo-slide {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  opacity: 0;
  transition: opacity 3.2s ease;
  pointer-events: none;
}

.seo-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.seo-card h1,
.seo-card h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  color: #111;
}

.seo-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444;
}

@media (max-width: 1200px) {
  .seo-card {
    display: none;
  }
}


.legal-page {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 28px 16px 40px;
  position: relative;
  z-index: 5;
}

.legal-card {
  width: min(920px, 100%);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(6px);
}

.legal-card h1 {
  margin: 0 0 6px;
  font-size: 1.8rem;
  color: #111;
}

.legal-updated {
  margin: 0 0 18px;
  color: #666;
  font-size: 0.95rem;
}

.legal-card h2 {
  margin: 18px 0 8px;
  font-size: 1.15rem;
  color: #111;
}

.legal-card p {
  margin: 0 0 10px;
  color: #444;
  line-height: 1.65;
}

.legal-card ul {
  margin: 8px 0 12px 18px;
  color: #444;
  line-height: 1.6;
}

.legal-contact {
  margin-top: 6px;
}

.legal-footer-links {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  font-weight: 600;
}

.legal-footer-links a {
  text-decoration: none;
  color: #007bff;
}

.legal-footer-links a:hover {
  text-decoration: underline;
}

.legal-footer-links .dot {
  color: #999;
}


.site-footer {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 10px 0 24px;
  position: relative;
  z-index: 5;
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
}

.site-footer a {
  color: #666;
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-dot {
  margin: 0 8px;
  color: #aaa;
}


.roadmap-card h2 {
  margin-top: 22px;
}

.roadmap-list {
  margin: 10px 0 18px 18px;
  padding: 0;
  line-height: 1.6;
}

.roadmap-list li {
  margin-bottom: 6px;
}

.roadmap-list.done li::marker {
  content: "✔  ";
  color: #28a745;
}

.roadmap-list.next li::marker {
  content: "→  ";
  color: #007bff;
}

.roadmap-list.planned li::marker {
  content: "•  ";
  color: #999;
}


.site-header {
  justify-content: center;
}

.main-nav {
  max-width: 480px;
  padding: 16px 0;
}

.nav-links {
  width: 100%;
  justify-content: center;
  gap: 22px;
}


.lead-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lead-modal.show {
  display: flex;
}

.lead-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.lead-box {
  position: relative;
  width: min(720px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  padding: 18px 18px 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.lead-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.06);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.lead-sub {
  margin: 6px 0 14px;
  color: rgba(0, 0, 0, 0.70);
}

.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .lead-grid {
    grid-template-columns: 1fr;
  }
}

.lead-field label,
.lead-notes label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.req {
  color: var(--brand-blue);
}

.opt {
  color: rgba(0, 0, 0, 0.55);
  font-weight: 500;
}

.lead-field input,
.lead-notes textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  outline: none;
  font-family: inherit;
}

.lead-field input:focus,
.lead-notes textarea:focus {
  border-color: rgba(0, 123, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.lead-trades {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.02);
}

.lead-trades-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.lead-trades-head h3 {
  margin: 0;
  font-size: 1rem;
}

.lead-mini-actions {
  display: flex;
  gap: 8px;
}

.lead-small-btn {
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}

.lead-trades-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 640px) {
  .lead-trades-wrap {
    grid-template-columns: 1fr;
  }
}

.lead-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 12px;
  cursor: pointer;
}

.lead-check input {
  width: 18px;
  height: 18px;
}

.lead-notes {
  margin-top: 12px;
}

.lead-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 14px;
}

.lead-status {
  margin-top: 10px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.70);
}

.lead-fineprint {
  display: block;
  margin-top: 10px;
  color: rgba(0, 0, 0, 0.55);
}


@media (max-width: 520px) {

  
  body {
    padding: 10px 10px 18px;
  }

  
  .site-header {
    width: 100%;
    left: 0;
    margin-left: 0;
  }

  .main-nav {
    max-width: 100%;
    padding: 12px 10px;
  }

  .nav-links {
    gap: 14px;
    flex-wrap: wrap;
  }

  
  .calc-stage {
    width: 100%;
    margin: 10px auto 0;
  }

  
  .calculator-container {
    width: 100%;
    height: auto;
    min-height: calc(100vh - 170px);
    
    border-radius: 16px;
  }

  
  .quiz-container {
    max-width: 100%;
    padding: 18px;
    border-radius: 14px;
  }

  
  .quiz-container h2 {
    font-size: 1.1rem;
    line-height: 1.25;
  }

  
  .next-btn,
  .back-btn,
  .multi-btn {
    padding: 13px 14px;
    font-size: 1rem;
  }

  
  .multi-btn.category-card {
    height: 64px;
  }

  .multi-btn.category-card .cat-label {
    left: 12px;
    bottom: 10px;
    font-size: 0.9rem;
    letter-spacing: 0.10em;
  }

  
  .calculator-note {
    width: 100%;
    padding: 0 6px;
  }

  .social-icons-sticky a img {
    width: 32px;
    height: 32px;
  }

  
  .seo-card {
    position: static;
    width: 100%;
    max-width: 520px;
    margin: 18px auto 0;
    padding: 18px 16px;

    
    background: rgba(255, 255, 255, 0.92);
    border-radius: 14px;
    box-shadow:
      0 8px 22px rgba(0, 0, 0, 0.08),
      0 0 0 1px rgba(255, 255, 255, 0.6) inset;

    animation: none;
    
    display: block !important;

    min-height: 0 !important;
    height: auto !important;
  }

  
  .seo-slide {
    position: relative;
    inset: auto;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;

    opacity: 1;
    pointer-events: auto;
    transition: none;
  }

  
  .seo-card h1,
  .seo-card h2 {
    font-size: 1.15rem;
    line-height: 1.3;
  }

  .seo-card p {
    font-size: 0.92rem;
  }

  
  #blur-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  
  .calc-stage {
    order: 1;
    width: 100%;
    max-width: 480px;
  }

  
  .calculator-container {
    width: 100%;
    max-width: 480px;
  }

  
  .calculator-note {
    order: 2;
    width: 100%;
    max-width: 480px;
    margin: 12px auto 0;
    padding: 0 12px;
  }

  
  .seo-card {
    order: 3;
    width: 100%;
    max-width: 480px;
    margin: 14px auto 0;
    padding: 16px 14px;
  }

  
  .social-icons-sticky {
    order: 4;
    margin: 18px 0 26px;
  }

  
  .quiz-container.scroll-hint::after {
    content: "";
    position: sticky;
    bottom: 0;
    display: block;
    height: 28px;
    margin-top: -28px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
  }
}


.site-header {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

:root {
  --nav-h: 64px;
  
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 1000;
}


#blur-wrapper.blur .seo-card {
  filter: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 9999;
  position: fixed;
  
}


@-moz-document url-prefix() {

  
  #blur-wrapper.blur {
    filter: blur(4px);
  }

  
  #blur-wrapper.blur .seo-card {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;

    
    position: fixed !important;

    
    transform: translateZ(0);
    backface-visibility: hidden;

    
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    animation: none !important;
  }

  
  .site-header {
    z-index: 10000;
  }

  .dropdown {
    z-index: 10001;
  }
}


#blur-wrapper.blur~footer,
#blur-wrapper.blur+footer {
  filter: blur(6px);
  transition: filter 200ms ease;
}


.guide-card {
  font-size: 20px;
  
  line-height: 1.65;
}


.guide-card p,
.guide-card li {
  font-size: 1.05em;
  
  line-height: 1.7;
}


.guide-card h1 {
  font-size: 2.0em;
  /* ~34px */
  line-height: 1.15;
}

.guide-card h2 {
  font-size: 1.45em;
  /* ~25px */
  line-height: 1.25;
  margin-top: 26px;
}

.guide-card h3 {
  font-size: 1.18em;
  /* ~20px */
  line-height: 1.3;
}


.guide-toc a {
  font-size: 0.98em;
}


@media (max-width: 520px) {
  .guide-card {
    font-size: 16px;
  }

  .guide-card h1 {
    font-size: 1.7em;
  }
}


.nav-logo-link {
  position: fixed;
  
  top: -8px;
  
  left: 12px;
  
  z-index: 10002;
  
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  
  height: 80px;
}

@media print {
  body * {
    visibility: hidden !important;
  }

  
  .results-container,
  .results-container * {
    visibility: visible !important;
  }

  .results-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100% !important;
  }

  
  .results-actions,
  .next-btn,
  .back-btn,
  header,
  nav,
  footer {
    display: none !important;
  }

  
  .accordion-content {
    max-height: none !important;
    overflow: visible !important;
    padding: 10px !important;
  }

  .accordion-panel {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}


@media (max-width: 768px) {

  
  .intro-overlay:not(.fade-out)+.site-header {
    display: none !important;
  }

  
  .intro-overlay {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #000 !important;
  }

  .intro-video {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    object-fit: cover !important;
    
  }

  :root {
    --nav-h: 96px;
  }

  
  .site-header {
    position: fixed !important;
    /* ✅ was sticky */
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;

    width: 100vw !important;
    margin: 0 !important;
    border-radius: 0 !important;

    background: #fff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.10) !important;
    z-index: 9000 !important;

    
    display: block !important;
    justify-content: initial !important;
  }

  
  .main-nav {
    display: none !important;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  
  #navBurger {
    display: flex !important;
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;

    width: 52px !important;
    height: 52px !important;

    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;

    flex-direction: column !important;
    justify-content: center !important;
    gap: 7px !important;

    z-index: 9500 !important;
  }

  #navBurger span {
    display: block !important;
    width: 28px !important;
    height: 3px !important;
    background: #111 !important;
    border-radius: 3px !important;
  }

  
  .nav-logo-link {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;

    transform: translate(-50%, -50%) !important;

  
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;

    z-index: 9500 !important;
  }

  
  .nav-logo-img,
  .nav-logo {
    height: 90px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
  }

  
  .nav-right-spacer {
    display: block !important;
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 52px !important;
    height: 52px !important;
  }

  
  #blur-wrapper {
    padding-top: var(--nav-h) !important;
  }
}


@media (max-width: 768px) {

  .multi-btn.category-card {
    height: 36px !important;
    
    border-radius: 10px !important;
  }

  .multi-btn.category-card .cat-label {
    left: 12px !important;
    bottom: 8px !important;
    font-size: 0.78rem !important;
    
    letter-spacing: 0.10em !important;
  }

  
  .multi-btn.category-card:hover .cat-img {
    transform: scale(1.02) !important;
  }
}



@media (max-width: 768px) {
  #downloadPdfBtn {
    display: none !important;
  }
}


@media (min-width: 769px) {

  #navBurger,
  .nav-burger {
    display: none !important;
  }

  #navDrawer,
  .nav-drawer,
  #navDrawerOverlay,
  .nav-drawer-overlay {
    display: none !important;
  }

  
  #navDrawer[hidden],
  #navDrawerOverlay[hidden] {
    display: none !important;
  }
}

@media (max-width: 768px) {

  .calculator-container {
    width: 100% !important;
    max-width: 480px !important;

    
    height: auto !important;
    max-height: min(600px, 85dvh) !important;
    /* caps tall phones */
    min-height: 520px !important;

    margin: 8px auto 0 !important;
    overflow: hidden !important;
    border-radius: 16px !important;
  }

  
  .calculator {
    position: relative !important;
    inset: auto !important;
    height: 100% !important;
    padding: 0 !important;
    display: block !important;
  }

  
  .quiz-container {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;

    margin: 0 !important;
    padding: 12px !important;

    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;

    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}


@media (max-width: 768px) {
  #downloadPdfBtn {
    display: none !important;
  }

  #downloadPdfBtn+div {
    display: none !important;
  }

}


@media (max-width: 768px) {

  body.is-results .calculator-container {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;

    
    border-radius: 16px !important;
    overflow: hidden !important;
    
    background: #fff !important;
  }

  
  body.is-results .quiz-container {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;

    
    background: transparent !important;
  }

  body.is-results .results-container {
    overflow: visible !important;
    max-height: none !important;
  }

  body.is-results .results-actions {
    position: static !important;
    padding-bottom: 10px !important;
    margin-top: 12px !important;
  }

  
  body.is-results #downloadPdfBtn,
  body.is-results #downloadPdfBtn+div {
    display: none !important;
  }
}

@media (max-width: 768px) {
  body.is-results .calculator-container {
    height: auto;
    max-height: none;
    overflow: visible;
  }
}


.quote-modal,
.signin-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  height: 100vh;
  /* fallback */
  z-index: 9999;
}


.quote-modal .quote-backdrop,
.signin-modal .signin-backdrop {
  position: absolute;
  inset: 0;
  touch-action: none;
}


.quote-modal .quote-box,
.signin-modal .signin-box {
  position: relative;
  max-height: calc(100dvh - 24px);
  max-height: calc(100vh - 24px);
  /* fallback */
  overflow: hidden;
  
  margin: 12px auto;
}


.quote-modal .quote-box {
  display: flex;
  flex-direction: column;
}


.quote-modal .quote-box> :not(.quote-actions):not(.quote-status) {
  flex: 0 0 auto;
}


.quote-modal .quote-step {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

.quote-modal .quote-actions {
  flex: 0 0 auto;
  padding-bottom: env(safe-area-inset-bottom);
}

html.modal-open,
body.modal-open {
  overflow: hidden;
  height: 100%;
}


.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  
}

.quote-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}


.quote-modal .quote-backdrop {
  position: absolute;
  inset: 0;
}


.quote-modal .quote-box {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100dvh - 24px);
  max-height: calc(100vh - 24px);
  /* fallback */
  overflow-y: auto;
  
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  /* iOS bar cut-off */
}


.quote-modal .quote-step {
  overflow: visible;
}

.region-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px auto 8px;
  font-family: Inter, system-ui, sans-serif;
}

.region-label {
  font-size: 14px;
  opacity: 0.8;
}

.region-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 4px;
}

.region-toggle button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 999px;
  opacity: 0.7;
}

.region-toggle button.active {
  background: #007bff;
  color: #fff;
  opacity: 1;
}
