/* Final visibility and compact-directory update - 2026-07-17 */

/* Need a Tradesman hero information card: solid white and high contrast. */
.need-tradesman-page .hero-card,
.county-page .hero-card {
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid rgba(255,138,0,.38) !important;
  border-top: 6px solid var(--orange, #ff8a00) !important;
  box-shadow: 0 26px 70px rgba(0,0,0,.38) !important;
  opacity: 1 !important;
}
.need-tradesman-page .hero-card h2,
.need-tradesman-page .hero-card p,
.need-tradesman-page .hero-card li,
.county-page .hero-card h2,
.county-page .hero-card p,
.county-page .hero-card li {
  color: #111111 !important;
  text-shadow: none !important;
  opacity: 1 !important;
}
.need-tradesman-page .hero-card p,
.county-page .hero-card p { color: #444444 !important; }
.need-tradesman-page .hero-card img,
.county-page .hero-card img {
  filter: none !important;
  opacity: 1 !important;
}

/* Individual trade-page hero cards: black panel with white readable wording. */
.trade-detail-page .hero-card {
  background: #0b0b0c !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,138,0,.42) !important;
  border-top: 6px solid var(--orange, #ff8a00) !important;
  box-shadow: 0 26px 70px rgba(0,0,0,.42) !important;
  opacity: 1 !important;
}
.trade-detail-page .hero-card h2,
.trade-detail-page .hero-card p,
.trade-detail-page .hero-card li {
  color: #ffffff !important;
  text-shadow: none !important;
  opacity: 1 !important;
}
.trade-detail-page .hero-card p { color: #e7e7e7 !important; }
.trade-detail-page .hero-card .trust-badges {
  gap: 10px !important;
}
.trade-detail-page .hero-card .trust-badge {
  background: #191919 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  opacity: 1 !important;
}
.trade-detail-page .hero-card .trust-icon {
  background: var(--orange, #ff8a00) !important;
  color: #111111 !important;
}

/* Quote forms: headings on white cards must be black, not inherited white. */
.trade-bottom-cta .form-card,
.trade-bottom-cta .form-card h1,
.trade-bottom-cta .form-card h2,
.trade-bottom-cta .form-card h3,
.trade-bottom-cta .form-card .section-title,
.trade-bottom-cta .form-card p,
.trade-bottom-cta .form-card .section-copy,
.trade-bottom-cta .form-card label {
  color: #111111 !important;
  text-shadow: none !important;
  opacity: 1 !important;
}
.trade-bottom-cta .form-card p,
.trade-bottom-cta .form-card .section-copy { color: #4d4d4d !important; }
.trade-bottom-cta .form-card .eyebrow { color: var(--orange, #ff8a00) !important; }

/* Compact county and trade directory. */
.county-page .county-directory-section {
  padding: 58px 0 !important;
  background: #f5f5f5 !important;
}
.county-page .directory-intro {
  max-width: 820px;
  margin-bottom: 24px;
}
.county-page .directory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.county-page .directory-panel {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 14px 36px rgba(0,0,0,.07);
}
.county-page .directory-panel h2 {
  margin: 0 0 8px;
  color: #111111;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -.035em;
}
.county-page .directory-panel > p {
  margin: 0 0 18px;
  color: #595959;
  line-height: 1.6;
}
.county-page .directory-chip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.county-page .directory-chip {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 10px;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  background: #fafafa;
  color: #111111;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}
.county-page a.directory-chip {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.county-page a.directory-chip:hover {
  background: var(--orange, #ff8a00);
  color: #111111;
  border-color: var(--orange, #ff8a00);
  transform: translateY(-1px);
}
.county-page .directory-cta {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

/* Thank-you page. */
body.thank-you-page {
  min-height: 100vh !important;
  display: block !important;
  padding: 0 !important;
  background: #f4f4f4 !important;
  color: #111111 !important;
}

.thank-you-page .header .logo,
.thank-you-page .header .header-social-link,
.thank-you-page .header .quote-image-exact,
.thank-you-page .header .nav a {
  min-width: 0 !important;
}
.thank-you-page .footer a {
  min-width: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.thank-you-page .thank-you-main {
  min-height: calc(100vh - 210px);
  display: flex;
  align-items: center;
  padding: 64px 0;
  background:
    radial-gradient(circle at 15% 12%, rgba(255,138,0,.16), transparent 30%),
    linear-gradient(180deg, #f8f8f8 0%, #eeeeee 100%);
}
.thank-you-page .thank-you-card {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid #e3e3e3;
  border-top: 7px solid var(--orange, #ff8a00);
  box-shadow: 0 24px 70px rgba(0,0,0,.13);
  text-align: center;
}
.thank-you-page .thank-you-badge {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange, #ff8a00);
  color: #111111;
  font-size: 36px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(255,138,0,.28);
}
.thank-you-page .thank-you-card .eyebrow {
  color: var(--orange, #ff8a00) !important;
  margin-bottom: 10px;
}
.thank-you-page .thank-you-card h1 {
  margin: 0 0 14px;
  color: #111111 !important;
  font-size: clamp(38px, 6vw, 64px);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: -.045em;
  text-shadow: none !important;
}
.thank-you-page .thank-you-card > p {
  max-width: 600px;
  margin: 0 auto 26px;
  color: #515151 !important;
  font-size: 17px;
  line-height: 1.65;
}
.thank-you-page .thank-you-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
}
.thank-you-page .thank-you-step {
  padding: 16px 12px;
  border-radius: 16px;
  background: #f7f7f7;
  border: 1px solid #e7e7e7;
  color: #111111;
  font-weight: 800;
  line-height: 1.35;
}
.thank-you-page .thank-you-step span {
  width: 28px;
  height: 28px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange, #ff8a00);
  color: #111111;
  font-size: 13px;
  font-weight: 900;
}
.thank-you-page .thank-you-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.thank-you-page .thank-you-actions a {
  min-width: 180px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .035em;
  font-weight: 900;
}
.thank-you-page .thank-you-actions .primary {
  background: var(--orange, #ff8a00);
  color: #111111;
}
.thank-you-page .thank-you-actions .secondary {
  background: #111111;
  color: #ffffff;
  border: 1px solid #111111;
}
.thank-you-page .thank-you-actions a:hover { transform: translateY(-1px); }

@media (max-width: 980px) {
  .county-page .directory-layout { grid-template-columns: 1fr; }
  .county-page .directory-chip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .need-tradesman-page .hero-card,
  .county-page .hero-card,
  .trade-detail-page .hero-card { padding: 22px !important; border-radius: 22px !important; }
  .county-page .county-directory-section { padding: 42px 0 !important; }
  .county-page .directory-panel { padding: 18px; border-radius: 18px; }
  .county-page .directory-chip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .county-page .directory-chip { font-size: 12px; min-height: 40px; }
  .thank-you-page .thank-you-main { padding: 42px 0; }
  .thank-you-page .thank-you-card { padding: 28px 20px; border-radius: 22px; }
  .thank-you-page .thank-you-steps { grid-template-columns: 1fr; }
  .thank-you-page .thank-you-actions { flex-direction: column; }
  .thank-you-page .thank-you-actions a { width: 100%; }
}
