/* Striveagle × Thumbtack Request Flow — shared styles (uses the lander's --sa-* tokens). */

/* Service choice (Roofing / Windows) */
.service-choice { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.service-choice legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--sa-navy); }
.service-options { display: grid; gap: 8px; }
@media (min-width: 520px) { .service-options { grid-template-columns: 1fr 1fr; } }
.service-option { position: relative; display: block; }
.service-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.service-option span {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 14px;
  background: #fff; border: 1.5px solid var(--sa-border); border-radius: var(--sa-radius);
  font-weight: 600; color: var(--sa-charcoal); cursor: pointer;
}
.service-option span::before {
  content: ''; flex: 0 0 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--sa-border); background: #fff;
}
.service-option input:checked + span { border-color: var(--sa-blue); background: var(--sa-blue-light); }
.service-option input:checked + span::before { border-color: var(--sa-blue); box-shadow: inset 0 0 0 3px #fff; background: var(--sa-blue); }
.service-option input:focus-visible + span { box-shadow: var(--sa-focus); }
.category-error { margin: 6px 0 0; min-height: 0; color: #C0392B; font-size: 14px; }
.category-error:empty { display: none; }

/* Results states */
.pros-status {
  background: var(--sa-bg); border: 1px solid var(--sa-border); border-radius: var(--sa-radius);
  padding: 28px 20px; box-shadow: var(--sa-shadow); text-align: center; color: var(--sa-text-muted);
}
.pros-status[hidden], .pros-list[hidden] { display: none; }
.request-success strong { display: block; color: var(--sa-green); font-size: 20px; margin-bottom: 6px; }
.loading-indicator {
  width: 32px; height: 32px; margin: 0 auto 14px; border: 3px solid var(--sa-blue-light);
  border-top-color: var(--sa-blue); border-radius: 50%; animation: sa-spin 0.8s linear infinite;
}
@keyframes sa-spin { to { transform: rotate(360deg); } }
.retry-button, .pro-cta {
  border: 0; border-radius: 8px; background: var(--sa-blue); color: #fff; font: inherit;
  font-weight: 700; padding: 11px 18px; cursor: pointer;
}
.retry-button { margin-top: 14px; }
.retry-button:hover, .pro-cta:hover { background: var(--sa-blue-dark); }

/* Pro cards */
.pros-list { display: grid; gap: 16px; }
.pro-card {
  display: grid; gap: 16px; padding: 20px; min-width: 0; background: var(--sa-bg);
  border: 1px solid var(--sa-border); border-radius: var(--sa-radius); box-shadow: var(--sa-shadow);
}
@media (min-width: 640px) { .pro-card { grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; } }
.pro-image { width: 112px; height: 112px; border-radius: 10px; object-fit: cover; background: var(--sa-bg-soft); }
.pro-name { font-size: 19px; margin-bottom: 6px; overflow-wrap: anywhere; }
.pro-meta, .pro-introduction { margin: 4px 0 0; color: var(--sa-text-muted); font-size: 14px; overflow-wrap: anywhere; }
.pro-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pro-badge { padding: 4px 8px; border-radius: 999px; background: var(--sa-blue-light); color: var(--sa-blue-dark); font-size: 12px; font-weight: 700; }

/* Request Flow modal */
.rfw-modal[hidden] { display: none; }
.rfw-modal {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(18, 32, 58, 0.72);
}
.rfw-dialog {
  position: relative; width: min(100%, 680px); max-height: calc(100vh - 32px); overflow: hidden;
  background: #fff; border-radius: 14px; box-shadow: 0 24px 70px rgba(18, 32, 58, 0.3);
}
.rfw-header {
  display: flex; align-items: center; justify-content: space-between; min-height: 54px;
  padding: 10px 14px 10px 20px; border-bottom: 1px solid var(--sa-border);
}
.rfw-title { font-size: 17px; }
.rfw-close { border: 0; background: transparent; color: var(--sa-charcoal); font-size: 30px; line-height: 1; padding: 4px 8px; cursor: pointer; }
.rfw-frame-wrap { width: 100%; height: min(600px, calc(100vh - 102px)); min-height: 420px; }
.rfw-frame { display: block; width: 100%; max-width: 100%; height: 100%; border: 0; }
@media (max-width: 480px) {
  .rfw-modal { padding: 0; align-items: stretch; }
  .rfw-dialog { width: 100%; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; display: flex; flex-direction: column; }
  .rfw-header { flex: none; }
  .rfw-frame-wrap { flex: 1 1 auto; height: auto; min-height: 0; }
}

/* "Search a different ZIP code" is a <button>; drop the browser's default button chrome. */
.results-header .back-link { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.results-header .back-link:hover { color: var(--sa-blue); }
