@font-face {
  font-family: Manrope;
  src: url('/fonts/manrope-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap
}

@font-face {
  font-family: Manrope;
  src: url('/fonts/manrope-latin-700-normal.woff2') format('woff2');
  font-weight: 600 700;
  font-display: swap
}

@font-face {
  font-family: Manrope;
  src: url('/fonts/manrope-latin-800-normal.woff2') format('woff2');
  font-weight: 800;
  font-display: swap
}

:root {
  font-family: Manrope,system-ui,sans-serif;
  color: #232323;
  background: #fff;
  font-synthesis: none;
  --amber: #FFB343;
  --line: #E2E2E2
}

* {
  box-sizing: border-box
}

body {
  margin: 0
}

button,input {
  font: inherit
}

button {
  cursor: pointer
}

button:disabled {
  cursor: wait;
  opacity: .65
}

[hidden] {
  display: none!important
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0
}

.form-container {
  padding: 26px 24px 16px;
  max-width: 600px;
  margin: auto
}

.modal-view .form-container {
  padding-top: 52px
}

h1,h2 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -.035em;
  text-align: center;
  margin: 0 0 22px;
  font-weight: 800
}

h1:focus,h2:focus {
  outline: none
}

#scopeTitle {
  font-size: clamp(16px, 6vw, 28px);
  white-space: nowrap;
}

.intro {
  font-size: 13px;
  text-align: center;
  color: #626262;
  line-height: 1.6;
  margin: -8px 0 24px
}

.benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 7px;
  justify-content: center;
  font-size: clamp(15px, 4.5vw, 20px);
  font-weight: 800
}

.benefits li {
  display: flex;
  align-items: center;
  gap: 6px
}

.benefits svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0
}

.choices {
  border: 0;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px
}

.choice {
  position: relative;
  cursor: pointer;
  min-width: 0
}

.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px
}

.choice-card {
  position: relative;
  border: 2px solid var(--line);
  background: #F6F6F6;
  border-radius: 12px;
  padding: 22px 6px 18px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  transition: border-color .15s,background .15s
}

.illustration {
  width: 65px;
  height: 65px;
  display: block
}

.choice:hover .choice-card {
  border-color: #A36200
}

.choice input:checked+.choice-card {
  border-color: #A36200;
  background: #FFF8EC;
  box-shadow: 0 0 0 1px #A36200
}

.selected-check {
  position: absolute;
  top: 6px;
  right: 7px;
  background: #232323;
  color: var(--amber);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 13px;
  display: none
}

.choice input:checked+.choice-card .selected-check {
  display: block
}

.choice input:focus-visible+.choice-card {
  outline: 3px solid #232323;
  outline-offset: 3px
}

.homes {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 9px;
  margin: 30px 0
}

.homes .choice-card {
  font-size: 12px;
  min-height: 142px;
  padding: 20px 3px 15px
}

.homes .illustration {
  width: 54px;
  height: 54px
}

.primary,.secondary {
  border: 2px solid transparent;
  border-radius: 9px;
  min-height: 52px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  line-height: 1.4
}

.primary {
  background: var(--amber);
  color: #232323;
  width: 100%;
  margin-top: 22px
}

.primary:hover {
  background: #FFA520
}

.primary svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0
}

.secondary {
  background: #fff;
  color: #232323;
  border-color: #aaa
}

.secondary:hover {
  background: #F6F6F6
}

.secondary[aria-pressed=true] {
  background: #FFF8EC;
  border-color: #A36200
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px
}

.actions .primary {
  margin: 0
}

.age-control {
  padding: 12px 0 24px
}

.age-control label {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 15px;
  font-weight: 600
}

.age-control output {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 44px;
  background: #FFF8EC;
  border: 1px solid #D9BA8D;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 800
}

.age-control input {
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 8px;
  background: #E2E2E2;
  margin: 32px 0 18px;
  cursor: pointer
}

.age-control input::-webkit-slider-thumb {
  appearance: none;
  width: 26px;
  height: 26px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #232323;
  box-shadow: 0 0 0 2px #232323
}

.age-control input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #232323;
  box-shadow: 0 0 0 2px #232323
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #626262
}

.field {
  display: block;
  margin-top: 15px;
  font-size: 12px;
  font-weight: 700
}

.field input {
  display: block;
  width: 100%;
  min-width: 0;
  background: #F6F6F6;
  color: #232323;
  border: 1px solid #aaa;
  border-radius: 8px;
  margin-top: 6px;
  padding: 12px;
  font-size: 16px;
  font-weight: 400;
  min-height: 48px
}

.field input::placeholder {
  color: #666
}

.field input:focus {
  background: #fff
}

.field input[aria-invalid=true] {
  border: 2px solid #B42318
}

.name-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.name-fields .field {
  margin-top: 0
}

.hint {
  font-size: 12px;
  line-height: 1.6;
  color: #626262;
  margin: 14px 0 0
}

.phone-hint {
  margin-top: 8px
}

#propertyMap {
  height: 175px;
  width: 100%;
  background: #F0F7FF;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden
}

#mapStatus {
  padding: 40px 16px;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: #626262;
  margin: 0
}

.pac-container {
  font-family: Manrope,system-ui,sans-serif;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px #0002
}

.pac-item {
  padding: 9px 6px;
  font-size: 12px;
  cursor: pointer
}

.pac-item:hover,.pac-item-selected {
  background: #FFF8EC
}

.error {
  color: #B42318;
  font-size: 13px;
  line-height: 1.5;
  margin: 12px 0 0
}

.error:empty {
  display: none
}

.google-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
}

.rating-stars, .rating-copy {
  display: inline-flex;
  align-items: center;
}

.rating-stars {
  gap: 2px;
  color: var(--amber);
}

.rating-stars svg {
  width: 14px;
  height: 14px;
}

.rating-copy {
  gap: 6px;
  white-space: nowrap;
}

.rating-copy img {
  height: 20px;
  width: auto;
}

.success-screen {
  text-align: center;
  padding: 18px 0
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #FFF8EC;
  color: #A36200;
  margin-bottom: 20px
}

.success-icon svg {
  width: 38px;
  height: 38px
}

.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  color: #626262;
  margin: 0 0 12px
}

.success-screen>p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.8;
  margin: 18px 0
}

.success-screen .primary {
  margin-top: 26px;
  font-size: 13px
}

:focus-visible {
  outline: 3px solid #A36200;
  outline-offset: 3px
}

.shake {
  animation: shake .4s ease-in-out
}

@keyframes shake {
  0%,100% {
    transform: translateX(0)
  }
  20%,60% {
    transform: translateX(-5px)
  }
  40%,80% {
    transform: translateX(5px)
  }
}

/* Explicit validation feedback: three noticeable, bounded side-to-side shakes. */
.choice-card.shake, #roofAge.shake {
  --shake-distance: 10px;
  animation: attention-shake .65s ease-in-out;
}

@keyframes attention-shake {
  0%,100% { transform: translateX(0) }
  15%,45%,75% { transform: translateX(calc(-1 * var(--shake-distance))) }
  30%,60%,90% { transform: translateX(var(--shake-distance)) }
}

@media(max-width:360px) {
  .form-container {
    padding: 22px 16px 14px
  }
  h1,h2 {
    font-size: 25px
  }
  .homes {
    gap: 6px
  }
  .homes .choice-card {
    font-size: 11px
  }
  .homes .illustration {
    width: 48px;
    height: 48px
  }
  .primary,.secondary {
    padding: 12px 9px;
    font-size: 14px
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation: none!important;
    transition: none!important
  }
  .shake {
    outline: 2px solid #B42318;
    outline-offset: 3px
  }
  /* Retain the requested feedback with less travel and a shorter duration. */
  .choice-card.shake, #roofAge.shake {
    --shake-distance: 6px;
    animation: attention-shake .5s ease-in-out!important;
    outline: none;
  }
}
