/* ============================================================
   PROPERTYAID — GET OFFER PAGE
   Brand: #F7EFE7 cream · #BFB0A0 taupe · #312C38 dark · #E73C37 red · #A4494A dark-red
   Fonts: Red Hat Display · Open Sans
============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: 'Open Sans', sans-serif;
  color: #312C38;
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* ── Nav ──────────────────────────────────────────────── */

.go-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(49,44,56,0.1);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.go-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: #312C38;
}

.go-nav__logo-icon { width: 26px; height: 26px; }

.go-nav__logo-text { color: #312C38; }

.go-nav__phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #312C38;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.go-nav__phone:hover { opacity: 1; }

/* ── Progress bar ─────────────────────────────────────── */

.go-progress-wrap {
  height: 4px;
  background: #F0E8DF;
  width: 100%;
}

.go-progress-bar {
  height: 100%;
  background: #E73C37;
  width: 0;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Main / Wizard ────────────────────────────────────── */

.go-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 24px 80px;
}

.go-wizard {
  width: 100%;
  max-width: 560px;
}

/* ── Steps ────────────────────────────────────────────── */

.go-step {
  display: none;
  flex-direction: column;
}

.go-step--active {
  display: flex;
  animation: step-enter 0.4s ease forwards;
}

/* Success step centers content */
#step-success.go-step--active {
  align-items: center;
  text-align: center;
  padding-top: 16px;
}

@keyframes step-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.go-step__counter {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #BFB0A0;
  margin-bottom: 16px;
}

.go-step__question {
  font-family: 'Red Hat Display', sans-serif;
  font-size: clamp(1.75rem, 5vw, 2.375rem);
  font-weight: 900;
  line-height: 1.15;
  color: #312C38;
  margin-bottom: 10px;
}

.go-step__hint {
  font-size: 1.0625rem;
  color: #7A7080;
  margin-bottom: 36px;
  line-height: 1.5;
}

.go-step__fine {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: #BFB0A0;
}

/* ── Fields ───────────────────────────────────────────── */

.go-field { margin-bottom: 14px; }

.go-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.go-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #312C38;
  margin-bottom: 8px;
}

.go-input {
  width: 100%;
  height: 58px;
  padding: 0 18px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1.0625rem;
  color: #312C38;
  background: #F7EFE7;
  border: 2px solid transparent;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.go-input::placeholder { color: #BFB0A0; }

.go-input:focus {
  background: #fff;
  border-color: #E73C37;
  box-shadow: 0 0 0 4px rgba(231,60,55,0.1);
}

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

.go-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 32px;
  height: 56px;
  font-family: 'Red Hat Display', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  background: #E73C37;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}

.go-btn:hover:not(:disabled) {
  background: #c9302a;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(231,60,55,0.4);
}

.go-btn:active:not(:disabled) { transform: scale(0.98); }

.go-btn:disabled {
  background: #D4C8C0;
  cursor: not-allowed;
  box-shadow: none;
}

.go-btn--submit { min-width: 200px; }

.go-btn--outline {
  background: transparent;
  color: #E73C37;
  border: 2px solid #E73C37;
  margin-top: 8px;
}

.go-btn--outline:hover {
  background: #FFF0EF;
  transform: translateY(-1px);
  box-shadow: none;
}

.go-back-btn {
  background: none;
  border: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #BFB0A0;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.go-back-btn:hover { color: #312C38; }

.go-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

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

.go-error {
  font-size: 0.875rem;
  color: #E73C37;
  margin-bottom: 12px;
  line-height: 1.5;
}

.go-error a { text-decoration: underline; }

/* ── Success screen ───────────────────────────────────── */

.go-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.go-success__ring {
  width: 88px;
  height: 88px;
  margin-bottom: 8px;
}

.go-success__circle {
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  animation: draw-circle 0.65s cubic-bezier(0.4,0,0.2,1) forwards 0.1s;
}

.go-success__check {
  stroke-dasharray: 70;
  stroke-dashoffset: 70;
  animation: draw-check 0.4s ease forwards 0.65s;
}

@keyframes draw-circle {
  to { stroke-dashoffset: 0; }
}

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

.go-success__title {
  font-family: 'Red Hat Display', sans-serif;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 900;
  color: #312C38;
}

.go-success__body {
  font-size: 1.0625rem;
  color: #7A7080;
  max-width: 380px;
  line-height: 1.65;
}

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

.go-footer {
  padding: 24px;
  text-align: center;
  font-size: 0.8125rem;
  color: #BFB0A0;
  border-top: 1px solid #F0E8DF;
}

.go-footer a:hover { color: #312C38; }

/* ── PlaceAutocompleteElement (Google Places new API) ─── */

gmp-placeautocomplete {
  display: block;
  width: 100%;
  color-scheme: light;
  --gmp-input-height: 58px;
  --gmp-input-padding: 0 18px;
  --gmp-input-font-family: 'Open Sans', sans-serif;
  --gmp-input-font-size: 1.0625rem;
  --gmp-input-color: #312C38;
  --gmp-input-background-color: #F7EFE7;
  --gmp-input-border-color: transparent;
  --gmp-input-border-radius: 8px;
  --gmp-input-placeholder-color: #BFB0A0;
  --gmp-input-border-color-active: #E73C37;
  /* Dropdown */
  --gmp-color-surface: #ffffff;
  --gmp-color-on-surface: #312C38;
  --gmp-color-on-surface-variant: #888888;
  --gmp-color-primary: #E73C37;
}

/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 480px) {
  .go-main { padding: 40px 20px 64px; }

  .go-field-row {
    grid-template-columns: 1fr;
  }

  .go-row {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 20px;
  }

  .go-btn { width: 100%; }
}
