/* ==========================================================================
   ReviewPublicRecords — index2.css
   Conversion-first redesign: search form + unified review table
   ========================================================================== */

/* 1. Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: 'Lato', Helvetica, Arial, sans-serif; color: #3e3e3e; background: #f5f5f5; line-height: 1.5; }
a { color: #1a73c8; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* 2. Layout */
.container { max-width: 1070px; margin: 0 auto; padding: 0 1rem; }

/* 3. Tokens */
:root {
  --green:       #00a655;
  --green-dark:  #007d40;
  --green-light: #e6f7ef;
  --blue:        #1a73c8;
  --blue-dark:   #155fa0;
  --gold:        #f5a623;
  --red:         #d0021b;
  --gray-100:    #f9f9f9;
  --gray-200:    #f0f0f0;
  --gray-300:    #e1e1e1;
  --gray-400:    #b0b0b0;
  --gray-600:    #767676;
  --gray-800:    #3e3e3e;
  --white:       #ffffff;
  --hero-top:    #0d3b72;
  --hero-bottom: #1a6bbf;
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.10);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.15);
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
}

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
#site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.site-logo { font-size: 1.35rem; font-weight: 400; color: var(--gray-800); letter-spacing: -0.5px; text-decoration: none; white-space: nowrap; }
.site-logo strong { color: var(--blue); font-weight: 800; }

.logo-flag {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header-trust { display: none; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-weight: 700; color: var(--gray-600); }
.header-trust .hdot { color: var(--gray-300); }
@media (min-width: 600px) { .header-trust { display: flex; } }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
#hero {
  background: linear-gradient(160deg, var(--hero-top) 0%, var(--hero-bottom) 100%);
  padding: 3rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-badge { display: inline-block; background: var(--gold); color: #fff; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.9rem; border-radius: 2rem; margin-bottom: 1rem; }
.hero-headline { font-size: 2.25rem; font-weight: 800; color: var(--white); line-height: 1.15; margin-bottom: 0.75rem; text-shadow: 0 1px 4px rgba(0,0,0,0.25); }
.hero-subheadline { font-size: 1.1rem; color: rgba(255,255,255,0.88); margin-bottom: 2rem; max-width: 860px; margin-left: auto; margin-right: auto; }
@media (min-width: 700px) {
  .hero-headline    { font-size: 3.25rem; }
  .hero-subheadline { font-size: 1.2rem; }
}

/* --------------------------------------------------------------------------
   6. Search Card
   -------------------------------------------------------------------------- */
#search-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem 1.5rem 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}
.search-card-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--gray-600); margin-bottom: 0.875rem; text-align: center; }

.search-fields { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 600px) {
  .search-fields { flex-direction: row; align-items: flex-end; flex-wrap: nowrap; gap: 0.5rem; }
}

.field-group { display: flex; flex-direction: column; gap: 0.3rem; flex: 1; min-width: 0; }
.field-group.field-state { flex: 0 0 130px; }
.field-group label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-600); white-space: nowrap; text-align: left; display: block; }
.label-optional { font-weight: 400; text-transform: none; font-size: 0.95em; color: var(--gray-400); }

.field-group input,
.field-group select {
  height: 48px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 0 0.75rem;
  font-size: 0.9rem;
  font-family: 'Lato', sans-serif;
  color: var(--gray-800);
  background: var(--white);
  width: 100%;
  transition: border-color 200ms, box-shadow 200ms;
  appearance: none;
  -webkit-appearance: none;
}
.field-group select {
  background-image: url('../img/arrows-select.png');
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 1.75rem;
  cursor: pointer;
}
.field-group input::placeholder { color: var(--gray-400); }
.field-group input:focus,
.field-group select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,115,200,0.15); }

/* Hide Chosen if still loaded — we use native selects */
.chosen-container { display: none !important; }
select { display: block !important; }

/* Search button */
.btn-search {
  flex: 0 0 auto;
  height: 48px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0 1.5rem;
  white-space: nowrap;
  transition: background 200ms, transform 100ms, box-shadow 200ms;
  box-shadow: 0 4px 12px rgba(0,166,85,0.35);
  width: 100%;
  align-self: flex-end;
}
@media (min-width: 600px) { .btn-search { width: auto; } }
.btn-search:hover { background: var(--green-dark); box-shadow: 0 6px 18px rgba(0,166,85,0.45); transform: translateY(-1px); }
.btn-search:active { transform: translateY(0); }

.self-search-row { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.875rem; justify-content: center; font-size: 0.85rem; color: var(--gray-600); }
.self-search-row input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--green); }

.form-trust { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 1rem; font-size: 0.8rem; font-weight: 700; color: var(--gray-600); flex-wrap: wrap; text-align: center; }
.trust-dot { color: var(--gray-300); }
.trust-icon { color: var(--green); font-style: normal; }
.lock-icon { font-style: normal; }

/* Field validation error */
.field-error { font-size: 0.8rem; font-weight: 700; color: #d0021b; margin-top: 0.5rem; text-align: center; padding: 0.4rem 0.75rem; background: rgba(208,2,27,0.06); border-radius: var(--radius-sm); }

/* --------------------------------------------------------------------------
   7. Trust Bar
   -------------------------------------------------------------------------- */
#trust-bar { background: var(--white); border-bottom: 1px solid var(--gray-300); padding: 0.75rem 0; }
.trust-bar-inner { display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; font-weight: 700; color: var(--gray-800); white-space: nowrap; }
.trust-stars { color: var(--gold); letter-spacing: -1px; }

/* --------------------------------------------------------------------------
   8. Reviews Table — unified rows, #1 highlighted
   -------------------------------------------------------------------------- */
#reviews-section { padding: 2.5rem 0 2rem; }

.section-header { text-align: center; margin-bottom: 1.75rem; }
.section-header h2 { font-size: 1.6rem; font-weight: 800; color: var(--gray-800); margin-bottom: 0.4rem; }
.section-header p { font-size: 0.95rem; color: var(--gray-600); margin-bottom: 0.75rem; }
.advertiser-note { font-size: 0.78rem; color: var(--gray-400); text-align: right; }
.advertiser-note a { color: var(--gray-400); text-decoration: underline; }

/* Table container */
.rt-table {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
}

/* Column header row — desktop only */
.rt-head { display: none; }
@media (min-width: 700px) {
  .rt-head {
    display: grid;
    grid-template-columns: 160px 90px 1fr 140px;
    background: var(--gray-200);
    border-bottom: 1px solid var(--gray-300);
    padding: 0.5rem 1rem;
  }
  .rt-head > div { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--gray-600); text-align: center; }
  .rt-head .rt-col-blurb { text-align: left; padding-left: 1.25rem; }
}

/* Each review row */
.rt-row {
  border-top: 1px solid var(--gray-300);
  background: var(--white);
  transition: background 150ms;
}
.rt-row:first-of-type { border-top: none; }
.rt-row:hover { background: var(--gray-100); }

/* Featured row — #1 highlighted with left accent + light tint */
.rt-row-featured {
  background: #f0f6ff;
  border-left: 4px solid var(--blue);
}
.rt-row-featured:hover { background: #e8f0fc; }

/* Badge strip above #1 row */
.rt-badge {
  background: var(--blue);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.3rem 1rem;
}

/* Inner row grid — identical across all rows */
.rt-row-inner {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 0.875rem;
}
@media (min-width: 700px) {
  .rt-row-inner {
    display: grid;
    grid-template-columns: 160px 90px 1fr 140px;
    align-items: center;
    gap: 0;
    padding: 0.875rem 1rem;
  }
}

/* Logo column */
.rt-col-logo { display: flex; align-items: center; }
@media (min-width: 700px) {
  .rt-col-logo { justify-content: center; border-right: 1px solid var(--gray-300); padding: 0.5rem 0.75rem; }
}
.rt-col-logo img { max-width: 130px; max-height: 38px; object-fit: contain; }

/* Score column */
.rt-col-score { display: flex; align-items: center; gap: 0.75rem; }
@media (min-width: 700px) {
  .rt-col-score { flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem; text-align: center; border-right: 1px solid var(--gray-300); padding: 0.5rem; }
}
.rt-score { font-size: 2.25rem; font-weight: 800; color: var(--gray-800); line-height: 1; display: block; }
.rt-row-featured .rt-score { color: var(--blue-dark); font-size: 2.5rem; }
.rt-stars { color: var(--gold); font-size: 0.85rem; letter-spacing: -1px; display: block; }
.rt-review-link { font-size: 0.72rem; color: var(--blue); text-decoration: underline; display: block; white-space: nowrap; }

/* Blurb column */
.rt-col-blurb { flex: 1; }
@media (min-width: 700px) {
  .rt-col-blurb { padding: 0.5rem 1.25rem; border-right: 1px solid var(--gray-300); }
}
.rt-col-blurb p { font-size: 0.875rem; color: var(--gray-600); line-height: 1.55; margin: 0 0 0.35rem; }
.rt-row-featured .rt-col-blurb p { color: var(--gray-800); font-size: 0.9rem; }
.rt-social-proof { font-size: 0.78rem; color: var(--gray-500, #909090); }

/* CTA column */
.rt-col-cta { display: flex; flex-direction: column; gap: 0.3rem; }
@media (min-width: 700px) {
  .rt-col-cta { align-items: center; justify-content: center; padding: 0 0.875rem; text-align: center; }
}

/* Shared button base */
.rt-btn {
  display: inline-block;
  border-radius: var(--radius-sm);
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-align: center;
  padding: 0.65rem 1rem;
  transition: background 200ms, transform 100ms, box-shadow 200ms;
  white-space: nowrap;
  width: 100%;
  border: 1.5px solid transparent;
}
@media (min-width: 700px) { .rt-btn { width: auto; min-width: 110px; } }

/* Primary — #1 row: solid green */
.rt-btn-primary { background: var(--green); color: var(--white); border-color: var(--green); box-shadow: 0 3px 10px rgba(0,166,85,0.3); }
.rt-btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); box-shadow: 0 5px 16px rgba(0,166,85,0.4); transform: translateY(-1px); color: var(--white); text-decoration: none; }

/* Secondary — rows 2–4: green outline */
.rt-btn-secondary { background: var(--white); color: var(--green-dark); border-color: var(--green); }
.rt-btn-secondary:hover { background: var(--green-light); color: var(--green-dark); text-decoration: none; }

.rt-cta-note { font-size: 0.7rem; color: var(--gray-400); display: block; }

/* --------------------------------------------------------------------------
   9. FAQ Section
   -------------------------------------------------------------------------- */
#faq-section {
  background: var(--white);
  padding: 2.5rem 0;
  border-top: 1px solid var(--gray-300);
  border-bottom: 1px solid var(--gray-300);
}
.faq-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .faq-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }

.faq-item { background: var(--gray-100); border: 1px solid var(--gray-300); border-radius: var(--radius-md); padding: 1.1rem 1.25rem; }
.faq-item h4 { font-size: 0.95rem; font-weight: 700; color: var(--gray-800); margin-bottom: 0.4rem; }
.faq-item p { font-size: 0.875rem; color: var(--gray-600); line-height: 1.6; margin: 0; }

.faq-cta-block {
  margin-top: 2rem;
  background: linear-gradient(135deg, var(--hero-top) 0%, var(--hero-bottom) 100%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  color: var(--white);
}
.faq-cta-block h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.5rem; }
.faq-cta-block p  { font-size: 0.95rem; opacity: 0.88; margin-bottom: 1.25rem; }

.btn-cta-white {
  display: inline-block;
  background: var(--white);
  color: var(--blue-dark);
  border-radius: var(--radius-sm);
  padding: 0.8rem 2rem;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 200ms, transform 100ms;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.btn-cta-white:hover { background: #f0f7ff; transform: translateY(-1px); text-decoration: none; color: var(--blue-dark); }

/* --------------------------------------------------------------------------
   10. Exit-Intent Modal
   -------------------------------------------------------------------------- */
#ouibounce-modal { display: none; position: fixed; inset: 0; z-index: 1100; }
#ouibounce-modal .underlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); cursor: pointer; animation: fadeIn 0.4s ease; }
#ouibounce-modal .modal-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(560px, 95vw); background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); animation: popIn 0.3s ease; }

.salvage-header { background: var(--red); color: var(--white); padding: 1rem 1.5rem; text-align: center; }
.salvage-header h3 { font-size: 1.2rem; font-weight: 800; line-height: 1.3; }
.salvage-body { padding: 1.5rem; }
.salvage-body > p { font-size: 0.92rem; color: var(--gray-600); margin-bottom: 1.25rem; text-align: center; }
.salvage-form .search-fields { flex-direction: column; }
@media (min-width: 500px) { .salvage-form .search-fields { flex-direction: row; flex-wrap: wrap; } }
.salvage-footer { text-align: center; padding: 0.75rem 1.5rem 1.25rem; }
#close-ouibounce { font-size: 0.82rem; color: var(--gray-400); cursor: pointer; text-decoration: underline; background: none; border: none; font-family: 'Lato', sans-serif; }
#close-ouibounce:hover { color: var(--gray-600); }

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
#site-footer { background: var(--gray-200); border-top: 1px solid var(--gray-300); padding: 1.75rem 0 2rem; }
.footer-disclaimer p { font-size: 0.78rem; color: var(--gray-600); line-height: 1.6; margin-bottom: 0.75rem; }
.footer-links { display: flex; gap: 1.25rem; margin-top: 1rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.8rem; color: var(--gray-600); text-decoration: underline; }

/* --------------------------------------------------------------------------
   12. Animations
   -------------------------------------------------------------------------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn {
  0%   { transform: translate(-50%, -50%) scale(0.88); opacity: 0; }
  85%  { transform: translate(-50%, -50%) scale(1.02); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1);    opacity: 1; }
}
