/* Team Prauser — High Fidelity (Figma node 69:1229) */

:root {
  --green: #129035;
  --black: #000;
  --white: #fff;
  --text: #1f1f1f;
  --text-alt: #212121;
  --muted: #808080;
  --border: #e5e5e5;
  --bg-soft: #fafafa;
  --footer-muted: #c7c7c7;
  --radius: 5px;
  --font-display: 'Cinzel', serif;
  --font-body: 'Roboto', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Shared bits ---------- */

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.32;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  color: var(--green);
}

.heading {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--black);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.32;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity .15s ease, background-color .15s ease;
}
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { opacity: .88; }
.btn--outline { background: var(--white); color: var(--black); box-shadow: inset 0 0 0 1px var(--black); }
.btn--outline:hover { background: var(--bg-soft); }
.btn--sm { padding: 12px 20px; font-size: 14px; }

.section { width: 100%; }

/* ---------- Promo banner ---------- */

.promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 4px max(24px, calc((100% - 1392px) / 2));
  background: var(--green);
  color: var(--white);
}
.promo__arrow {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.promo__arrow img { width: 24px; height: 24px; }
.promo__text {
  flex: 1 0 0;
  min-width: 1px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}
.promo__sep { margin: 0 0.85em; }

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 148px;
  padding: 0 max(50px, calc((100% - 1340px) / 2));
  background: var(--white);
  box-shadow: inset 0 -1px 0 var(--border);
}

.logo { display: block; width: 140px; height: 88.414px; flex: none; }
.logo img { display: block; width: 100%; height: 100%; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__link {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.32;
  color: var(--black);
  white-space: nowrap;
}
.nav__link:hover { color: var(--green); }

/* Services dropdown */
.nav__item { position: relative; display: flex; align-items: center; }

/* Reserve the bold width so the nav doesn't shift when the trigger turns bold */
.nav__link--trigger { display: flex; align-items: center; gap: 6px; }
.nav__text { position: relative; display: inline-block; }
.nav__link--trigger .chevron { flex: none; transition: transform .2s ease; }
.nav__item--dropdown:hover .chevron,
.nav__item--dropdown.is-open .chevron,
.nav__item--dropdown:has(:focus-visible) .chevron { transform: rotate(180deg); }
.nav__item--dropdown.is-dismissed .chevron { transform: none; }
.nav__text::before {
  content: attr(data-text);
  display: block;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  font-weight: 700;
}
.nav__text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

/* The wrapper is the hover bridge (its top padding is the visual gap) */
.dropdown {
  position: absolute;
  top: 100%;
  left: -16px;
  z-index: 40;
  padding-top: 16px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
}
.dropdown__list {
  min-width: 224px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.dropdown__list li + li { border-top: 1px solid var(--border); }
.dropdown__link {
  display: block;
  padding: 0 16px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 44px;
  color: var(--text);
  white-space: nowrap;
}
.dropdown__link:hover,
.dropdown__link:focus-visible { color: var(--green); font-weight: 700; outline: none; background: var(--bg-soft); }

/* Open: mouse hover, keyboard focus, or tapped on touch devices (.is-open) */
.nav__item--dropdown:hover .dropdown,
.nav__item--dropdown.is-open .dropdown {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}
.nav__item--dropdown:has(:focus-visible) .dropdown {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}
.nav__item--dropdown:hover .nav__link--trigger,
.nav__item--dropdown.is-open .nav__link--trigger { color: var(--green); font-weight: 700; }
.nav__item--dropdown:hover .nav__text::after,
.nav__item--dropdown.is-open .nav__text::after { transform: scaleX(1); }
.nav__item--dropdown:has(:focus-visible) .nav__link--trigger { color: var(--green); font-weight: 700; }
.nav__item--dropdown:has(:focus-visible) .nav__text::after { transform: scaleX(1); }

/* Escape dismisses it even while the trigger keeps keyboard focus */
.nav__item--dropdown.is-dismissed .dropdown { visibility: hidden; opacity: 0; transform: translateY(-4px); transition-delay: 0s; }
.nav__item--dropdown.is-dismissed .nav__link--trigger { color: var(--black); font-weight: 400; }
.nav__item--dropdown.is-dismissed .nav__text::after { transform: scaleX(0); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--black);
  border-radius: 50px;
}
.lang-toggle__opt {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 50px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.32;
  white-space: nowrap;
}
.lang-toggle__opt.is-active { background: var(--green); color: var(--white); }
.lang-toggle__flag { width: 20px; height: 20px; border-radius: 10px; object-fit: cover; }

/* ---------- Mobile menu (hidden on desktop) ---------- */

.menu-btn,
.mobile-menu { display: none; }

.menu-btn {
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--green);
  cursor: pointer;
}
.menu-btn:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
.menu-btn__line {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: var(--white);
  transition: transform .2s ease, opacity .15s ease;
}
.menu-btn.is-open .menu-btn__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.is-open .menu-btn__line:nth-child(2) { opacity: 0; }
.menu-btn.is-open .menu-btn__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { padding: 8px 20px 28px; background: var(--white); }
.mobile-menu__item {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  color: var(--black);
}
.mobile-menu__item:hover { color: var(--green); }
button.mobile-menu__item {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: 0; border-bottom: 1px solid var(--border);
  text-align: left; cursor: pointer;
}
.mobile-menu__toggle .chevron { flex: none; transition: transform .2s ease; }
.mobile-menu__toggle[aria-expanded="true"] { color: var(--green); font-weight: 700; }
.mobile-menu__toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.mobile-menu__sub[hidden] { display: none; }
.mobile-menu__subitem {
  display: block; padding: 0 0 0 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-body); font-size: 15px; line-height: 48px; color: var(--text);
}
.mobile-menu__subitem:hover { color: var(--green); font-weight: 700; }
.mobile-menu__cta { padding-top: 24px; }
.mobile-menu__cta .btn { width: 100%; }

/* ---------- Hero ---------- */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 8.68vw, 125px);
  min-height: 680px;
  padding: 68px 50px;
  background: var(--white);
}
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; width: 560px; flex: 0 1 560px; min-width: 0; }
.hero__title { font-size: 60px; }
.hero__lead { font-size: 16px; line-height: 1.55; color: var(--text); }
.hero__buttons { display: flex; align-items: center; gap: 16px; }
.hero__image { width: 572px; height: auto; aspect-ratio: 572 / 480; flex: 0 1 572px; min-width: 0; border-radius: var(--radius); object-fit: cover; }

/* ---------- Services ---------- */

.services { display: flex; flex-direction: column; gap: 40px; padding: 69.875px max(50px, calc((100% - 1340px) / 2)); background: var(--bg-soft); }
.services__heading { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.services__title { font-size: 38px; }
.services__sub { width: 720px; max-width: 100%; font-size: 14px; line-height: 1.55; color: var(--text); }

.services__cards { display: flex; align-items: flex-start; justify-content: center; gap: 30px; }

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 400px;
  flex: 0 1 400px;
  min-width: 0;
  padding: 24px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--border);
  border-radius: var(--radius);
}
.card__image { width: 100%; height: 110px; border-radius: var(--radius); object-fit: cover; }
.card__text { font-size: 14px; line-height: 1.55; color: var(--text); }
.card__text--sm { font-size: 13px; padding-bottom: 1.55em; }
.card__domain {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.55;
  color: var(--black);
}

/* ---------- Why us ---------- */

.why-us {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 55px 50px;
  background: var(--white);
}
.why-us__image { width: 520px; height: auto; aspect-ratio: 520 / 440; flex: 0 1 520px; min-width: 0; border-radius: var(--radius); object-fit: cover; }
.why-us__content { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; width: 580px; flex: 0 1 580px; min-width: 0; }
.why-us__title { font-size: 40px; }
.why-us__lead { font-size: 14px; line-height: 1.55; color: var(--text); }

.accordion { display: flex; flex-direction: column; gap: 24px; width: 100%; }
.accordion__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  background: var(--white);
  border: 0;
  box-shadow: inset 0 0 0 1px var(--border);
  border-radius: var(--radius);
  color: var(--black);
  font: inherit;
  line-height: 1.32;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.accordion__label { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.accordion__icon { font-family: var(--font-display); font-weight: 400; font-size: 20px; }

/* ---------- Feature rows (contractor / realtor / insurance) ---------- */

.feature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 50px;
  background: var(--white);
}
.feature--soft { background: var(--bg-soft); }
.feature--dark { background: var(--black); color: var(--white); }

.feature__content { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; width: 560px; flex: 0 1 560px; min-width: 0; }
.feature__title { font-size: 38px; }
.feature__lead { font-size: 14px; line-height: 1.55; color: var(--text); }
.feature__list { font-size: 14px; line-height: 1.55; color: var(--black); }
.feature__list li::before { content: "\2022\00a0\00a0"; white-space: pre; }
.feature__image { width: 560px; height: auto; aspect-ratio: 560 / 400; flex: 0 1 560px; min-width: 0; border-radius: var(--radius); object-fit: cover; }

.feature--alt .feature__list { color: var(--text-alt); }

.feature--dark .eyebrow,
.feature--dark .heading,
.feature--dark .feature__lead,
.feature--dark .feature__list { color: var(--white); }

/* ---------- Contact ---------- */

.contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 60.5px 50px;
  background: var(--white);
}
.contact__content { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; width: 500px; flex: 0 1 500px; min-width: 0; }
.contact__title { font-size: 40px; }
.contact__lead { font-size: 14px; line-height: 1.55; color: var(--text-alt); }
.contact__details { font-size: 14px; line-height: 1.55; color: var(--black); }

.form-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 620px;
  flex: 0 1 620px;
  min-width: 0;
  padding: 32px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--border);
  border-radius: var(--radius);
}
.form-row { display: flex; align-items: flex-start; gap: 20px; width: 100%; }
.field { display: flex; flex: 1 0 0; flex-direction: column; gap: 8px; min-width: 1px; }
.field__label { font-family: var(--font-display); font-weight: 700; font-size: 13px; line-height: 1.32; color: var(--black); }

.field__control {
  width: 100%;
  height: 48px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.32;
}
.field__control::placeholder { color: var(--muted); opacity: 1; }
.field__control:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
textarea.field__control { height: 110px; line-height: 1.55; resize: vertical; }

.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select-wrap select:invalid { color: var(--muted); }
.select-wrap img { position: absolute; right: 16px; top: 16px; width: 16px; height: 16px; pointer-events: none; }

.form-submit { width: 100%; padding: 16px 24px; }
.form-note { font-family: var(--font-display); font-weight: 400; font-size: 13px; line-height: 1.55; color: var(--muted); text-align: center; }

.form-alert { padding: 12px 16px; border-radius: var(--radius); font-size: 14px; line-height: 1.55; }
.form-alert--ok { background: #e8f5ec; color: #0c5e23; border: 1px solid var(--green); }
.form-alert--error { background: #fdecec; color: #8a1c1c; border: 1px solid #e0a0a0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 29.125px max(80px, calc((100% - 1280px) / 2));
  background: var(--black);
  color: var(--white);
}
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; width: 100%; }

.footer-brand { display: flex; flex-direction: column; gap: 16px; width: 280px; flex: none; }
.logo--footer { width: 190px; height: 120px; }
.footer-brand__text { font-size: 13px; line-height: 1.55; color: var(--footer-muted); }

.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.footer-col--services { width: 340px; flex: 0 1 340px; min-width: 0; }
.footer-col--contact { width: 300px; flex: 0 1 300px; min-width: 0; }
.footer-col__title { font-family: var(--font-display); font-weight: 700; font-size: 13px; line-height: 1.32; color: var(--footer-muted); }
.footer-col__body { font-family: var(--font-display); font-weight: 400; font-size: 13px; line-height: 1.55; color: var(--white); }
.footer-col__body a:hover { color: var(--footer-muted); }

.social { display: flex; align-items: flex-start; gap: 12px; }
.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}
.social a:hover { background: rgba(255, 255, 255, 0.2); }
.social img { width: 18px; height: 18px; }

.footer-copy { font-family: var(--font-display); font-weight: 400; font-size: 11px; line-height: 1.55; color: var(--footer-muted); text-align: center; }

/* ---------- Responsive ----------
   The design is a 1440px desktop frame. Columns shrink fluidly down to 1100px;
   below that the layout stacks. */

@media (max-width: 1100px) {
  .site-header { padding: 0 24px; }
  .nav { gap: 20px; }
  .hero { flex-direction: column; min-height: 0; padding: 48px 24px; gap: 40px; }
  .hero__copy, .hero__image { width: 100%; max-width: 640px; flex: none; }
  .services__cards { flex-wrap: wrap; }
  .card { flex: 0 1 400px; }
  .why-us, .feature, .contact { flex-direction: column; padding: 48px 24px; }
  .why-us__image, .feature__image { width: 100%; max-width: 560px; flex: none; }
  .why-us__content, .feature__content, .contact__content, .form-card { width: 100%; max-width: 620px; flex: none; }
  .feature--flip .feature__image { order: 2; }
  .services, .site-footer { padding-left: 24px; padding-right: 24px; }
  .footer-top { flex-wrap: wrap; gap: 40px; }
  .footer-col--services, .footer-col--contact { flex: none; }
}

@media (max-width: 800px) {
  /* Mobile promo banner: one message at a time, arrows cycle them */
  .promo { padding: 8px 12px; }
  .promo__text { font-size: 12px; }
  .promo__sep, .promo__item { display: none; }
  .promo__item.is-active { display: inline; }

  /* Mobile header: logo + language toggle + menu button */
  .site-header { height: auto; padding: 12px 16px; }
  .logo { width: 84px; height: 53.048px; }
  .nav, .dropdown, .header-actions__signin { display: none; }
  .menu-btn { display: flex; }
  .mobile-menu:not([hidden]) { display: block; }

  .hero__title { font-size: 44px; }
  .card { width: 100%; max-width: 400px; flex: none; }
  .form-row { flex-direction: column; }
  .footer-brand, .footer-col--services, .footer-col--contact { width: 100%; max-width: 340px; }
}

@media (max-width: 520px) {
  .hero__buttons { flex-direction: column; align-items: stretch; width: 100%; }
}

/* ---------- "Get a quote" popup ---------- */

body.modal-open { overflow: hidden; }

.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }

.modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 760px;
  max-height: 100%;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}
.modal__scroll { overflow-y: auto; padding: 40px; border-radius: 8px; }

.modal__close {
  position: absolute;
  top: 36px;
  right: 40px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--white);
  border: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--black);
  cursor: pointer;
}
.modal__close:hover { background: var(--bg-soft); }

.quote { display: flex; flex-direction: column; gap: 16px; }
.quote > .eyebrow { margin-bottom: -8px; }
.modal__title { font-size: 28px; line-height: 1.15; text-transform: none; padding-right: 56px; }
.modal__sub { font-family: var(--font-body); font-size: 14px; line-height: 1.5; color: var(--text); margin-top: -4px; }

.quote__group { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.quote__group legend { padding: 0; margin-bottom: 8px; }
.quote .field__label { text-transform: uppercase; letter-spacing: .04em; font-size: 12px; }

/* service cards */
.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.svc-card { position: relative; display: block; cursor: pointer; }
.svc-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.svc-card__body {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--green);
  transition: background .15s ease, box-shadow .15s ease;
}
.svc-card:hover .svc-card__body { background: var(--bg-soft); }
.svc-card__icon { margin-bottom: 14px; }
.svc-card__title { font-family: var(--font-display); font-weight: 700; font-size: 14px; line-height: 1.32; color: var(--black); }
.svc-card__desc { font-family: var(--font-body); font-size: 12px; line-height: 1.45; color: var(--muted); }
.svc-card__check { position: absolute; top: 12px; right: 12px; opacity: 0; transform: scale(.7); transition: opacity .15s ease, transform .15s ease; }
.svc-card input:checked ~ .svc-card__body { background: #e8f5ec; box-shadow: inset 0 0 0 2px var(--green); }
.svc-card input:checked ~ .svc-card__check { opacity: 1; transform: none; }
.svc-card input:focus-visible ~ .svc-card__body { outline: 2px solid var(--green); outline-offset: 2px; }

/* custom dropdown */
.dd { position: relative; }
.dd__btn { display: flex; align-items: center; justify-content: space-between; text-align: left; cursor: pointer; }
.dd__value.is-placeholder { color: var(--muted); }
.dd__chevron { flex: none; transition: transform .15s ease; }
.dd__btn[aria-expanded="true"] .dd__chevron { transform: rotate(180deg); }
.dd__list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 5;
  margin: 0; padding: 0; list-style: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.dd__list[hidden] { display: none; }
.dd__option { padding: 0 16px; font-family: var(--font-display); font-size: 14px; line-height: 40px; color: var(--text); cursor: pointer; }
.dd__option + .dd__option { border-top: 1px solid var(--border); }
.dd__option:hover, .dd__option:focus, .dd__option[aria-selected="true"] { color: var(--green); font-weight: 700; outline: none; background: var(--bg-soft); }

/* segmented contact preference */
.seg { display: flex; gap: 8px; }
.seg__opt { position: relative; flex: 1 1 0; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg__opt span {
  display: flex; align-items: center; justify-content: center; height: 48px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--border);
  font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--black);
  transition: background .15s ease, color .15s ease;
}
.seg__opt:hover span { background: var(--bg-soft); }
.seg__opt input:checked + span { background: var(--green); color: var(--white); box-shadow: none; }
.seg__opt input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }

/* consent checkbox */
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-family: var(--font-body); font-size: 12px; line-height: 1.5; color: var(--text); }
.check input {
  appearance: none; -webkit-appearance: none; flex: none; width: 16px; height: 16px; margin: 1px 0 0;
  border-radius: 3px; background: var(--white); box-shadow: inset 0 0 0 1px #b5b5b5; cursor: pointer;
}
.check input:checked {
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  box-shadow: none;
}
.check input:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.modal__success { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 0; text-align: center; }
.modal__success .modal__title { padding-right: 0; }
.modal__success .modal__sub { margin-top: 0; }
.modal__success .btn { margin-top: 12px; }

@media (max-width: 640px) {
  .modal { padding: 12px; }
  .modal__scroll { padding: 24px 20px; }
  .modal__close { top: 16px; right: 16px; }
  .modal__title { font-size: 24px; padding-right: 48px; }
  .svc-cards { grid-template-columns: 1fr; }
  .svc-card__body { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 14px 16px; }
  .svc-card__icon { margin: 0; }
  .svc-card__desc { flex-basis: 100%; }
  .quote .form-row { flex-direction: column; align-items: stretch; gap: 16px; }
  .quote .form-row > .field { flex: none; width: 100%; }
}
