/* topcashtitleloan.com — Emergency/Urgency Theme: near-black, deep red, amber */

:root {
  --bg:       #0f0500;
  --bg2:      #1a0800;
  --surface:  #1f0900;
  --border:   rgba(220,38,38,.25);
  --red:      #dc2626;
  --red-dim:  #b91c1c;
  --amber:    #f59e0b;
  --amber-dim:#d97706;
  --text:     #fef3c7;
  --muted:    rgba(254,243,199,.65);
  --white:    #ffffff;
  --shadow:   0 20px 60px rgba(0,0,0,.6);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

/* ── UTILITIES ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,5,0,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.nav-logo {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--amber);
  text-decoration: none;
  letter-spacing: -.3px;
  white-space: nowrap;
}
.nav-logo span { color: var(--red); }
.nav-links { list-style: none; display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 600; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 800 !important;
  font-size: .88rem !important;
  transition: background .15s !important;
}
.nav-cta:hover { background: var(--red-dim) !important; }

/* ── HERO ── */
.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: center;
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-left { display: flex; flex-direction: column; gap: 28px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(220,38,38,.15);
  border: 1px solid rgba(220,38,38,.35);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .8rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: .5px;
  text-transform: uppercase;
  width: fit-content;
}
.hero-eyebrow::before { content: "🚨"; font-size: 1rem; }

h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.5px;
  color: var(--text);
}
h1 em { font-style: normal; color: var(--amber); }

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 560px;
}

/* Scenario tiles */
.scenarios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.scenario-tile {
  background: rgba(220,38,38,.12);
  border: 1px solid rgba(220,38,38,.28);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: .9rem;
  color: var(--text);
  transition: background .15s;
}
.scenario-tile:hover { background: rgba(220,38,38,.2); }
.scenario-tile .icon { font-size: 1.5rem; flex-shrink: 0; }

/* ── FORM CARD ── */
.form-card {
  background: linear-gradient(160deg, #1f0a00, #160600);
  border: 1px solid rgba(245,158,11,.22);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 84px;
  align-self: start;
}
.form-card-heading {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--amber);
  margin-bottom: 4px;
  line-height: 1.2;
}
.form-card-sub {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 20px;
}

/* Form fields */
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-group label { font-size: .82rem; font-weight: 700; color: rgba(254,243,199,.8); letter-spacing: .1px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

input, select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(245,158,11,.22);
  background: rgba(0,0,0,.45);
  color: var(--text);
  font-size: .9rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: auto;
  appearance: auto;
}
input::placeholder { color: rgba(254,243,199,.3); }
input:focus, select:focus {
  border-color: rgba(245,158,11,.6);
  box-shadow: 0 0 0 3px rgba(245,158,11,.14);
}
select option { background: #1a0800; }

.form-group.error input,
.form-group.error select { border-color: var(--red); }
.err-msg { font-size: .76rem; color: #fca5a5; display: none; }
.form-group.error .err-msg { display: block; }

/* Honeypot */
#grp-website { display: none; }

.submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--red), var(--red-dim));
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: .2px;
  transition: opacity .15s, transform .08s;
  margin-top: 4px;
}
.submit-btn:hover { opacity: .9; }
.submit-btn:active { transform: translateY(1px); }
.submit-btn:disabled { opacity: .6; cursor: not-allowed; }

.form-disclaimer {
  font-size: .72rem;
  color: rgba(254,243,199,.45);
  text-align: center;
  margin-top: 10px;
  line-height: 1.4;
}

#form-error {
  display: none;
  color: #fca5a5;
  font-size: .82rem;
  margin-top: 8px;
  text-align: center;
}

/* Confirm box */
#confirm-box {
  display: none;
  text-align: center;
  padding: 20px 0;
}
.confirm-icon { font-size: 3rem; margin-bottom: 12px; }
.confirm-title { font-size: 1.3rem; font-weight: 900; color: var(--amber); margin-bottom: 8px; }
.confirm-body { font-size: .9rem; color: var(--muted); line-height: 1.5; }

/* ── TRUST BAR ── */
.trust-bar {
  background: rgba(245,158,11,.08);
  border-top: 1px solid rgba(245,158,11,.15);
  border-bottom: 1px solid rgba(245,158,11,.15);
  padding: 18px 20px;
}
.trust-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 32px;
  max-width: 900px;
  margin: 0 auto;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--amber);
}
.trust-item::before { content: "✓"; color: var(--red); font-weight: 900; }

/* ── HOW IT WORKS ── */
.section { padding: 80px 20px; }
.section-title {
  text-align: center;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--text);
}
.section-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 48px;
  font-size: 1rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.section-sub + .steps { margin-top: 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
}
.step-num {
  width: 48px; height: 48px;
  background: var(--amber);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  margin: 0 auto 16px;
}
.step h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.step p { font-size: .88rem; color: var(--muted); line-height: 1.5; }

/* ── WHY SECTION ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
}
.why-icon { font-size: 2rem; margin-bottom: 12px; }
.why-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 6px; color: var(--amber); }
.why-card p { font-size: .86rem; color: var(--muted); line-height: 1.5; }

/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  padding: 18px 20px;
  font-size: .95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-q .arrow { color: var(--amber); transition: transform .2s; flex-shrink: 0; font-size: 1.1rem; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 20px 18px;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.faq-item.open .faq-a { display: block; }

/* ── STATES STRIP ── */
.states-section { padding: 40px 20px; border-top: 1px solid var(--border); }
.states-label { text-align: center; font-size: .82rem; color: var(--muted); font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .5px; }
.states-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.states-links a {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--amber);
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  transition: background .15s;
}
.states-links a:hover { background: rgba(220,38,38,.15); }

/* ── FOOTER ── */
footer {
  background: #080200;
  border-top: 1px solid var(--border);
  padding: 40px 20px 28px;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.6;
}
.footer-inner { max-width: 960px; margin: 0 auto; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}
.footer-logo { font-size: 1rem; font-weight: 900; color: var(--amber); }
.footer-logo span { color: var(--red); }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: var(--text); }
.footer-disclaimer {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  color: rgba(254,243,199,.38);
  font-size: .74rem;
}

/* ── INNER PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, #1a0600, #0f0500);
  border-bottom: 1px solid var(--border);
  padding: 60px 20px 48px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; color: var(--amber); margin-bottom: 12px; }
.page-hero p { color: var(--muted); max-width: 620px; margin: 0 auto; font-size: 1rem; }

.prose { max-width: 760px; margin: 0 auto; padding: 48px 20px; }
.prose h2 { font-size: 1.35rem; font-weight: 900; color: var(--amber); margin: 32px 0 12px; }
.prose h3 { font-size: 1.05rem; font-weight: 800; color: var(--text); margin: 24px 0 8px; }
.prose p { color: var(--muted); margin-bottom: 14px; font-size: .93rem; line-height: 1.7; }
.prose ul { padding-left: 20px; margin-bottom: 14px; }
.prose li { color: var(--muted); font-size: .93rem; line-height: 1.7; margin-bottom: 6px; }
.prose a { color: var(--amber); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 40px 20px; min-height: unset; }
  .form-card { position: static; }
  .steps { grid-template-columns: 1fr; max-width: 420px; }
  .nav-links { gap: 16px; }
}
@media (max-width: 600px) {
  .scenarios { grid-template-columns: 1fr; }
  .hero-sub { font-size: 1rem; }
  .nav-links li:not(:last-child) { display: none; }
  .footer-top { flex-direction: column; }
  .why-grid { grid-template-columns: 1fr 1fr; }
}
