/* ============================================================
   Molly Maid Virtual Estimate — Component Styles
   Brand tokens come from ../colors_and_type.css.
   Layout faithfully follows the design system: Neighborly bar →
   fixed white nav → hero → step cards (white on blush wash) →
   navy footer.
   ============================================================ */

/* ── Page shell ─────────────────────────────────────────────────────────────── */

html { scroll-behavior: smooth; }

body {
  background: var(--mly-white);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: var(--mly-ink);
}

.estimate-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Neighborly co-branding bar (slim, navy) ───────────────────────────────── */

.neighborly-bar {
  background: var(--mly-navy);
  color: var(--mly-white);
  font-size: var(--mly-fs-caption);
  letter-spacing: 0.04em;
}

.neighborly-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.neighborly-bar a {
  color: var(--mly-white);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity var(--mly-dur) var(--mly-ease);
}
.neighborly-bar a:hover { opacity: 1; }

.neighborly-bar__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: var(--mly-fw-medium);
}

.neighborly-bar__brand::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--mly-raspberry);
  box-shadow: inset 0 0 0 2px var(--mly-navy);
}

.neighborly-bar__links {
  display: inline-flex;
  gap: 18px;
  align-items: center;
}

@media (max-width: 640px) {
  .neighborly-bar__links { display: none; }
}

/* ── Fixed white nav (Molly Maid wordmark + CTA pill) ──────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--mly-white);
  border-bottom: 1px solid var(--mly-line);
  box-shadow: 0 1px 0 rgba(7, 29, 73, 0.02);
}

.site-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--mly-navy);
  text-decoration: none;
}

.site-nav__wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.site-nav__wordmark-title {
  font-family: var(--mly-font-logo);
  font-weight: 700;
  letter-spacing: 0.005em;
  font-size: 26px;
  color: var(--mly-navy);
  line-height: 1;
  white-space: nowrap;
}

.site-nav__wordmark-tagline {
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--mly-raspberry);
  font-weight: var(--mly-fw-medium);
  font-style: italic;
  font-family: var(--mly-font-sans);
  margin-top: 3px;
  white-space: nowrap;
}

.site-nav__lotus {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.site-nav__links {
  display: inline-flex;
  gap: 28px;
  align-items: center;
}

.site-nav__link {
  color: var(--mly-navy);
  font-size: var(--mly-fs-body-sm);
  font-weight: var(--mly-fw-medium);
  text-decoration: none;
  transition: color var(--mly-dur) var(--mly-ease);
}
.site-nav__link:hover { color: var(--mly-raspberry); }

.site-nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: var(--mly-fw-bold);
  color: var(--mly-navy);
  text-decoration: none;
  font-size: var(--mly-fs-body-sm);
}

@media (max-width: 880px) {
  .site-nav__links { display: none; }
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */

.hero {
  background:
    linear-gradient(180deg, var(--mly-white) 0%, var(--mly-blush-soft) 100%);
  padding: clamp(48px, 7vw, 96px) 24px clamp(32px, 5vw, 64px);
  border-bottom: 1px solid var(--mly-line);
}

.hero__inner {
  max-width: 880px;
  margin: 0 auto;
}

.hero__eyebrow {
  font-size: var(--mly-fs-caption);
  font-weight: var(--mly-fw-bold);
  letter-spacing: var(--mly-ls-eyebrow);
  text-transform: uppercase;
  color: var(--mly-raspberry);
  margin: 0 0 14px;
}

.hero__title {
  font-size: var(--mly-fs-h1);
  font-weight: var(--mly-fw-bold);
  line-height: var(--mly-lh-heading);
  letter-spacing: var(--mly-ls-tight);
  color: var(--mly-navy);
  margin: 0 0 16px;
  text-wrap: balance;
}

.hero__lede {
  font-size: var(--mly-fs-body-lg);
  line-height: var(--mly-lh-body);
  color: var(--mly-ink-2);
  margin: 0 0 24px;
  max-width: 52ch;
}

.hero__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 10px;
}

.hero__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--mly-ink);
  font-size: var(--mly-fs-body-sm);
  line-height: 1.45;
}

.hero__bullets svg { flex-shrink: 0; margin-top: 2px; }

.hero__trust {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  color: var(--mly-ink-3);
  font-size: var(--mly-fs-caption);
  letter-spacing: 0.02em;
}

.hero__trust strong {
  color: var(--mly-navy);
  font-weight: var(--mly-fw-bold);
}

.hero__media {
  position: relative;
  border-radius: var(--mly-radius-lg);
  overflow: hidden;
  box-shadow: var(--mly-shadow-md);
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(ellipse at top right, var(--mly-blush) 0%, transparent 60%),
    linear-gradient(180deg, var(--mly-blush-soft) 0%, var(--mly-white) 100%);
}

.hero__media-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__media-art {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 22px 64px;
  gap: 8px;
}

.hero__media-art-line {
  margin: 4px 0 4px;
  font-family: var(--mly-font-display);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: var(--mly-fw-bold);
  color: var(--mly-navy);
  line-height: var(--mly-lh-heading);
  letter-spacing: var(--mly-ls-tight);
  text-wrap: balance;
  max-width: 22ch;
}

.hero__media-art-byline {
  font-size: var(--mly-fs-caption);
  font-weight: var(--mly-fw-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mly-raspberry);
}

.hero__media-card {
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: 12px;
  background: var(--mly-white);
  border-radius: var(--mly-radius-sm);
  box-shadow: var(--mly-shadow-sm);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__media-card-icon {
  flex-shrink: 0;
  width: 32px;
  height: 22px;
  border-radius: var(--mly-radius-pill);
  background: var(--mly-blush);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero__media-card-title {
  font-size: 12px;
  font-weight: var(--mly-fw-bold);
  color: var(--mly-navy);
  margin: 0;
  line-height: 1.25;
}

.hero__media-card-sub {
  font-size: 10px;
  color: var(--mly-ink-3);
  margin: 2px 0 0;
  line-height: 1.25;
}

/* ── Main estimate region ──────────────────────────────────────────────────── */

.estimate-main {
  flex: 1;
  background: var(--mly-white);
  padding: clamp(40px, 6vw, 80px) 24px clamp(48px, 6vw, 96px);
}

.estimate-inner {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

/* ── Section eyebrow + headline ────────────────────────────────────────────── */

.section-eyebrow {
  font-size: var(--mly-fs-caption);
  font-weight: var(--mly-fw-bold);
  letter-spacing: var(--mly-ls-eyebrow);
  text-transform: uppercase;
  color: var(--mly-raspberry);
  margin: 0 0 10px;
}

.section-title {
  font-size: var(--mly-fs-h2);
  font-weight: var(--mly-fw-bold);
  line-height: var(--mly-lh-heading);
  letter-spacing: var(--mly-ls-tight);
  color: var(--mly-navy);
  margin: 0 0 12px;
  text-wrap: balance;
}

.section-lede {
  font-size: var(--mly-fs-body-lg);
  line-height: var(--mly-lh-body);
  color: var(--mly-ink-2);
  margin: 0 0 28px;
  max-width: 60ch;
}

/* ── Step indicator (numbered + label) ─────────────────────────────────────── */

.step-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 16px 0 36px;
  position: relative;
}

.step-indicator::before {
  content: "";
  position: absolute;
  top: calc(16px + 14px);
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--mly-line);
  z-index: 0;
}

.step-pill {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  text-align: center;
}

.step-pill__bubble {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mly-white);
  border: 2px solid var(--mly-line);
  color: var(--mly-ink-3);
  font-size: 13px;
  font-weight: var(--mly-fw-bold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--mly-dur) var(--mly-ease),
              border-color var(--mly-dur) var(--mly-ease),
              color var(--mly-dur) var(--mly-ease);
}

.step-pill__label {
  font-size: 11px;
  font-weight: var(--mly-fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mly-ink-3);
  white-space: nowrap;
  transition: color var(--mly-dur) var(--mly-ease);
}

.step-pill.is-active .step-pill__bubble {
  background: var(--mly-raspberry);
  border-color: var(--mly-raspberry);
  color: var(--mly-white);
}
.step-pill.is-active .step-pill__label {
  color: var(--mly-navy);
}

.step-pill.is-complete .step-pill__bubble {
  background: var(--mly-navy);
  border-color: var(--mly-navy);
  color: var(--mly-white);
}
.step-pill.is-complete .step-pill__label {
  color: var(--mly-navy);
}

/* Completed pills are subtly interactive — no announcement, just affordance
   on hover/focus. Cursor + bubble lift signal "you can tap this". */
.step-pill.is-clickable {
  cursor: pointer;
}
.step-pill.is-clickable:hover .step-pill__bubble,
.step-pill.is-clickable:focus-visible .step-pill__bubble {
  background: var(--mly-raspberry);
  border-color: var(--mly-raspberry);
  transform: scale(1.08);
}
.step-pill.is-clickable:hover .step-pill__label,
.step-pill.is-clickable:focus-visible .step-pill__label {
  color: var(--mly-raspberry);
}
.step-pill.is-clickable:focus-visible {
  outline: none;
}
.step-pill.is-clickable:focus-visible .step-pill__bubble {
  box-shadow: var(--mly-shadow-focus);
}

@media (max-width: 560px) {
  .step-pill__label { display: none; }
  .step-indicator::before { top: 30px; }
}

/* ── Cards ─────────────────────────────────────────────────────────────────── */

.card {
  background: var(--mly-white);
  border-radius: var(--mly-radius-md);
  box-shadow: var(--mly-shadow-md);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--mly-line);
}

.card + .card { margin-top: 20px; }

.card__head {
  margin-bottom: 24px;
}

.card__title {
  font-size: var(--mly-fs-h3);
  font-weight: var(--mly-fw-bold);
  line-height: var(--mly-lh-heading);
  color: var(--mly-navy);
  margin: 0 0 6px;
}

.card__sub {
  margin: 0;
  color: var(--mly-ink-2);
  font-size: var(--mly-fs-body-sm);
  line-height: var(--mly-lh-body);
}

.card__sub--small {
  font-size: var(--mly-fs-caption);
  color: var(--mly-ink-3);
}

.card__hint {
  margin: 16px 0 0;
  font-size: var(--mly-fs-caption);
  color: var(--mly-ink-3);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

/* ── Form elements ─────────────────────────────────────────────────────────── */

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-size: var(--mly-fs-caption);
  font-weight: var(--mly-fw-bold);
  color: var(--mly-navy);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: var(--mly-ls-eyebrow);
}

.field input[type="text"],
.field input[type="number"],
.field input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--mly-line-2);
  border-radius: var(--mly-radius-xs);
  font-size: var(--mly-fs-body);
  font-family: var(--mly-font-sans);
  color: var(--mly-ink);
  background: var(--mly-white);
  box-sizing: border-box;
  transition: border-color var(--mly-dur) var(--mly-ease),
              box-shadow var(--mly-dur) var(--mly-ease);
}

.field input::placeholder { color: var(--mly-ink-3); }

.field input:focus {
  outline: none;
  border-color: var(--mly-raspberry);
  box-shadow: var(--mly-shadow-focus);
}

/* ── Persistent address-edit banner (steps 2-4) ────────────────────────────── */

.address-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  margin: 0 0 18px;
  background: var(--mly-blush-soft);
  border: 1px solid var(--mly-line);
  border-radius: var(--mly-radius-md);
}

.address-banner__main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.address-banner__main > svg {
  color: var(--mly-raspberry);
  flex-shrink: 0;
}

.address-banner__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.address-banner__label {
  font-size: var(--mly-fs-caption);
  font-weight: var(--mly-fw-bold);
  color: var(--mly-ink-3);
  text-transform: uppercase;
  letter-spacing: var(--mly-ls-eyebrow);
}

.address-banner__value {
  font-size: var(--mly-fs-body);
  font-weight: var(--mly-fw-medium);
  color: var(--mly-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.address-banner__edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 8px 14px;
  background: var(--mly-white);
  border: 1px solid var(--mly-line-2);
  border-radius: var(--mly-radius-pill);
  cursor: pointer;
  font-family: var(--mly-font-sans);
  font-size: var(--mly-fs-caption);
  font-weight: var(--mly-fw-bold);
  color: var(--mly-navy);
  text-transform: uppercase;
  letter-spacing: var(--mly-ls-eyebrow);
  transition: background var(--mly-dur) var(--mly-ease),
              border-color var(--mly-dur) var(--mly-ease),
              color var(--mly-dur) var(--mly-ease);
}

.address-banner__edit:hover:not(:disabled) {
  border-color: var(--mly-raspberry);
  color: var(--mly-raspberry);
}

.address-banner__edit:focus-visible {
  outline: none;
  box-shadow: var(--mly-shadow-focus);
}

.address-banner__edit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 520px) {
  .address-banner { flex-direction: column; align-items: stretch; gap: 10px; }
  .address-banner__edit { align-self: flex-start; }
}

/* ── Address autocomplete dropdown ─────────────────────────────────────────── */

.field__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.field__label-row label { margin-bottom: 0; }

.location-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  padding: 4px 8px;
  margin: -4px -8px;
  cursor: pointer;
  color: var(--mly-raspberry);
  font-family: var(--mly-font-sans);
  font-size: var(--mly-fs-caption);
  font-weight: var(--mly-fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--mly-ls-eyebrow);
  border-radius: var(--mly-radius-xs);
  transition: background var(--mly-dur) var(--mly-ease),
              color var(--mly-dur) var(--mly-ease);
}

.location-btn:hover:not(:disabled) {
  background: var(--mly-blush-soft);
  color: var(--mly-raspberry-deep);
}

.location-btn:focus-visible {
  outline: none;
  box-shadow: var(--mly-shadow-focus);
}

.location-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.address-field { position: relative; }

.address-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--mly-white);
  border: 1px solid var(--mly-line-2);
  border-radius: var(--mly-radius-xs);
  box-shadow: var(--mly-shadow-md);
  max-height: 320px;
  overflow-y: auto;
}

.address-suggest__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  color: var(--mly-ink);
  font-size: var(--mly-fs-body);
  line-height: 1.35;
  transition: background var(--mly-dur) var(--mly-ease);
}

.address-suggest__item > svg {
  flex-shrink: 0;
  color: var(--mly-ink-3);
  margin-top: 3px;
}

.address-suggest__item.is-highlight,
.address-suggest__item:hover {
  background: var(--mly-blush-soft);
}

.address-suggest__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.address-suggest__primary {
  font-weight: var(--mly-fw-medium);
  color: var(--mly-navy);
}

.address-suggest__secondary {
  font-size: var(--mly-fs-caption);
  color: var(--mly-ink-3);
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */

.btn-primary,
.btn-secondary,
.btn-tertiary {
  font-family: var(--mly-font-sans);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: background var(--mly-dur) var(--mly-ease),
              color var(--mly-dur) var(--mly-ease),
              border-color var(--mly-dur) var(--mly-ease),
              transform var(--mly-dur-fast) var(--mly-ease),
              box-shadow var(--mly-dur) var(--mly-ease);
}

.btn-primary {
  background: var(--mly-raspberry);
  color: var(--mly-white);
  border: 1px solid var(--mly-raspberry);
  border-radius: var(--mly-radius-pill);
  padding: 14px 28px;
  font-size: var(--mly-fs-body);
  font-weight: var(--mly-fw-bold);
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background: var(--mly-raspberry-deep);
  border-color: var(--mly-raspberry-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(226, 47, 124, 0.22);
}

.btn-primary:active { transform: scale(0.98); }
.btn-primary:focus-visible { box-shadow: var(--mly-shadow-focus); outline: none; }

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary--large {
  padding: 16px 36px;
  font-size: var(--mly-fs-body-lg);
}

.btn-primary--nav {
  padding: 10px 22px;
  font-size: var(--mly-fs-body-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btn-secondary {
  background: transparent;
  color: var(--mly-raspberry);
  border: 2px solid var(--mly-raspberry);
  border-radius: var(--mly-radius-pill);
  padding: 12px 26px;
  font-size: var(--mly-fs-body);
  font-weight: var(--mly-fw-bold);
}

.btn-secondary:hover {
  background: rgba(226, 47, 124, 0.06);
}
.btn-secondary:focus-visible { box-shadow: var(--mly-shadow-focus); outline: none; }

.btn-tertiary {
  background: none;
  border: none;
  color: var(--mly-raspberry);
  padding: 8px 4px;
  font-size: var(--mly-fs-body-sm);
  font-weight: var(--mly-fw-bold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-tertiary:hover { color: var(--mly-raspberry-deep); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  align-items: center;
}

/* ── Upload zone ───────────────────────────────────────────────────────────── */

.upload-zone {
  border: 2px dashed var(--mly-line-2);
  border-radius: var(--mly-radius-sm);
  padding: 44px 24px;
  text-align: center;
  cursor: pointer;
  background: var(--mly-blush-soft);
  transition: border-color var(--mly-dur) var(--mly-ease),
              background var(--mly-dur) var(--mly-ease);
}

.upload-zone:hover,
.upload-zone.is-drag {
  border-color: var(--mly-raspberry);
  background: rgba(226, 47, 124, 0.04);
}

.upload-zone__title {
  margin: 12px 0 4px;
  color: var(--mly-navy);
  font-weight: var(--mly-fw-bold);
  font-size: var(--mly-fs-body);
}

.upload-zone__sub {
  margin: 0;
  color: var(--mly-ink-3);
  font-size: var(--mly-fs-caption);
}

.upload-zone__count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  background: var(--mly-white);
  border: 1px solid var(--mly-line);
  color: var(--mly-navy);
  border-radius: var(--mly-radius-pill);
  padding: 4px 12px;
  font-size: var(--mly-fs-caption);
  font-weight: var(--mly-fw-bold);
}

/* Take-a-photo + Choose-files buttons.
   Sit inside the upload zone with stopPropagation so the row's onClick
   doesn't also fire the file picker — each button targets one input. */
.upload-zone__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.upload-zone__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--mly-white);
  border: 1.5px solid var(--mly-raspberry);
  border-radius: var(--mly-radius-pill);
  color: var(--mly-raspberry);
  font-family: var(--mly-font-sans);
  font-size: var(--mly-fs-body-sm);
  font-weight: var(--mly-fw-bold);
  cursor: pointer;
  transition: background var(--mly-dur) var(--mly-ease),
              color var(--mly-dur) var(--mly-ease),
              border-color var(--mly-dur) var(--mly-ease);
}
.upload-zone__action:hover {
  background: var(--mly-raspberry);
  color: var(--mly-white);
}
.upload-zone__action:focus-visible {
  outline: none;
  box-shadow: var(--mly-shadow-focus);
}
.upload-zone__action:hover svg { stroke: var(--mly-white); }

.upload-zone__action--alt {
  border-color: var(--mly-line-2);
  color: var(--mly-navy);
}
.upload-zone__action--alt:hover {
  background: var(--mly-navy);
  border-color: var(--mly-navy);
  color: var(--mly-white);
}
.upload-zone__action--alt:hover svg { stroke: var(--mly-white); }

/* ── Property editor (Step 2) ──────────────────────────────────────────────
   Sq Ft + Beds + Baths stepper controls, pre-filled from the address
   lookup. Changes flow straight into the App's `property` state so the
   estimate that runs next uses the updated values. */

.prop-editor {
  margin-top: 18px;
  padding: 16px;
  background: var(--mly-bg-soft);
  border: 1px solid var(--mly-line);
  border-radius: var(--mly-radius-md);
}

.prop-editor__hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 14px;
  font-size: var(--mly-fs-caption);
  color: var(--mly-ink-3);
  line-height: 1.5;
}

.prop-editor__hint svg {
  color: var(--mly-raspberry);
  flex-shrink: 0;
  margin-top: 2px;
}

.prop-editor__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

@media (max-width: 560px) {
  .prop-editor__grid { grid-template-columns: 1fr; }
}

.prop-editor__cell {
  background: var(--mly-white);
  border: 1px solid var(--mly-line);
  border-radius: var(--mly-radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prop-editor__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--mly-fs-caption);
  font-weight: var(--mly-fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--mly-ls-eyebrow);
  color: var(--mly-ink-3);
}

.prop-editor__label svg {
  color: var(--mly-raspberry);
}

.prop-editor__stepper {
  display: flex;
  align-items: stretch;
  gap: 4px;
  border: 1px solid var(--mly-line-2);
  border-radius: var(--mly-radius-xs);
  background: var(--mly-white);
  overflow: hidden;
}

.prop-editor__btn {
  flex: 0 0 32px;
  background: var(--mly-bg-soft);
  border: 0;
  color: var(--mly-navy);
  font-size: 18px;
  font-weight: var(--mly-fw-bold);
  line-height: 1;
  cursor: pointer;
  transition: background var(--mly-dur) var(--mly-ease),
              color var(--mly-dur) var(--mly-ease);
}
.prop-editor__btn:hover {
  background: var(--mly-raspberry);
  color: var(--mly-white);
}
.prop-editor__btn:active { background: var(--mly-raspberry-deep); color: var(--mly-white); }
.prop-editor__btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--mly-raspberry);
}

.prop-editor__input,
.prop-editor__num {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  text-align: center;
  font-family: var(--mly-font-sans);
  font-size: 18px;
  font-weight: var(--mly-fw-bold);
  color: var(--mly-navy);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
}
.prop-editor__input { -moz-appearance: textfield; }
.prop-editor__input::-webkit-inner-spin-button,
.prop-editor__input::-webkit-outer-spin-button {
  -webkit-appearance: none; margin: 0;
}
.prop-editor__input:focus {
  outline: none;
  background: var(--mly-blush-soft);
}

/* ── Property summary chip row ─────────────────────────────────────────────── */

.prop-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.prop-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mly-blush);
  color: var(--mly-navy);
  border-radius: var(--mly-radius-pill);
  padding: 6px 14px;
  font-size: var(--mly-fs-caption);
  font-weight: var(--mly-fw-bold);
  letter-spacing: 0.02em;
}

.prop-chip svg { color: var(--mly-raspberry); }

.prop-chip--muted {
  background: var(--mly-bg-soft);
  color: var(--mly-ink-2);
}

/* ── Loading state ─────────────────────────────────────────────────────────── */

.loading-card {
  text-align: center;
  padding: 56px 24px;
}

.loading-card__title {
  font-size: var(--mly-fs-h3);
  font-weight: var(--mly-fw-bold);
  color: var(--mly-navy);
  margin: 16px 0 8px;
}

.loading-card__sub {
  margin: 0;
  color: var(--mly-ink-2);
  font-size: var(--mly-fs-body);
}

.loading-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--mly-blush);
  border-top-color: var(--mly-raspberry);
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Service estimate cards ────────────────────────────────────────────────── */

.results-head {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 28px;
  align-items: start;
}

@media (max-width: 720px) {
  .results-head { grid-template-columns: 1fr; }
}

.score-block {
  background: var(--mly-navy);
  color: var(--mly-white);
  border-radius: var(--mly-radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.score-block__label {
  font-size: var(--mly-fs-caption);
  font-weight: var(--mly-fw-bold);
  letter-spacing: var(--mly-ls-eyebrow);
  text-transform: uppercase;
  color: var(--mly-pink);
  margin: 0 0 10px;
}

.score-block__value {
  font-size: 48px;
  font-weight: var(--mly-fw-bold);
  line-height: 1;
  margin-bottom: 4px;
}

.score-block__value small {
  font-size: 18px;
  color: var(--mly-pink);
  font-weight: var(--mly-fw-medium);
}

.score-block__sub {
  font-size: var(--mly-fs-caption);
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.findings-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--mly-ink-2);
  font-size: var(--mly-fs-body-sm);
  line-height: 1.6;
}

.findings-list li { margin-bottom: 4px; }

.service-list {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .service-list { grid-template-columns: repeat(2, 1fr); align-items: stretch; }
}

@media (min-width: 1000px) {
  .service-list { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
  background: var(--mly-white);
  border-radius: var(--mly-radius-md);
  border: 1px solid var(--mly-line);
  box-shadow: var(--mly-shadow-sm);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow var(--mly-dur) var(--mly-ease),
              transform var(--mly-dur) var(--mly-ease),
              border-color var(--mly-dur) var(--mly-ease);
}

.service-card:hover {
  box-shadow: var(--mly-shadow-md);
  border-color: var(--mly-line-2);
  transform: translateY(-2px);
}

.service-card--popular {
  border: 2px solid var(--mly-raspberry);
  box-shadow: 0 10px 28px rgba(226, 47, 124, 0.14);
}

.service-card__tag {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--mly-raspberry);
  color: var(--mly-white);
  font-size: 11px;
  font-weight: var(--mly-fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--mly-radius-pill);
}

.service-card__eyebrow {
  font-size: var(--mly-fs-caption);
  font-weight: var(--mly-fw-bold);
  letter-spacing: var(--mly-ls-eyebrow);
  text-transform: uppercase;
  color: var(--mly-raspberry);
  margin: 0 0 8px;
}

.service-card__name {
  font-size: var(--mly-fs-h3);
  font-weight: var(--mly-fw-bold);
  color: var(--mly-navy);
  margin: 0 0 6px;
  line-height: var(--mly-lh-heading);
}

.service-card__desc {
  margin: 0 0 18px;
  color: var(--mly-ink-2);
  font-size: var(--mly-fs-body-sm);
  line-height: 1.55;
}

.service-card__price {
  font-size: 32px;
  font-weight: var(--mly-fw-bold);
  color: var(--mly-navy);
  line-height: 1;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.service-card__price small {
  font-size: 12px;
  font-weight: var(--mly-fw-medium);
  color: var(--mly-ink-3);
  letter-spacing: 0;
}

/* Membership offer pill — sits just under the price on member tiers.
   Hidden on Regular (which has no offer string). */
.service-card__offer {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 12px 0 0;
  padding: 8px 10px;
  background: var(--mly-blush-soft);
  border: 1px solid var(--mly-blush);
  border-radius: var(--mly-radius-sm);
  font-size: 11px;
  font-weight: var(--mly-fw-medium);
  color: var(--mly-navy);
  line-height: 1.35;
}

.service-card__offer svg {
  color: var(--mly-raspberry);
  flex-shrink: 0;
  margin-top: 1px;
}

.service-card__bullets {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 7px;
  border-top: 1px solid var(--mly-line);
  padding-top: 16px;
}

.service-card__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--mly-ink);
  line-height: 1.4;
}

.service-card__bullets svg {
  color: var(--mly-raspberry);
  flex-shrink: 0;
  margin-top: 2px;
}

.service-card__cta {
  margin-top: auto;
  padding-top: 18px;
}

.service-card__cta .btn-primary,
.service-card__cta .btn-secondary {
  width: 100%;
  padding: 12px 18px;
  font-size: 13px;
}

/* ── Promise banner ────────────────────────────────────────────────────────── */

.promise-banner {
  margin-top: 36px;
  padding: 28px 32px;
  background: var(--mly-blush);
  border-radius: var(--mly-radius-lg);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}

@media (max-width: 720px) {
  .promise-banner { grid-template-columns: 1fr; text-align: center; }
}

.promise-banner__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mly-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mly-raspberry);
  margin: 0 auto;
}

.promise-banner__title {
  font-size: var(--mly-fs-h4);
  font-weight: var(--mly-fw-bold);
  color: var(--mly-navy);
  margin: 0 0 4px;
}

.promise-banner__sub {
  margin: 0;
  font-size: var(--mly-fs-body-sm);
  color: var(--mly-ink-2);
  line-height: var(--mly-lh-body);
}

/* ── Trust strip (icons + headline + sub) ──────────────────────────────────── */

.trust-strip {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 28px 0 0;
  border-top: 1px solid var(--mly-line);
}

@media (max-width: 720px) {
  .trust-strip { grid-template-columns: 1fr; gap: 18px; }
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.trust-item__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mly-blush);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--mly-raspberry);
}

.trust-item__title {
  font-size: var(--mly-fs-body-sm);
  font-weight: var(--mly-fw-bold);
  color: var(--mly-navy);
  margin: 0 0 2px;
  line-height: 1.3;
}

.trust-item__sub {
  font-size: var(--mly-fs-caption);
  color: var(--mly-ink-3);
  margin: 0;
  line-height: 1.45;
}

/* ── Error message ─────────────────────────────────────────────────────────── */

.error-msg {
  background: #fff0f5;
  border: 1px solid var(--mly-raspberry);
  border-left-width: 4px;
  border-radius: var(--mly-radius-sm);
  padding: 14px 16px;
  color: var(--mly-raspberry-deep);
  font-size: var(--mly-fs-body-sm);
  margin: 0 0 24px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--mly-navy);
  color: var(--mly-white);
  padding: 56px 24px 28px;
  margin-top: auto;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
}

@media (max-width: 880px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}

.site-footer__brand-block .site-nav__wordmark-title { color: var(--mly-white); }
.site-footer__brand-block .site-nav__wordmark-tagline { color: var(--mly-pink); }

.site-footer__tagline {
  margin: 14px 0 18px;
  font-size: var(--mly-fs-body-sm);
  color: rgba(255, 255, 255, 0.72);
  max-width: 32ch;
  line-height: var(--mly-lh-body);
}

.site-footer__neighborly {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--mly-fs-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mly-pink);
  font-weight: var(--mly-fw-medium);
}

.site-footer__neighborly::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mly-raspberry);
}

.site-footer__col h4 {
  font-size: var(--mly-fs-caption);
  font-weight: var(--mly-fw-bold);
  letter-spacing: var(--mly-ls-eyebrow);
  text-transform: uppercase;
  color: var(--mly-pink);
  margin: 0 0 14px;
}

.site-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.site-footer__col a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: var(--mly-fs-body-sm);
  transition: color var(--mly-dur) var(--mly-ease);
}
.site-footer__col a:hover { color: var(--mly-white); text-decoration: underline; }

.site-footer__legal {
  max-width: 1200px;
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--mly-fs-legal);
  color: rgba(255, 255, 255, 0.55);
}


/* ── Booking step (Step 5) ────────────────────────────────────────────────
   Contact form shown after the user picks a tier on Results. Same card
   chrome as the address/photos steps; uses the existing .field input
   styles. Plan summary + grid layout are new. */

.booking-card {
  padding: clamp(24px, 4vw, 40px);
}

.booking-summary {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--mly-blush-soft);
  border: 1px solid var(--mly-blush);
  border-radius: var(--mly-radius-md);
}

.booking-summary__tier {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.booking-summary__verb {
  font-size: var(--mly-fs-caption);
  font-weight: var(--mly-fw-bold);
  letter-spacing: var(--mly-ls-eyebrow);
  text-transform: uppercase;
  color: var(--mly-raspberry);
}

.booking-summary__name {
  font-size: var(--mly-fs-h4);
  font-weight: var(--mly-fw-bold);
  color: var(--mly-navy);
  line-height: 1.2;
}

.booking-summary__price {
  font-size: 26px;
  font-weight: var(--mly-fw-bold);
  color: var(--mly-navy);
  letter-spacing: -0.01em;
  flex-shrink: 0;
  line-height: 1;
}

.booking-summary__price small {
  font-size: 11px;
  font-weight: var(--mly-fw-medium);
  color: var(--mly-ink-3);
  letter-spacing: 0;
}

.booking-required {
  margin: 0 0 14px;
  font-size: var(--mly-fs-caption);
  color: var(--mly-ink-3);
}

.booking-required span {
  color: var(--mly-raspberry);
  font-weight: var(--mly-fw-bold);
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

@media (max-width: 560px) {
  .booking-grid { grid-template-columns: 1fr; }
}

.booking-grid .field { margin-bottom: 0; }

.booking-grid__full { grid-column: 1 / -1; }

.field .req {
  color: var(--mly-raspberry);
  margin-left: 4px;
}

.field input[type="date"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--mly-line-2);
  border-radius: var(--mly-radius-xs);
  font-size: var(--mly-fs-body);
  font-family: var(--mly-font-sans);
  color: var(--mly-ink);
  background: var(--mly-white);
  box-sizing: border-box;
  transition: border-color var(--mly-dur) var(--mly-ease),
              box-shadow var(--mly-dur) var(--mly-ease);
}
.field input[type="date"]:focus {
  outline: none;
  border-color: var(--mly-raspberry);
  box-shadow: var(--mly-shadow-focus);
}
.field input[type="date"][aria-invalid="true"] {
  border-color: var(--mly-error);
}

.field__error {
  margin: 6px 0 0;
  font-size: var(--mly-fs-caption);
  color: var(--mly-error);
  font-weight: var(--mly-fw-medium);
}

.field__hint {
  margin: 6px 0 0;
  font-size: var(--mly-fs-caption);
  color: var(--mly-ink-3);
}

.field input[aria-invalid="true"] { border-color: var(--mly-error); }

/* SMS opt-in — checkbox + Neighborly legal disclosure */
.booking-checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin: 22px 0 6px;
  padding: 14px 16px;
  background: var(--mly-bg-soft);
  border: 1px solid var(--mly-line);
  border-radius: var(--mly-radius-sm);
  cursor: pointer;
  align-items: start;
}

.booking-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--mly-raspberry);
  cursor: pointer;
}

.booking-checkbox > span {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--mly-fs-body-sm);
  color: var(--mly-ink);
  line-height: 1.45;
}

.booking-checkbox strong {
  font-weight: var(--mly-fw-bold);
  color: var(--mly-navy);
}

.booking-checkbox__legal {
  font-size: 11px;
  color: var(--mly-ink-3);
  line-height: 1.5;
}

.booking-checkbox__legal a {
  color: var(--mly-raspberry);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Success state */
.booking-success {
  text-align: center;
  padding: clamp(28px, 5vw, 56px) clamp(24px, 4vw, 40px);
}

.booking-success__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mly-raspberry);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 18px rgba(226, 47, 124, 0.22);
}

.booking-success__title { margin-bottom: 12px; }

.booking-success__lede {
  max-width: 52ch;
  margin: 0 auto 28px;
  font-size: var(--mly-fs-body);
  color: var(--mly-ink-2);
  line-height: 1.55;
}

.booking-success__details {
  margin: 0 auto 28px;
  max-width: 460px;
  background: var(--mly-bg-soft);
  border: 1px solid var(--mly-line);
  border-radius: var(--mly-radius-md);
  padding: 18px 22px;
}

.booking-success__details dl {
  margin: 0;
  display: grid;
  gap: 10px;
}
.booking-success__details dl > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  align-items: baseline;
}
.booking-success__details dt {
  font-size: var(--mly-fs-caption);
  font-weight: var(--mly-fw-bold);
  letter-spacing: var(--mly-ls-eyebrow);
  text-transform: uppercase;
  color: var(--mly-ink-3);
  text-align: left;
}
.booking-success__details dd {
  margin: 0;
  font-size: var(--mly-fs-body-sm);
  font-weight: var(--mly-fw-medium);
  color: var(--mly-navy);
  text-align: left;
}

@media (max-width: 480px) {
  .booking-success__details dl > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
