/* Homepage intent fork + /contractor landing. Loaded on every variant of
   the shared index.html but inert unless home-intent.js adds these hooks. */

.hi-hidden { display: none !important; }

/* Mid-realtor-flow, "Talk to a contractor" is incoherent; the DB-level
   assignment guard is the real safety net, this is just coherent UI. */
body.zoned-route-realtor #stickyRealtorHandoff { display: none !important; }

/* Uniform 3-up (2-up on phones) grid; the base .project-interest-grid is
   a wrapping flex row, which leaves these six wide chips ragged. */
.home-intent-fork-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (max-width: 560px) {
  .home-intent-fork-grid { grid-template-columns: repeat(2, 1fr); }
}

/* The fork chips are wider than the project chips, so the pi-w1/pi-w2
   word spans can land on one line; without this they concatenate
   ("Build orRenovate"). */
.home-intent-fork-grid .project-interest-btn {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 5px;
  width: 100%;
  min-height: 52px;
}

.home-intent-selected {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Explicit display would otherwise override the [hidden] UA rule. */
.home-intent-selected[hidden] { display: none !important; }

.home-intent-selected-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, #c8102e) 10%, #fff);
  border: 1.5px solid var(--accent, #c8102e);
  color: var(--accent, #c8102e);
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.2;
}

.home-intent-change-btn {
  background: none;
  border: none;
  padding: 4px 6px;
  cursor: pointer;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-intent-change-btn:hover { color: #0f172a; }

/* The compact lead form hides .form-label globally (placeholder-driven
   fields); the fork + realtor questions have no placeholders, so their
   labels must stay visible, same override the project-interest label uses. */
#homeIntentForkLabel,
.home-intent-q .form-label {
  display: block !important;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  color: #64748b;
  margin-bottom: 8px;
}

.home-intent-q-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-intent-q-options .hi-option {
  text-align: left;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: #0f172a;
  line-height: 1.35;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.home-intent-q-options .hi-option:hover {
  border-color: var(--accent, #c8102e);
}

.home-intent-q-options .hi-option[aria-pressed="true"] {
  border-color: var(--accent, #c8102e);
  background: color-mix(in srgb, var(--accent, #c8102e) 8%, #fff);
  color: var(--accent, #c8102e);
}

@media (max-width: 440px) {
  .home-intent-q-options .hi-option { font-size: 13.5px; padding: 10px 12px; }
}
