/* Query-driven landing-page variants. Normal pages are unchanged unless ?landing=1 is present. */
.landing-hero-panel {
  display: none;
}

html.landing-mode .landing-hero-panel {
  display: block;
}

html.landing-mode .landing-hero-default {
  display: none;
}

.landing-hero-panel {
  width: min(100%, 720px);
}

/* City + seller landing heroes use a true two-column layout on desktop. */
html.landing-mode .city-hero .container,
html.landing-mode .seller-service-hero .container {
  max-width: 1320px;
}

html.landing-mode .city-hero .landing-hero-panel,
html.landing-mode .seller-service-hero .landing-hero-panel {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(540px, 600px);
  gap: clamp(44px, 4.5vw, 68px);
  align-items: center;
}

html.landing-mode .city-hero .landing-form-card,
html.landing-mode .seller-service-hero .landing-form-card {
  width: 100%;
  max-width: 600px;
  justify-self: end;
}

html.landing-mode .city-hero .landing-hero-heading,
html.landing-mode .seller-service-hero .landing-hero-heading {
  margin-bottom: 0;
}

.landing-hero-heading {
  margin-bottom: 24px;
}

.landing-hero-heading .eyebrow {
  margin-bottom: 10px;
}

.landing-hero-heading h1 {
  margin-bottom: 14px;
}

.landing-hero-heading p {
  margin: 0;
}

.landing-form-card {
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 60px rgba(7, 16, 28, 0.24);
}

.landing-form-heading {
  margin-bottom: 15px;
}

.landing-form-heading h2,
.landing-form-heading h3 {
  margin: 0 0 7px;
  color: #25303c;
  font-size: clamp(22px, 2.3vw, 29px);
  line-height: 1.2;
}

.landing-form-heading p {
  margin: 0;
  color: #687382;
  font-size: 14px;
  line-height: 1.6;
}

.landing-form {
  display: grid;
  gap: 12px;
}

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

.landing-form-field {
  min-width: 0;
}

.landing-form-field label {
  display: block;
  margin-bottom: 7px;
  color: #344150;
  font-size: 13px;
  font-weight: 800;
}

.landing-form-field label .optional {
  color: #7d8791;
  font-size: 11px;
  font-weight: 600;
}

.landing-form input,
.landing-form select,
.landing-form textarea {
  width: 100%;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid #cfd7de;
  border-radius: 10px;
  outline: 0;
  color: #25303c;
  background: #fff;
  font: 600 16px 'Open Sans', sans-serif;
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.landing-form input,
.landing-form select {
  min-height: 50px;
}

.landing-form textarea {
  min-height: 92px;
  resize: vertical;
}

.landing-form input:focus,
.landing-form select:focus,
.landing-form textarea:focus {
  border-color: var(--brand-primary, #1f6ae1);
  box-shadow: 0 0 0 3px rgba(31, 106, 225, 0.14);
}

.landing-form-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 2px;
  border: 0;
  cursor: pointer;
}

.landing-form-note {
  margin: -2px 0 0;
  color: #78838e;
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.landing-form .honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

html.landing-mode .city-hero {
  min-height: 0;
}

html.landing-mode .city-hero-content {
  max-width: none;
  width: 100%;
  padding: 66px 0;
}

html.landing-mode .city-hero .landing-hero-heading h1 {
  font-size: clamp(36px, 5vw, 58px);
}

html.landing-mode .seller-service-hero .service-hero-grid {
  grid-template-columns: 1fr;
  gap: 0;
}

html.landing-mode .seller-service-hero .service-hero-copy {
  max-width: none;
  width: 100%;
}

html.landing-mode .seller-service-hero .seller-hero-photo {
  display: none;
}

html.landing-mode .seller-service-hero {
  padding-top: 126px;
  padding-bottom: 70px;
}

html.landing-mode .seller-service-hero .landing-hero-heading h1 {
  font-size: clamp(38px, 4.8vw, 60px);
}

html.landing-mode .buying-power-hero {
  padding: 24px 0;
}

html.landing-mode .buying-power-hero-grid {
  grid-template-columns: minmax(0, 850px);
  gap: 0;
}

html.landing-mode .buying-power-hero-card {
  display: none;
}

html.landing-mode .buying-power-hero .service-hero-copy {
  max-width: 850px;
}

html.landing-mode .buying-power-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(34px, 4vw, 50px);
}

html.landing-mode .buying-power-hero p {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.5;
}

html.landing-mode .buying-power-hero .service-hero-actions {
  display: none;
}

html.landing-mode .buying-power-prequal-back {
  display: none;
}

@media (max-width: 991.98px) {
  html.landing-mode .city-hero .landing-hero-panel,
  html.landing-mode .seller-service-hero .landing-hero-panel {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  html.landing-mode .city-hero .landing-form-card,
  html.landing-mode .seller-service-hero .landing-form-card {
    max-width: 720px;
    justify-self: start;
  }
}

@media (max-width: 767.98px) {
  .landing-form-row {
    grid-template-columns: 1fr;
  }

  .landing-form-card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .landing-form {
    gap: 14px;
  }

  .landing-form input,
  .landing-form select {
    min-height: 54px;
  }

  .landing-form textarea {
    min-height: 116px;
  }

  html.landing-mode .city-hero-content {
    padding: 42px 0;
  }

  html.landing-mode .city-hero .landing-hero-heading h1,
  html.landing-mode .seller-service-hero .landing-hero-heading h1 {
    font-size: 36px;
  }

  html.landing-mode .seller-service-hero {
    padding-top: 104px;
    padding-bottom: 48px;
  }

  html.landing-mode .seller-service-hero .service-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  html.landing-mode .seller-service-hero .seller-hero-photo {
    display: none;
  }

  html.landing-mode .buying-power-hero {
    padding: 20px 0;
  }

  html.landing-mode .buying-power-hero h1 {
    font-size: 36px;
  }

  html.landing-mode .buying-power-hero p {
    font-size: 15px;
  }
}
