/* Quote flow */
.quote-flow .site-header {
  position: relative;
}

.quote-page {
  padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
  background: var(--cream);
}
.quote-shell {
  max-width: 880px;
}
.quote-head h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.8rem);
  font-weight: 800;
  line-height: 0.92;
  color: var(--green);
}
.quote-sub {
  margin-top: 1rem;
  color: var(--ink-2);
  font-size: 1.1rem;
  max-width: 44rem;
}

.q-progress {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 1.8rem;
}
.q-seg {
  height: 6px;
  background: var(--cream-3);
  border-radius: 2px;
  transition: background-color 0.25s;
}
.q-seg.on {
  background: var(--green);
}
.q-progress-label {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

#quoteForm {
  margin-top: 1.6rem;
}
.q-step {
  display: none;
}
.q-step.active {
  display: block;
  animation: rise 0.35s ease both;
}
.q-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.q-group + .q-group {
  margin-top: 2rem;
}
.q-legend {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.9rem;
  padding: 0;
}

/* --- selectable cards --- */
.q-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.q-card {
  position: relative;
  display: block;
  background: var(--cream-2);
  border: 2px solid var(--cream-3);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.q-card:hover {
  border-color: #b9b9b0;
}
.q-card input[type="radio"],
.q-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.q-card-body {
  display: grid;
  gap: 0.3rem;
  padding: 1.05rem 1.1rem 1.05rem 1.1rem;
  align-content: start;
}
.q-card-body strong {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.35rem;
  line-height: 1.02;
}
.q-card-body small {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--ink-2);
}
.q-card:has(input:checked) {
  border-color: var(--green);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--green);
}
.q-card:has(input:checked)::after {
  content: "";
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--green)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8'/%3E%3C/svg%3E")
    center / 72% no-repeat;
}
.q-card:has(input:focus-visible) {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}
.q-card.q-locked {
  cursor: default;
  background: var(--green);
  border-color: var(--green);
  color: var(--on-green);
}
.q-card.q-locked small {
  color: var(--on-green-muted);
}
.q-price {
  font-style: normal;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  min-height: 1.2em;
}
.q-price-muted {
  color: var(--ink-2);
  font-weight: 500;
}

.q-sizes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.q-size .q-card-body {
  gap: 0.9rem;
  padding: 1.4rem 1.2rem;
  justify-items: start;
}
.q-size strong {
  font-size: 2.2rem;
}
.q-door {
  color: var(--green);
  max-width: 100%;
}

.q-confirm-size {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--cream-2);
  border: 2px solid var(--cream-3);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.q-confirm-size-current {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.q-confirm-size-current strong {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.6rem;
  color: var(--green);
}

.q-packages {
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}
.q-package .q-card-body {
  gap: 0.5rem;
}
.q-package strong {
  font-size: 1.6rem;
}
.q-package .q-price {
  font-size: 1.3rem;
  color: var(--green);
}
.q-popular {
  border-color: var(--red);
}
.q-ribbon {
  align-self: flex-start;
  font-style: normal;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}
.q-package-includes {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.3rem;
}
.q-package-includes span {
  font-size: 0.85rem;
  color: var(--ink-2);
  padding-left: 1rem;
  position: relative;
}
.q-package-includes span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.6rem;
  height: 2px;
  background: var(--ink-2);
  opacity: 0.6;
}

.q-counter {
  cursor: default;
}
.q-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.q-step-btn {
  width: 2.6rem;
  height: 2.6rem;
  border: 2px solid var(--green);
  background: transparent;
  color: var(--green);
  border-radius: var(--radius);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.q-step-btn:hover {
  background: var(--green);
  color: var(--cream);
}
.q-stepper input {
  width: 3.4rem;
  height: 2.6rem;
  text-align: center;
  font: inherit;
  font-weight: 600;
  border: 2px solid var(--cream-3);
  border-radius: var(--radius);
  background: #fff;
}

.q-hookup {
  margin-top: 1rem;
  padding: 1.1rem 1.2rem;
  border: 2px solid var(--cream-3);
  border-left: 2px solid var(--cream-3);
  border-radius: var(--radius);
  background: #fff;
  display: grid;
  gap: 0.6rem;
}
.q-hookup label {
  font-weight: 600;
}

/* --- fields --- */
.q-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}
.q-field {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}
.q-field:nth-child(n + 5) {
  grid-column: 1 / -1;
}
.q-field label,
.q-label {
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0;
}
.q-optional {
  font-weight: 400;
  color: var(--ink-2);
}
.q-step input[type="text"],
.q-step input[type="tel"],
.q-step input[type="email"],
.q-step textarea,
.q-step select {
  width: 100%;
  padding: 0.85rem 0.95rem;
  font: inherit;
  font-size: 1rem;
  border: 2px solid var(--cream-3);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.q-step input:focus,
.q-step textarea:focus,
.q-step select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(1, 50, 32, 0.18);
}
.q-pills {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.q-pill {
  position: relative;
}
.q-pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.q-pill span {
  display: inline-flex;
  align-items: center;
  min-height: 2.9rem;
  padding: 0 1.5rem;
  border: 2px solid var(--cream-3);
  background: var(--cream-2);
  border-radius: 999px;
  font-weight: 600;
}
.q-pill input:checked + span {
  border-color: var(--green);
  background: var(--green);
  color: var(--cream);
}
.q-pill input:focus-visible + span {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}
.q-note {
  font-size: 0.88rem;
  color: var(--ink-2);
}
/* Honeypot: off-screen rather than display:none, since some bots skip
   display:none fields but still fill in anything positioned normally. */
.q-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.q-check {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-top: 1.4rem;
  padding: 1rem 1.1rem;
  border: 2px solid var(--cream-3);
  border-radius: var(--radius);
  background: var(--cream-2);
  cursor: pointer;
}
.q-check input {
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.1rem;
  accent-color: var(--green);
  flex-shrink: 0;
}
.q-check span {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.q-error {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--red);
  background: #fbeaea;
  color: var(--red-2);
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.q-field .q-error {
  margin-top: 0.2rem;
}
.q-status {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  background: var(--cream-2);
  border: 1px solid var(--cream-3);
}

/* --- photos --- */
.q-slots {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.q-slot {
  position: relative;
}
.q-slot-face {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border: 2px dashed #b9b9b0;
  border-radius: var(--radius);
  background: var(--cream-2);
  cursor: pointer;
  overflow: hidden;
  text-align: center;
  color: var(--green);
  transition: border-color 0.15s, background-color 0.15s;
}
.q-slot-face:hover {
  border-color: var(--green);
  background: #fff;
}
.q-file {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.q-slot-empty {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  padding: 0.8rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}
.q-slot-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.q-slot.filled .q-slot-face {
  border-style: solid;
  border-color: var(--green);
}
.q-slot-remove {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.8);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.q-more {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  margin-top: 1rem;
}
.q-more-btn {
  position: relative;
}
.q-more-btn:focus-within {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}
.q-extra-photos {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.q-extra-photos li {
  position: relative;
  width: 5.2rem;
  height: 5.2rem;
}
.q-extra-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid var(--green);
}
.q-extra-photos button {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  width: 1.6rem;
  height: 1.6rem;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

/* --- estimate --- */
.q-estimate {
  background: var(--cream-2);
  border: 1px solid var(--cream-3);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: 1.2rem;
}
.q-est-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}
.q-est-lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--cream-3);
  font-size: 1rem;
}
.q-est-lines li:first-child {
  border-top: 0;
  padding-top: 0;
}
.q-est-lines .amt {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}
.q-est-lines .muted-line {
  color: var(--ink-2);
}
.q-est-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-top: 2px solid var(--ink);
  margin-top: 0.4rem;
  padding-top: 1rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
}
.q-est-total strong {
  font-size: clamp(2.6rem, 8vw, 3.6rem);
  color: var(--green);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.q-est-note {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: #fff;
  border: 1px solid var(--cream-3);
  border-radius: var(--radius);
  font-size: 0.93rem;
}
.q-est-note strong {
  color: var(--green);
}
/* --- Garage Care upsell (checkout) --- */
.q-care {
  margin-top: 1.4rem;
  background: var(--green);
  color: var(--on-green);
  border-radius: var(--radius);
  overflow: hidden;
}
.q-care-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  list-style: none;
}
.q-care-summary::-webkit-details-marker {
  display: none;
}
.q-care-summary-text {
  display: grid;
  gap: 0.2rem;
}
.q-care-summary-text strong {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}
.q-care-summary-text small {
  color: var(--on-green-muted);
  font-size: 0.85rem;
}
.q-care-arrow {
  flex-shrink: 0;
  transition: transform 0.2s;
}
.q-care[open] .q-care-arrow {
  transform: rotate(180deg);
}
.q-care-body {
  padding: 0 1.3rem 1.4rem;
  border-top: 1px solid var(--line-on-green);
  padding-top: 1.2rem;
}
.q-care-pitch {
  color: var(--on-green-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}
.q-care-compare {
  margin-top: 1.3rem;
  border-top: 1px solid var(--line-on-green);
}
.q-care-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line-on-green);
  font-size: 0.95rem;
}
.q-care-row strong {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.q-care-highlight strong {
  color: var(--cream);
  font-size: 1.1rem;
}
.q-care-savings {
  border-bottom: 0;
}
.q-care-savings strong {
  color: var(--red-2);
  background: var(--cream);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.92rem;
}
.q-care-monthly {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--on-green-muted);
}
.q-care-monthly strong {
  color: var(--cream);
}
.q-care-choice-label {
  margin: 1.4rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.q-care-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.7rem;
}
.q-care-option {
  position: relative;
  display: block;
  padding: 1rem 1.1rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--green);
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.q-care-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.q-care-option strong {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.05rem;
  display: block;
  color: var(--green);
}
.q-care-option small {
  color: var(--ink-2);
  font-size: 0.85rem;
  display: block;
  margin-top: 0.15rem;
}
.q-care-option:has(input:checked) {
  box-shadow: 0 0 0 3px var(--red);
}
.q-care-option:has(input:focus-visible) {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

/* --- nav --- */
.q-nav {
  display: flex;
  gap: 0.8rem;
  margin-top: 2rem;
}
.q-nav .btn {
  flex: 1;
}
.q-nav #qBack {
  flex: 0 0 auto;
  min-width: 7rem;
}
.q-help {
  margin-top: 1.6rem;
  font-size: 0.95rem;
  color: var(--ink-2);
}

@media (min-width: 700px) {
  .q-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .q-sizes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .q-packages {
    grid-template-columns: minmax(0, 1fr);
  }
  .q-nav .btn {
    flex: 0 1 auto;
    min-width: 14rem;
  }
  .q-nav #qNext,
  .q-nav #qSubmit {
    margin-left: auto;
  }
}

@media (max-width: 699px) {
  .q-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .q-sizes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .q-size strong {
    font-size: 1.8rem;
  }
  .q-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .q-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .q-nav {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
    background: rgba(232, 232, 227, 0.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--cream-3);
  }
}
