.estimate-form {
  margin: 0;
}

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

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

/* Optional info box */
.extra-info-box {
  margin-top: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
}

.extra-title {
  margin: 0 0 5px;
  font-weight: 700;
  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;
}

/* Google widget */
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 */
.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;
}

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

@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;
  }
}