.quick-quote {
  container-type: inline-size;
  margin-top: 30px;
  padding: 13px 16px;
  border: 1px solid #d5e5ed;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 25px #08375806;
}

.quick-quote [hidden] { display: none; }

.qq-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 26px;
  margin-bottom: 7px;
}

.qq-step-label {
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

.qq-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.qq-object-options, .qq-area-controls, .qq-messenger-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
}

.qq-messenger-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.qq-object-options button, .qq-messenger-options button, .qq-restart {
  min-height: 46px;
  padding: 6px 10px;
  border: 1px solid #d5e5ed;
  border-radius: 8px;
  background: #f5f9fb;
  color: var(--navy);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
}

.qq-messenger-options button { padding-inline: 4px; font-size: 15px; }

.qq-object-options button:hover, .qq-messenger-options button:hover, .qq-restart:hover {
  border-color: var(--cyan);
  background: #eef7fa;
}

.qq-messenger-options button[aria-pressed="true"] {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.qq-back {
  min-height: 32px;
  margin-block: -3px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--navy);
  font-size: 15px;
  cursor: pointer;
}

.qq-back:hover { text-decoration: underline; }

.qq-area-value, .qq-area-slider {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding-inline: 10px;
  border: 1px solid #b9d4e1;
  border-radius: 8px;
}

.qq-area-value {
  gap: 6px;
  color: var(--muted);
  font-size: 15px;
}

.qq-area-value > span[aria-hidden] { flex: none; }
.qq-area-slider { background: #f5f9fb; }

.qq-area-value:focus-within, .qq-area-slider:focus-within {
  outline: 2px solid #08788d;
  outline-offset: -2px;
}

.qq-area-controls input:focus { outline: none; }

.qq-area-value input, .qq-phone-input {
  min-width: 0;
  min-height: 44px;
  width: 100%;
  padding: 8px 10px;
  color: var(--navy);
  font-size: 16px;
}

.qq-area-value input {
  flex: 1;
  padding-inline: 0;
  border: 0;
  background: transparent;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
}

.qq-area-value input::-webkit-inner-spin-button,
.qq-area-value input::-webkit-outer-spin-button { appearance: none; margin: 0; }

#quick-quote-range {
  width: 100%;
  height: 30px;
  margin: 0;
  accent-color: var(--orange);
  cursor: pointer;
}

.qq-phone-input {
  min-height: 46px;
  border: 1px solid #b9d4e1;
  border-radius: 8px;
  background: #fff;
}

.qq-phone-input::placeholder { color: var(--muted); }

.qq-submit {
  justify-content: space-between;
  min-height: 46px;
  min-width: 178px;
  padding: 8px 12px;
  gap: 8px;
  background: var(--cyan);
  color: var(--navy);
  font-size: 15px;
  white-space: nowrap;
}

.qq-submit:enabled { cursor: pointer; }
.qq-submit:enabled:hover { box-shadow: 0 3px 12px #08375826; }

.qq-submit svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.qq-submit:disabled {
  cursor: default;
  background: #dce6ec;
  color: #526c7f;
  box-shadow: none;
  transform: none;
}

.qq-error, .qq-success p {
  margin-top: 5px;
  font-size: 15px;
  line-height: 1.45;
}

.qq-error { color: #ad391f; }
.qq-success p { color: var(--muted); }

.qq-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;
}

@container (max-width: 380px) {
  .qq-row { grid-template-columns: minmax(0, 1fr); }
  .qq-submit { justify-content: center; }
}

@media (min-width: 1101px) {
  .hero-layout { align-items: start; }
  .hero-copy { display: flex; flex-direction: column; align-self: stretch; min-height: 524px; padding: 0; }
  .hero-copy h1 { margin-top: -10px; }
  .hero-copy .quick-quote { margin-top: auto; }
  .hero-description { margin-bottom: 26px; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .hero-layout { align-items: start; }
  .hero-copy { padding: 0; }
  .hero-copy h1 { margin-top: -6px; }
  .quick-quote { margin-top: 23px; }
}

@media (max-width: 760px) {
  .quick-quote { max-width: 560px; margin-top: 25px; }
}

@media (max-width: 480px) {
  .quick-quote { margin-top: 22px; padding: 12px; border-radius: 12px; }
}

.hero h1 {
  font-size: clamp(32px, 4.4vw, 66px);
}

.hero h1 > span {
  display: block;
}

.hero-media.hero-cover {
  align-self: stretch;
  height: auto;
  min-height: 420px;
}

.hero-cover > picture {
  position: absolute;
  inset: 0;
}

.qq-object-options .object-option-wide {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .hero h1 {
    font-size: clamp(32px, 8.1vw, 55px);
  }

  .hero-media.hero-cover {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}
