.estimate-form {
  margin: 0;
}

.autocomplete-host {
  width: 100%;
  min-width: 0;
}

.autocomplete-host > * {
  width: 100%;
  display: block;
}

.extra-info-box {
  margin-top: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 32, 0.08);
  transition: all 0.22s ease;
}

.extra-info-box.is-collapsed {
  display: none;
}

.extra-title {
  margin: 0 0 6px;
  font-weight: 800;
  font-size: 16px;
  color: #16202c;
}

.extra-text {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #4b5563;
}

.extra-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.extra-grid > div {
  min-width: 0;
}

.extra-grid label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #1c2734;
}

.extra-grid select,
.extra-grid input {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d8dee6;
  background: #fff;
  font-size: 16px;
  line-height: 1.2;
  color: #1f2937;
}

.extra-grid select {
  appearance: none;
}

gmp-place-autocomplete,
#house_address_widget {
  width: 100%;
  display: block;
  position: relative;
  z-index: 60;
}

gmp-place-autocomplete {
  --gmpx-color-surface: #ffffff;
  --gmpx-color-on-surface: #1f2937;
  --gmpx-color-outline: #d8dee6;
  --gmpx-color-primary: #2f80ed;
  --gmpx-font-family-base: Arial, Helvetica, sans-serif;
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.hero,
.hero-content,
.form-card-wrap,
.form-card,
.form-card-inner,
.form-grid,
.field-group,
.autocomplete-host {
  overflow: visible;
}

.field-group,
.autocomplete-host {
  position: relative;
  z-index: 50;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 32, 0.72);
  backdrop-filter: blur(6px);
}

.loading-overlay.is-hidden {
  display: none;
}

.loading-card {
  width: 100%;
  max-width: 460px;
  padding: 28px 24px;
  border-radius: 20px;
  background: #ffffff;
  color: #0f1720;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.loading-spinner {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 5px solid rgba(47, 128, 237, 0.18);
  border-top-color: #2f80ed;
  animation: spin 0.9s linear infinite;
}

.loading-title {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
  color: #16202c;
}

.loading-text {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.5;
  color: #475569;
}

.loading-subtext {
  margin: 0;
  font-size: 14px;
  color: #64748b;
}

.quick-estimate-shell {
  width: 100%;
  max-width: 880px;
}

.quick-estimate-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  border-radius: 22px;
  padding: 24px;
}

.quick-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.quick-address-group {
  margin: 0;
}

.cta-button {
  border: none;
  border-radius: 14px;
  background: linear-gradient(180deg, #2f80ed, #1f6fd8);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  padding: 16px 22px;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(47, 128, 237, 0.22);
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(47, 128, 237, 0.28);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button-inline {
  min-width: 220px;
  white-space: nowrap;
}

.mobile-cta-wrap {
  display: none;
}

.live-preview {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(47, 128, 237, 0.10), rgba(47, 128, 237, 0.06));
  border: 1px solid rgba(47, 128, 237, 0.16);
}

.live-preview.is-hidden {
  display: none;
}

.live-preview-title {
  font-size: 14px;
  font-weight: 800;
  color: #1859aa;
  margin-bottom: 4px;
}

.live-preview-text {
  font-size: 14px;
  line-height: 1.45;
  color: #415369;
}

.details-toggle-wrap {
  margin-top: 18px;
}

.details-toggle {
  width: 100%;
  border: 1px solid #d8dee6;
  background: #ffffff;
  color: #16202c;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.details-toggle:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.trust-row-top {
  margin-top: 18px;
  color: #4b5563;
}

.trust-item {
  font-size: 13px;
  font-weight: 700;
  color: #4b5563;
}

.trust-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #94a3b8;
}

.flash-box {
  margin-bottom: 16px;
}

.flash-message {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.18);
  color: #991b1b;
  font-size: 14px;
  font-weight: 600;
}

.data-proof {
  width: 100%;
  max-width: 860px;
  margin-top: 26px;
}

.data-proof-card {
  padding: 28px 30px;
  border-radius: 22px;
  background: rgba(10, 18, 30, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  text-align: center;
}

.data-proof-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  color: #ffffff;
}

.data-proof-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.mini-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

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

@media (max-width: 900px) {
  .quick-input-row {
    grid-template-columns: 1fr;
  }

  .cta-button-inline {
    width: 100%;
    min-width: 0;
  }

  .data-proof-card h2 {
    font-size: 24px;
  }

  .data-proof-card p {
    font-size: 15px;
  }
}

@media (max-width: 640px) {
  .extra-info-box {
    padding: 14px 12px;
    border-radius: 12px;
  }

  .extra-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .extra-grid select,
  .extra-grid input {
    padding: 12px 12px;
    font-size: 16px;
  }

  .loading-card {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .loading-title {
    font-size: 24px;
  }

  .loading-text {
    font-size: 15px;
  }

  .loading-subtext {
    font-size: 13px;
  }

  .quick-estimate-card {
    padding: 14px;
    border-radius: 16px;
  }

  .cta-button-inline {
    display: none;
  }

  .mobile-cta-wrap {
    display: block;
    margin-top: 18px;
  }

  .cta-button-mobile {
    width: 100%;
  }

  .trust-row-top {
    justify-content: flex-start;
    gap: 8px;
  }

  .trust-dot {
    display: none;
  }

  .trust-item {
    width: 100%;
  }

  .details-toggle {
    font-size: 14px;
    padding: 13px 14px;
  }

  .live-preview {
    padding: 12px 13px;
  }

  .data-proof {
    margin-top: 18px;
  }

  .data-proof-card {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .data-proof-card h2 {
    font-size: 21px;
  }

  .data-proof-card p {
    font-size: 14px;
    line-height: 1.55;
  }

  .mini-kicker {
    font-size: 12px;
    padding: 7px 12px;
    margin-bottom: 12px;
  }
}