/* ── Free Eligibility Check Widget — shared, self-contained styles ──
   Extracted from index.html.template's eligibility widget CSS
   (ELIGIBILITY WIDGET / v2 spec additions / hero-elig-widget / eligibility-cta
   blocks) for reuse on city guide pages. All var(--...) references have been
   resolved to literal values so this file has no dependency on a host page's
   :root custom properties. Order-form-only rules (order-form-hint,
   field-hint, etc.) were intentionally excluded — those style the checkout
   form on index.html, not this widget. */

#eligibility-widget {
  margin: 0 0 28px;
  width: 100%;
  max-width: 560px;
}
.elig-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #1D9E75;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.elig-header {
  background: #0A3161;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.elig-header-title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.elig-header-badge {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  padding: 3px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.elig-body { padding: 14px 16px 16px; }
.elig-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5F5E5A;
  margin-bottom: 7px;
}
.elig-input-row {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 10px;
}
.elig-input {
  flex: 1;
  border: 1.5px solid #dde3ec;
  border-radius: 8px;
  padding: 9px 13px;
  font-size: 14px;
  font-family: 'Outfit', system-ui, sans-serif;
  color: #2C2C2A;
  outline: none;
  background: #fff;
  min-width: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.elig-input:focus {
  border-color: #185FA5;
  box-shadow: 0 0 0 3px rgba(24,95,165,0.12);
}
.elig-input:read-only { background: #f8fafc; color: #5F5E5A; }
#elig-address-result {
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
#elig-address-result:hover,
#elig-address-result:focus {
  background: #eef4fb;
  border-color: #185FA5;
}
.elig-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.4;
}
.elig-steps {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.elig-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #5F5E5A;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.elig-step.elig-step-visible { opacity: 1; transform: translateY(0); }
.elig-step-icon {
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: rgba(29,158,117,0.1);
  border: 1px solid rgba(29,158,117,0.2);
  transition: background 0.25s, border-color 0.25s;
}
.elig-step.elig-step-done .elig-step-icon {
  background: #1D9E75;
  border-color: #1D9E75;
}
.elig-step-icon svg { width: 8px; height: 8px; stroke: transparent; stroke-width: 2.5; transition: stroke 0.2s; }
.elig-step.elig-step-done .elig-step-icon svg { stroke: #fff; }
/* Result */
.elig-verdict-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.elig-verdict-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.elig-verdict-icon.green { background: #E1F5EE; }
.elig-verdict-icon.amber { background: #FAEEDA; }
.elig-verdict-icon.red   { background: #FAECE7; }
.elig-verdict-icon svg { width: 14px; height: 14px; stroke-width: 2.5; }
.elig-verdict-icon.green svg { stroke: #1D9E75; }
.elig-verdict-icon.amber svg { stroke: #BA7517; }
.elig-verdict-icon.red   svg { stroke: #D85A30; }
.elig-verdict-title { font-size: 14px; font-weight: 600; color: #0A3161; margin-bottom: 2px; }
.elig-verdict-sub   { font-size: 12px; color: #5F5E5A; line-height: 1.5; }
.elig-chips {
  display: flex; flex-wrap: wrap; gap: 5px;
  margin-bottom: 12px;
}
.elig-chip {
  font-size: 11px; font-weight: 500;
  padding: 3px 9px; border-radius: 100px; white-space: nowrap;
}
.elig-chip-green { background: #E1F5EE; color: #085041; border: 1px solid rgba(29,158,117,0.2); }
.elig-chip-amber { background: #FAEEDA; color: #633806; border: 1px solid rgba(186,117,23,0.2); }
.elig-chip-blue  { background: #EBF3FB; color: #0C447C; border: 1px solid rgba(24,95,165,0.18); }
/* Neutral state — a hazard lookup that did not answer. Deliberately NOT green:
   "we could not check" must never read as "we checked and it is clear".
   Values mirror --sand / --ink / --sand-2 in web/index.html.template. */
.elig-chip-grey  { background: #F1EFE8; color: #2C2C2A; border: 1px solid #D3D1C7; }
.elig-cta-strip {
  background: #f0f4fa;
  border: 1px solid #c7d8ed;
  border-radius: 8px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.elig-cta-strip-text { font-size: 12px; color: #0A3161; font-weight: 500; flex: 1; min-width: 0; }
.elig-no-cta { font-size: 12px; color: #5F5E5A; line-height: 1.65; }
.elig-reset-link {
  font-size: 11px; color: #9FE1CB; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
  margin-bottom: 10px; display: inline-block; background: none; border: none;
  font-family: 'Outfit', system-ui, sans-serif; padding: 0;
}
@media (max-width: 480px) {
  .elig-input-row { flex-direction: column; align-items: stretch; }
  .elig-cta-strip { flex-direction: column; align-items: flex-start; }
}

.elig-header-label {
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
}
.elig-badge {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.elig-input-group {
  flex: 1;
  min-width: 0;
}
.elig-input-group label {
  display: block;
  font-size: 12px;
  color: #5F5E5A;
  margin-bottom: 5px;
}
.elig-input-group input {
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #dde3ec;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #fff;
  color: #2C2C2A;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.elig-input-group input:focus {
  border-color: #185FA5;
  box-shadow: 0 0 0 3px rgba(24,95,165,0.12);
}
.elig-input-group input:read-only {
  background: #f8fafc;
  color: #5F5E5A;
}
#elig-submit-btn {
  height: 40px;
  padding: 0 18px;
  background: transparent;
  color: #0F6E56;
  border: 2px solid #0F6E56;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}
#elig-submit-btn:hover { background: #1D9E75; color: #fff; }
.elig-btn-disabled {
  height: 40px;
  padding: 0 18px;
  background: #888;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: default;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
}
.elig-free-note {
  font-size: 11px;
  color: #5F5E5A;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.4;
}
.eligibility-funnel-hint {
  font-size: 13px;
  color: #5F5E5A;
  margin-top: 6px;
  margin-bottom: 0;
  line-height: 1.5;
}
.elig-loading-steps {
  margin-top: 14px;
  border-top: 1px solid #dde3ec;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* Loading steps: hidden by default, revealed one at a time by JS */
.elig-loading-steps .elig-step {
  display: none;
  font-size: 13px;
}
.elig-loading-steps .elig-step.elig-step-visible {
  display: flex;
  align-items: center;
}
.elig-step-icon.elig-step-pending {
  background: rgba(29,158,117,0.1);
  border-color: rgba(29,158,117,0.2);
  color: transparent;
}
.elig-step-icon.elig-step-active {
  background: rgba(29,158,117,0.15);
  border-color: rgba(29,158,117,0.4);
  color: transparent;
}
.elig-step-icon.elig-step-done {
  background: #1D9E75;
  border-color: #1D9E75;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  line-height: 1;
}
#elig-reset-btn {
  height: 40px;
  padding: 0 16px;
  background: rgba(29,158,117,0.08);
  color: #085041;
  border: 1.5px solid #1D9E75;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s;
}
#elig-reset-btn:hover { background: rgba(29,158,117,0.16); border-color: #085041; }
.elig-result-header-row { margin-bottom: 12px; }
/* Verdict row */
.elig-verdict-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.elig-verdict-icon-green { background: #E1F5EE; color: #5F5E5A; }
.elig-verdict-icon-amber { background: #FAEEDA; color: #5F5E5A; }
.elig-verdict-icon-red   { background: #FAECE7; color: #5F5E5A; }
/* CTA strip text variants */
.elig-cta-strip h4 {
  font-size: 14px;
  font-weight: 500;
  color: #042C53;
  margin: 0 0 2px 0;
}
.elig-cta-strip p {
  font-size: 12px;
  color: #185FA5;
  margin: 0;
}
/* Unlikely note */
.elig-unlikely-note {
  font-size: 13px;
  color: #5F5E5A;
  border-left: 3px solid #dde3ec;
  padding: 10px 14px;
  margin-top: 4px;
  line-height: 1.6;
}
/* Value justification block (eligible/flag cards only) */
.elig-value-block { margin: 12px 0; }
.elig-value-heading { font-size: 13px; font-weight: 600; color: #0A3161; margin: 0 0 8px; }
.elig-value-list { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 6px; }
.elig-value-list li { font-size: 12px; color: #5F5E5A; line-height: 1.5; padding-left: 18px; position: relative; }
.elig-value-list li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  color: #1D9E75;
  font-weight: 700;
  font-size: 11px;
}
.elig-value-footnote { font-size: 11px; color: #5F5E5A; margin: 0; }
/* Trust block + sample-report link (eligible/flag cards only) */
.elig-trust-block { margin-top: 12px; text-align: center; }
.elig-trust-line { font-size: 11px; color: #5F5E5A; line-height: 1.5; margin: 0 0 4px; }
.elig-trust-subline { font-size: 10px; color: #5F5E5A; line-height: 1.5; margin: 0; }
.elig-sample-link { margin-top: 8px; text-align: center; }
.elig-sample-link a { font-size: 12px; color: #0C447C; font-weight: 500; text-decoration: none; }
.elig-sample-link a:hover { text-decoration: underline; }

/* Mobile overrides for spec v2 */
@media (max-width: 768px) {
  .elig-input-row {
    flex-direction: column;
    align-items: stretch;
  }
  .elig-input-group,
  .elig-input-group input,
  #elig-address-input,
  #elig-submit-btn,
  .elig-btn-disabled {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .elig-free-note {
    justify-content: center;
  }
}
@media (max-width: 480px) {
  #elig-submit-btn,
  .elig-btn-disabled { width: 100%; height: 44px; }
  #elig-reset-btn { width: 100%; text-align: center; justify-content: center; }
  .elig-result-header-row { flex-direction: column; align-items: stretch; }
}

.hero-elig-widget {
  width: 100%; max-width: 480px;
  margin: 0 auto;
  text-align: left;
}

.eligibility-cta {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #9FE1CB;
  text-align: center;
}
.eligibility-cta-label {
  font-size: 14px;
  color: #5F5E5A;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 0.75rem;
}

/* Buttons — copied standalone from index.html.template's grouped selectors
   (.hero-btn, .cta-primary, .fsubmit, .pc-btn, .eligibility-order-btn { ... })
   since those group unrelated homepage-only classes together. */
.eligibility-order-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1D9E75;
  color: #F8F5F0;
  border: none;
  border-radius: 8px;
  padding: 15px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Outfit', system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: background 0.2s, transform 0.15s;
  box-sizing: border-box;
}
.eligibility-order-btn:hover {
  background: #0C447C;
  color: #F8F5F0;
  transform: translateY(-1px);
}
@media (max-width: 600px) {
  .eligibility-order-btn { width: 100%; text-align: center; }
}
.elig-btn,
.elig-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #1D9E75;
  color: #F8F5F0;
  border: none;
  border-radius: 7px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Outfit', system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
  box-sizing: border-box;
}
.elig-btn:hover:not(:disabled),
.elig-cta-btn:hover {
  background: #0C447C;
  color: #F8F5F0;
}
.elig-btn:disabled { opacity: 0.65; cursor: not-allowed; }
@media (max-width: 600px) {
  .elig-btn { width: 100%; }
}
