/*
   Shared Styles for County Landing Pages & Secondary Pages
   (Extracted from inline <style> blocks to reduce duplication)
*/

/* County pages use the dark ink theme — override shared.css cream body */
body {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
}

.page-hero {
  background: radial-gradient(circle at top right, #1c2435 0%, #0a0b10 100%);
  padding: 80px 24px;
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3F%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}
.page-hero-wrap {
  max-width: 860px;
  margin: 0 auto;
}
.page-hero-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}
.page-hero-title {
  font-family: var(--fd);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.page-hero-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.95);
  max-width: 580px;
  line-height: 1.6;
}

/* Info cards used in county and about pages */
.info-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--rl);
  padding: 32px;
  margin: 32px 0;
  box-shadow: var(--sh2);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}
.info-card:hover {
  border-color: rgba(240, 133, 25, 0.3);
  transform: translateY(-2px);
}
.info-card h3 {
  font-family: var(--fd);
  font-size: 17px;
  color: var(--amber);
  margin-bottom: 10px;
}
.info-card p,
.info-card li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}
.info-card ul {
  padding-left: 18px;
  margin: 0;
}

/* Step lists */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.steps li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--cream);
}
.steps li::before {
  content: counter(step);
  min-width: 28px;
  height: 28px;
  background: var(--amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
}

/* Bail CTA Blocks */
.bail-cta-block {
  background: linear-gradient(135deg, #1a1007 0%, #2a1a08 100%);
  border: 1px solid var(--amber);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin: 32px 0;
}
.bail-cta-block h3 {
  font-family: var(--fd);
  font-size: 24px;
  color: #fff;
  margin-bottom: 10px;
}
.bail-cta-block p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-call:hover {
  background: var(--amber-hi);
  color: #fff;
}

/* Search CTA Specifics */
.search-cta-box {
  background: var(--ink);
  border: 2px solid var(--amber);
  border-radius: 12px;
  padding: 28px 32px;
  text-align: center;
  margin: 32px 0;
}
.search-cta-box h2 {
  font-family: var(--fd);
  font-size: 22px;
  color: #fff;
  margin-bottom: 10px;
}
.search-cta-box p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 18px;
}
.btn-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-search:hover {
  background: var(--amber-hi);
  color: #fff;
}

/* Layout helpers */
.page-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}
.page-section {
  padding: 40px 0;
}

#county-search-container {
  background: linear-gradient(145deg, #161e2e 0%, #0b0f1a 100%);
  border: 1px solid rgba(240, 133, 25, 0.2);
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  margin: 20px 0;
}

/* County navigation grid in footer */
.county-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.county-nav a {
  background: var(--ink);
  border: 1px solid rgba(240, 133, 25, 0.3);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--amber);
  text-decoration: none;
  transition: border-color 0.2s;
}
.county-nav a:hover {
  border-color: var(--amber);
}
.county-nav a.active {
  border-color: var(--amber);
  background: rgba(240, 133, 25, 0.12);
}
/* State Page Specifics */
.county-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 40px;
}
.state-recent {
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
}

/* State Page Specifics */
.state-legal-notice {
  background: rgba(255, 100, 0, 0.05);
  border: 1px solid rgba(240, 133, 25, 0.2);
  border-left: 4px solid var(--amber);
  padding: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  margin-bottom: 40px;
}

.county-browse-header {
  margin-bottom: 24px;
}

/* Filmstrip & Portal Basics */
.filmstrip-container {
  background: #0b0f1a;
  height: 112px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(240, 133, 25, 0.25);
}
.film-label {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 16px;
  gap: 3px;
}
.film-live {
  font-family: var(--fd);
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.film-dot {
  width: 7px;
  height: 7px;
  background: #c53535;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
  vertical-align: middle;
  animation: blink 1.4s ease-in-out infinite;
}
.film-county {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 1px;
}
.film-track {
  display: flex;
  gap: 10px;
  padding: 12px 12px 12px 100px;
  animation: filmScroll 60s linear infinite;
  width: max-content;
}
.official-search-layer {
  margin-top: 40px;
}
.official-portal-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 15px;
}

/* Modal States */
.rg-overlay,
.rg-spinner,
.rg-success {
  display: none;
}

/* Direct Access Portal */
.direct-access-container {
  margin: 32px 0;
}
.da-step {
  animation: fadeIn 0.4s ease-out;
}
.da-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--rl);
  padding: 48px;
  text-align: center;
  box-shadow: var(--sh2);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.da-card:hover {
  border-color: rgba(240, 133, 25, 0.4);
  background: rgba(255, 255, 255, 0.05);
}
.da-icon {
  font-size: 56px;
  margin-bottom: 24px;
  display: inline-block;
  filter: drop-shadow(0 0 15px rgba(240, 133, 25, 0.2));
}
.da-card h2 {
  font-family: var(--fd);
  font-size: 26px;
  color: #fff;
  margin-bottom: 15px;
}
.da-card p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 24px;
}
.da-btn-primary,
.da-btn-secondary {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.da-btn-primary {
  background: linear-gradient(135deg, var(--amber) 0%, #ff6a00 100%);
  color: #fff;
  box-shadow: 0 8px 32px rgba(240, 133, 25, 0.3);
}
.da-btn-primary:hover {
  background: linear-gradient(135deg, var(--amber-hi) 0%, #ff8c00 100%);
  box-shadow: 0 12px 40px rgba(240, 133, 25, 0.5);
  transform: translateY(-3px);
}
.da-btn-secondary {
  background: transparent;
  border: 2px solid var(--glass-border);
  color: #fff;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.da-btn-secondary:hover {
  background: var(--glass-bg);
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-3px);
}
.da-note {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.4) !important;
  margin-top: 16px !important;
}

/* Utilities to replace inline styles */
.hidden {
  display: none !important;
}
.text-secondary {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 15px;
}

.legal-notice-premium {
  background: rgba(240, 133, 25, 0.04);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(240, 133, 25, 0.1);
  border-radius: 12px;
  padding: 16px 24px;
  max-width: 900px;
  margin: 24px auto;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  line-height: 1.6;
}

.official-iframe-premium {
  width: 100%;
  min-height: 600px;
  border: none;
  border-radius: 16px;
  box-shadow: var(--sh2);
  background: #fff;
}

/* --- Search Widget Premium Overhaul --- */
.cs-search-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--rl);
  padding: 40px;
  margin: 40px 0;
  box-shadow: var(--sh2);
}
.cs-label-premium {
  font-family: var(--fd);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}
.cs-title-premium {
  font-family: var(--fd);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
}
.cs-sub-premium {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  margin-bottom: 32px;
}
.cs-input-glass {
  flex: 1;
  min-width: 240px;
  padding: 16px 20px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--glass-border);
  border-radius: 12px;
  color: #fff;
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.cs-input-glass:focus {
  border-color: var(--amber);
  background: rgba(255, 255, 255, 0.08);
}
.cs-btn-vibrant {
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--amber) 0%, #ff6a00 100%);
  border: none;
  border-radius: 12px;
  font-family: var(--fd);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: all 0.2s;
  box-shadow: 0 8px 24px rgba(240, 133, 25, 0.3);
}
.cs-btn-vibrant:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(240, 133, 25, 0.5);
  filter: brightness(1.1);
}

/* Results Table */
.cs-results-wrap {
  margin-top: 40px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
}
.cs-table {
  width: 100%;
  border-collapse: collapse;
}
.cs-table thead tr {
  background: rgba(240, 133, 25, 0.08);
}
.cs-table th {
  padding: 14px 20px;
  text-align: left;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--fd);
  font-weight: 600;
}
.cs-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border);
  color: rgba(255, 255, 255, 1);
  font-size: 14px;
}
.cs-table tr:last-child td {
  border-bottom: none;
}
.cs-table .name-cell {
  color: #fff;
  font-weight: 600;
}
.cs-btn-mini {
  display: inline-block;
  padding: 8px 16px;
  background: var(--amber);
  border-radius: 6px;
  color: #fff;
  font-family: var(--fd);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}
.cs-btn-mini:hover {
  background: var(--amber-hi);
  transform: scale(1.05);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Primary / Secondary CTA Buttons (county pages) ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--amber) 0%, #ff6a00 100%);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 8px 24px rgba(240, 133, 25, 0.3);
  cursor: pointer;
  border: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(240, 133, 25, 0.5);
  filter: brightness(1.1);
  color: #fff;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-secondary:hover {
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-2px);
}

/* ── Search wrap (container for hidden search panel) ── */
.search-wrap {
  max-width: 900px;
  margin: 24px auto;
  padding: 0 24px;
}

/* ── Info Cards Section (FAQ grid) ── */
.info-cards-section {
  padding: 48px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.info-cards-wrap {
  max-width: 900px;
  margin: 0 auto;
}
.info-cards-title {
  font-family: var(--fd);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 28px;
}
.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
/* Override info-card margin for grid layout */
.info-cards-grid .info-card {
  margin: 0;
}

/* ── Iframe Placeholder (county pages without embeddable portal) ── */
.official-portal-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 15px;
}
.iframe-placeholder {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
}
.iframe-placeholder-text {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.7);
}
.iframe-find-btn {
  display: inline-block;
  background: var(--amber);
  color: var(--ink);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
