/* Home Cleaning motion prototype — intentionally scoped to this page only. */

.button > span,
.related-service b,
.secondary-link {
  transition: transform 180ms cubic-bezier(.16,1,.3,1), color 180ms ease;
}

.button:hover > span,
.button:focus-visible > span {
  transform: translateX(4px);
}

.related-service {
  transition: transform 220ms cubic-bezier(.16,1,.3,1), border-color 220ms ease, box-shadow 220ms ease;
}

.related-service img {
  transition: transform 360ms cubic-bezier(.16,1,.3,1);
}

.related-service b {
  display: inline-block;
}

.related-service:hover b,
.related-service:focus-visible b {
  transform: translateX(4px);
}

.faq-list summary span {
  display: inline-block;
  transform-origin: center;
  transition: transform 200ms cubic-bezier(.16,1,.3,1), color 180ms ease;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.faq-list details[open] > p {
  animation: faq-answer-in 240ms cubic-bezier(.16,1,.3,1) both;
}

.quote-card {
  transition: border-color 220ms ease, box-shadow 260ms cubic-bezier(.16,1,.3,1), transform 260ms cubic-bezier(.16,1,.3,1);
}

.booking-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.booking-skyline {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 68%;
  opacity: .30;
  filter: saturate(.82) contrast(.9);
  pointer-events: none;
}

.booking-section::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.81) 0%, rgba(255,255,255,.59) 49%, rgba(255,255,255,.74) 100%);
  pointer-events: none;
}

.booking-intro,
.booking-steps,
.booking-section .quote-card {
  position: relative;
  z-index: 2;
}

.quote-card:focus-within {
  border-color: var(--line);
  box-shadow: 0 18px 44px rgba(8,45,107,.16);
  transform: translateY(-2px);
}

.quote-card input,
.quote-card select,
.quote-card textarea {
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.quote-card select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.5 7 7.5 13 1.5' stroke='%23082d6b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 14px 9px;
}

.quote-card input.is-invalid,
.quote-card select.is-invalid,
.quote-card textarea.is-invalid {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255,103,93,.13);
}

.field-error {
  display: block;
  margin-top: 6px;
  color: #b8322a;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 650;
}

.quote-submit:disabled { cursor: wait; opacity: .76; }
.quote-success[hidden] { display: none !important; }
.quote-card.is-complete { padding: 0; overflow: hidden; }
.quote-card.is-complete > :not(.quote-success) { display: none; }

.quote-card .quote-success {
  display: grid;
  grid-template-columns: 64px minmax(0,1fr);
  gap: 20px;
  min-height: 450px;
  padding: 34px 30px;
  align-content: center;
  background: linear-gradient(145deg,#fffaf5 0%,#f7fbff 100%);
  outline: none;
  animation: quote-success-arrive 520ms cubic-bezier(.16,1,.3,1) both;
}

.quote-success-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  box-shadow: 0 14px 32px rgba(0,108,255,.22);
}

.quote-success-mark svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.quote-success:not([hidden]) .quote-success-mark path { stroke-dasharray: 34; animation: quote-success-check 560ms 160ms cubic-bezier(.16,1,.3,1) both; }
.quote-success-copy h3 { margin: 1px 0 7px; font-size: 27px; }
.quote-success-copy p { color: var(--muted); font-size: 14px; line-height: 1.45; }
.quote-summary { grid-column: 1 / -1; margin: 8px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quote-summary > div { display: grid; grid-template-columns: 108px 1fr; gap: 12px; padding: 10px 0; }
.quote-summary > div + div { border-top: 1px solid var(--line); }
.quote-summary dt { color: var(--muted); font-size: 10px; font-weight: 760; text-transform: uppercase; letter-spacing: .1em; }
.quote-summary dd { margin: 0; color: var(--navy); font-size: 13px; font-weight: 720; }
.quote-edit { grid-column: 1 / -1; justify-self: start; padding: 0 0 4px; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--blue); font-weight: 760; cursor: pointer; }

@keyframes quote-success-arrive {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes quote-success-check {
  from { stroke-dashoffset: 34; }
  to { stroke-dashoffset: 0; }
}

.coverage-section .coverage-zip-check {
  position: relative;
  max-width: 340px;
  margin-top: 26px;
}

.coverage-section .coverage-zip-check label {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 740;
}

.coverage-section .coverage-zip-check input {
  width: 100%;
  height: 54px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.coverage-section .coverage-zip-check input:focus-visible {
  outline: 3px solid rgba(0,108,255,.16);
  outline-offset: 2px;
  border-color: var(--blue);
}

.coverage-section .coverage-zip-check .button {
  width: 100%;
  margin-top: 12px;
}

.coverage-section .coverage-zip-check .zip-demo-hint {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.coverage-section .coverage-zip-check input.is-confirmed {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,108,255,.13);
}

.coverage-section .coverage-zip-check input.is-invalid {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255,103,93,.13);
}

.zip-result {
  display: grid;
  grid-template-rows: 0fr;
  grid-template-columns: 44px minmax(0,1fr);
  gap: 0;
  margin-top: 0;
  padding: 0 14px;
  border: 0 solid transparent;
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  color: var(--navy);
  opacity: 0;
  overflow: hidden;
  transform: translateY(-5px);
  transition: grid-template-rows 360ms cubic-bezier(.16,1,.3,1), opacity 220ms ease, transform 360ms cubic-bezier(.16,1,.3,1), border-color 160ms ease, background-color 160ms ease;
}

.zip-result > * { min-height: 0; }

.zip-result.is-visible {
  grid-template-rows: 1fr;
  gap: 12px;
  margin-top: 14px;
  padding: 15px 14px;
  border-width: 1px;
  opacity: 1;
  transform: translateY(0);
}

.zip-result.is-success {
  border-color: rgba(0,108,255,.28);
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(234,247,255,.96));
}

.coverage-section .coverage-zip-check .zip-result.is-success {
  position: absolute;
  z-index: 4;
  inset: 26px 0 0;
  min-height: 0;
  margin-top: 0;
  padding: 18px 14px;
  align-content: center;
  box-shadow: 0 14px 32px rgba(8,45,107,.13);
}

.zip-result.is-error { border-color: rgba(255,103,93,.42); background: #fff8f6; }
.zip-result.is-pending { border-color: var(--line); background: #f7fbff; }
.zip-result.is-unavailable { border-color: var(--line); background: #f7fbff; }
.zip-result strong, .zip-result small, .zip-result a { display: block; }
.zip-result strong { margin: 1px 0 4px; font-size: 14px; line-height: 1.2; }
.zip-result small { color: var(--muted); font-size: 12px; line-height: 1.42; }
.zip-result a { margin-top: 8px; color: var(--blue); font-size: 12px; font-weight: 760; text-decoration: none; }

.zip-success-mark, .zip-message-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  box-shadow: 0 7px 18px rgba(0,108,255,.20);
}

.zip-success-mark svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.zip-result.is-visible .zip-success-mark svg path {
  stroke-dasharray: 24;
  animation: zip-check-draw 520ms 130ms cubic-bezier(.16,1,.3,1) both;
}

.zip-message-mark { background: var(--navy); font-size: 18px; font-weight: 800; box-shadow: none; }

@keyframes zip-check-draw {
  from { stroke-dashoffset: 24; }
  to { stroke-dashoffset: 0; }
}

.quote-card input:focus-visible,
.quote-card select:focus-visible,
.quote-card textarea:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,108,255,.16);
}

.booking-steps .step-number {
  transition: transform 220ms cubic-bezier(.16,1,.3,1), box-shadow 220ms ease;
}

.booking-steps article:hover .step-number {
  transform: translateX(26px) scale(1.06);
  box-shadow: 0 7px 16px rgba(8,45,107,.15);
}

@media (max-width: 900px) {
  .booking-steps article:hover .step-number { transform: scale(1.06); }
  .booking-skyline { object-position: 58% center; opacity: .20; }
  .booking-section::after { background: rgba(255,255,255,.76); }
}

@media (hover:hover) and (pointer:fine) {
  .related-service:hover {
    transform: translateY(-3px);
    border-color: var(--line);
    box-shadow: 0 14px 30px rgba(8,45,107,.11);
  }

  .related-service:hover img { transform: scale(1.025); }
}

@keyframes faq-answer-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .button > span,
  .secondary-link,
  .related-service,
  .related-service img,
  .related-service b,
  .faq-list summary span,
  .quote-card,
  .quote-card input,
  .quote-card select,
  .zip-result,
  .zip-result.is-visible .zip-success-mark svg path,
  .booking-steps .step-number {
    animation: none;
    transition: none;
  }

  .button:hover > span,
  .button:focus-visible > span,
  .related-service:hover,
  .related-service:hover img,
  .related-service:hover b,
  .related-service:focus-visible b,
  .faq-list details[open] summary span,
  .quote-card:focus-within,
  .booking-steps article:hover .step-number {
    transform: none;
  }

  .zip-result.is-visible .zip-success-mark svg path {
    animation: none;
    stroke-dashoffset: 0;
  }

  .quote-success,
  .quote-success:not([hidden]) .quote-success-mark path {
    animation: none;
  }
}
