/* The centered quote wizard uses the existing Splendid palette and fonts.
   A restrained swipe responds to each step; reduced-motion mode skips it. */
.quote-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: #f7f9fc;
  background-image: radial-gradient(
    ellipse at 85% 18%,
    rgb(24 139 246 / 0.055),
    transparent 45%
  );
  color: #032449;
}
.quote-page [hidden] {
  display: none !important;
}
.quote-page .quote-page__header {
  position: static;
  background: #032449;
  border: 0;
  padding: 0;
  box-shadow: none;
}
.quote-page__header .nav {
  height: 80px;
}
.quote-page__header .nav__logo {
  width: 160px;
  height: 76px;
  overflow: hidden;
}
.quote-page__header .nav__logo-img {
  width: 160px;
  height: 160px;
  max-width: none;
  flex-shrink: 0;
}
.quote-page__header .nav__actions {
  margin-left: auto;
  gap: 24px;
}
.quote-page__phone {
  color: #fff;
  font-weight: 500;
  font-size: 0.9375rem;
  white-space: nowrap;
}
.quote-shell {
  width: min(100% - 40px, 600px);
  margin: auto;
  padding: 52px 0 36px;
  scroll-margin-top: 28px;
}
.quote-brandline {
  text-align: center;
  color: #64748b;
  font-size: 0.875rem;
  margin-bottom: 22px;
}
.quote-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 36px 40px;
  box-shadow: 0 12px 48px rgb(3 36 73 / 0.035);
  overflow: hidden;
}
.wizard-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  font-size: 0.75rem;
  color: #64748b;
}
#quote-progress {
  width: 120px;
  height: 3px;
  background: #e9eef5;
  border-radius: 3px;
  overflow: hidden;
}
#quote-progress span {
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: #188bf6;
  transition: width 300ms ease;
}
.wizard-step {
  min-width: 0;
}
.wizard-step h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.125rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
  color: #032449;
  margin: 0 0 14px;
  outline: none;
}
.wizard-intro {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #64748b;
  margin: 0 0 30px;
}
.wizard-step h1:only-child {
  margin-bottom: 30px;
}
.wizard-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 24px;
  min-width: 0;
}
.wizard-field label {
  font-size: 0.8125rem;
  color: #475569;
  font-weight: 600;
}
.wizard-field input,
.wizard-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  border: 1px solid #dbe3ee;
  border-radius: 9px;
  background: #fff;
  color: #032449;
  font: 500 1rem var(--font-body);
  padding: 15px;
  outline: none;
  transition:
    border-color 160ms,
    box-shadow 160ms;
}
.wizard-field input:focus,
.wizard-field textarea:focus {
  border-color: #188bf6;
  box-shadow: 0 0 0 3px rgb(24 139 246 / 0.12);
}
.wizard-field input::placeholder,
.wizard-field textarea::placeholder {
  color: #64748b;
  font-weight: 400;
}
.wizard-field textarea {
  resize: vertical;
  line-height: 1.65;
}
.zip-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
  gap: 16px;
  align-items: end;
  margin-top: 32px;
}
.zip-fields .wizard-field {
  margin: 0;
}
.zip-fields input {
  font-size: 1.375rem;
  letter-spacing: 0.04em;
  height: 64px;
  padding-left: 18px;
}
.zip-direction {
  padding-bottom: 18px;
  color: #64748b;
  font-size: 1.25rem;
}
.wizard-hint {
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.65;
  margin-top: 10px;
}
.wizard-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
}
.wizard-next {
  margin-left: auto;
  min-height: 52px;
  padding: 13px 27px;
  background: #188bf6;
  border: 1px solid #188bf6;
  color: #fff;
  border-radius: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background 150ms;
}
.wizard-next:hover {
  background: #0875dc;
  border-color: #0875dc;
}
.wizard-next:disabled {
  opacity: 0.6;
  cursor: wait;
}
.wizard-back {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 0;
  background: none;
  border: 0;
  color: #64748b;
  font: 500 0.875rem var(--font-body);
  cursor: pointer;
}
.wizard-back svg {
  width: 18px;
  height: 18px;
}
.wizard-back:disabled {
  opacity: 0.5;
  cursor: wait;
}
.wizard-message {
  min-height: 22px;
  margin-top: 22px;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: #64748b;
}
.wizard-message.has-error {
  color: #b42318;
}
.size-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 26px;
}
.size-choice {
  position: relative;
  cursor: pointer;
}
.size-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.size-choice span {
  display: flex;
  align-items: center;
  min-height: 56px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 14px 16px;
  font-size: 0.875rem;
  color: #475569;
  transition:
    background 140ms,
    border-color 140ms;
}
.size-choice input:checked + span {
  background: #f0f7ff;
  border-color: #188bf6;
  color: #032449;
  box-shadow: inset 0 0 0 1px #188bf6;
}
.size-choice input:focus-visible + span {
  outline: 3px solid rgb(24 139 246 / 0.3);
  outline-offset: 2px;
}
.inventory-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 26px;
}
.inventory-modes button {
  position: relative;
  text-align: left;
  padding: 18px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #032449;
  font-family: var(--font-body);
  cursor: pointer;
}
.inventory-modes button[aria-pressed="true"] {
  border-color: #188bf6;
  background: #f5faff;
}
.inventory-modes strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
}
.inventory-modes small {
  display: block;
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.65;
  margin-top: 8px;
}
.recommended {
  display: inline-block;
  color: #126fc1;
  background: #e4f1ff;
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 0.625rem;
  font-weight: 600;
  margin-top: 6px;
}
.photo-upload {
  margin-top: 22px;
}
.photo-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 25px;
  border: 1px dashed #b8cee5;
  border-radius: 10px;
  color: #188bf6;
  font-size: 0.875rem;
  cursor: pointer;
  position: relative;
}
.photo-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}
.photo-picker:focus-within {
  outline: 3px solid rgb(24 139 246 / 0.3);
}
.photo-files {
  list-style: none;
  color: #475569;
  font-size: 0.75rem;
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.photo-files li {
  padding: 4px 0;
}
.photo-privacy {
  color: #64748b;
  font-size: 0.6875rem;
  line-height: 1.7;
  margin-top: 12px;
}
.upload-done {
  color: #168055;
  font-size: 0.8125rem;
  margin-top: 8px;
}
.email-alternative {
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.8;
  margin-top: 20px;
}
.email-alternative a {
  color: #126fc1;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.review-details {
  margin-top: 26px;
}
.review-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid #edf0f5;
}
.review-row dt {
  font-size: 0.6875rem;
  color: #64748b;
  margin-bottom: 5px;
}
.review-row dd {
  color: #334155;
  font-size: 0.8125rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.review-row button {
  background: none;
  border: 0;
  padding: 4px 0;
  color: #188bf6;
  font: 500 0.75rem var(--font-body);
  cursor: pointer;
}
.quote-expectation {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.8;
  margin-top: 20px;
}
.wizard-success {
  padding: 12px 0;
}
.success-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e9f8f1;
  color: #168055;
  font-size: 1.5rem;
  margin-bottom: 24px;
}
.wizard-home {
  display: inline-block;
  font-size: 0.875rem;
  color: #188bf6;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.quote-support {
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.8;
  text-align: center;
  margin-top: 24px;
}
.quote-support a {
  color: #475569;
  white-space: nowrap;
}
.quote-page__footer {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 24px 20px;
  color: #64748b;
  font-size: 0.6875rem;
}
.quote-page__skip {
  position: absolute;
  left: 16px;
  top: -100px;
  background: #032449;
  color: #fff;
  padding: 12px 20px;
  z-index: 1001;
  border-radius: 6px;
}
.quote-page__skip:focus {
  top: 12px;
}
.quote-page a:focus-visible,
.quote-page button:focus-visible {
  outline: 3px solid #188bf6;
  outline-offset: 4px;
}
.wizard-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.quote-page .lang-disclaimer {
  border: 0;
}
@media (max-width: 767px) {
  .quote-page__header .nav {
    height: 72px;
    gap: 12px;
  }
  .quote-page__header .nav__actions {
    gap: 12px;
  }
  .quote-page__header .nav__actions .lang-toggle {
    display: flex;
  }
  .quote-page__header .nav__logo {
    width: 140px;
    height: 68px;
  }
  .quote-page__header .nav__logo-img {
    width: 140px;
    height: 140px;
  }
  .quote-page__phone {
    display: none;
  }
  .quote-shell {
    width: min(100% - 32px, 540px);
    padding-top: 30px;
    padding-bottom: 24px;
  }
  .quote-brandline {
    margin-bottom: 18px;
    font-size: 0.75rem;
  }
  .quote-card {
    padding: 28px 24px;
    border-radius: 16px;
  }
  .wizard-topline {
    margin-bottom: 30px;
  }
  .wizard-intro {
    font-size: 0.875rem;
  }
  .zip-fields {
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr);
  }
  .zip-fields input {
    font-size: 1.1875rem;
    padding: 12px;
  }
  .wizard-controls {
    gap: 14px;
  }
  .wizard-next {
    padding-left: 20px;
    padding-right: 20px;
  }
  .inventory-modes {
    gap: 8px;
  }
  .inventory-modes button {
    padding: 14px 12px;
  }
  .quote-support {
    max-width: 30ch;
    margin: 20px auto 0;
  }
  .quote-page__footer {
    font-size: 0.625rem;
    gap: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .quote-page *,
  .quote-page *::before,
  .quote-page *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
/* Full Google-selected addresses are the opening step, with no later repeat. */
.quote-card {
  overflow: visible;
}
.address-fields {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 28px;
}
.address-fields .wizard-field {
  margin: 0;
}
.address-fields gmp-place-autocomplete {
  display: block;
  width: 100%;
  min-height: 54px;
  color-scheme: light;
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 9px;
}
.selected-address {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 16px;
  border: 1px solid #c6e5d8;
  border-radius: 9px;
  background: #f7fcf9;
}
.selected-address span {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #334155;
  overflow-wrap: anywhere;
}
.selected-address button,
.manual-address-link {
  background: none;
  border: 0;
  color: #126fc1;
  font: 500 0.6875rem var(--font-body);
  cursor: pointer;
  text-align: left;
  padding: 3px 0;
}
.manual-address-link {
  color: #64748b;
  align-self: flex-start;
  font-weight: 400;
}
/* Keep native mobile controls, long addresses and photo cards inside the form. */
.quote-card,
#quote-form,
#quote-step,
.wizard-field,
.photo-upload {
  min-inline-size: 0;
  max-inline-size: 100%;
}
.quote-card *,
.quote-card *::before,
.quote-card *::after {
  box-sizing: border-box;
}
.wizard-field input,
.wizard-field textarea,
.address-fields gmp-place-autocomplete {
  display: block;
  inline-size: 100%;
  max-inline-size: 100%;
  min-inline-size: 0;
}
.wizard-field input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  overflow: hidden;
  min-height: 56px;
}
.wizard-field input[type="date"]::-webkit-date-and-time-value {
  min-width: 0;
  text-align: left;
}
.wizard-field input[type="date"]::-webkit-datetime-edit {
  min-width: 0;
  padding: 0;
}
.inventory-modes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.inventory-modes button,
.selected-address span,
.review-row > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.photo-tile {
  min-width: 0;
  position: relative;
  margin: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #f7f9fc;
}
.photo-tile img,
.photo-format {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.photo-format {
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 0.75rem;
}
.photo-tile figcaption {
  padding: 8px;
  font-size: 0.625rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: #475569;
}
.photo-remove {
  position: absolute;
  right: 3px;
  top: 3px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.94);
  color: #032449;
  cursor: pointer;
}
.photo-remove:focus-visible {
  outline: 3px solid #188bf6;
  outline-offset: -3px;
}
@media (max-width: 420px) {
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wizard-controls {
    flex-wrap: wrap;
  }
  .wizard-next {
    min-width: 0;
    max-width: 100%;
  }
}
