/* ============================================
   Package 7 Premium — Legal Letter Service
   Premium $19.99 design — EvictionResponseLetter
   ============================================ */

:root {
  --navy: #0f1923;
  --navy-light: #1a2b3d;
  --navy-mid: #152231;
  --blue: #2c6fbd;
  --blue-hover: #1e5a9e;
  --blue-light: #e8f0fe;
  --accent: #b8860b;
  --accent-hover: #9a7209;
  --accent-light: #d4a017;
  --accent-glow: rgba(184, 134, 11, 0.15);
  --cta-bg: #b8860b;
  --cta-hover: #9a7209;
  --green: #1b7a3d;
  --green-light: #e6f4ea;
  --red: #c62828;
  --gray-50: #f8f9fb;
  --gray-100: #f0f2f5;
  --gray-200: #e4e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-600: #6b7280;
  --gray-700: #4b5563;
  --gray-800: #374151;
  --gray-900: #1f2937;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 10px 15px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 20px 48px rgba(0,0,0,0.08);
  --shadow-gold: 0 4px 14px rgba(184, 134, 11, 0.2);
  --radius: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --font-display: 'Georgia', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.7;
}

/* ---- HEADER ---- */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(184, 134, 11, 0.3);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--white);
  text-decoration: none;
}
.logo span { color: var(--accent-light); }
.header-tagline {
  font-size: 0.8rem;
  color: var(--gray-400);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: none;
}
@media (min-width: 600px) { .header-tagline { display: block; } }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy-light) 100%);
  color: var(--white);
  padding: 80px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(184,134,11,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.6;
  position: relative;
}
.hero-cta {
  display: inline-block;
  background: var(--cta-bg);
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: var(--shadow-gold);
  letter-spacing: 0.3px;
  position: relative;
}
.hero-cta:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.35);
}

/* ---- TRUST BAR ---- */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 18px 24px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
.trust-bar-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--gray-700);
  font-weight: 600;
  letter-spacing: 0.2px;
}
.trust-icon { font-size: 1.1rem; flex-shrink: 0; }

/* ---- MAIN CONTENT ---- */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--navy);
  letter-spacing: -0.3px;
}
.section-subtitle {
  text-align: center;
  color: var(--gray-600);
  margin-bottom: 44px;
  font-size: 1rem;
  line-height: 1.6;
}

/* ---- DOC GRID / CARDS ---- */
.doc-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
}
.doc-grid .doc-card { flex: 0 1 calc(50% - 10px); min-width: 280px; max-width: 500px; }
.doc-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  transition: box-shadow 0.25s, transform 0.2s, border-color 0.25s;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
}
.doc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0;
  transition: opacity 0.25s;
}
.doc-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--gray-300);
}
.doc-card:hover::before { opacity: 1; }
.doc-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--navy); letter-spacing: -0.2px; }
.doc-card p { font-size: 0.88rem; color: var(--gray-600); line-height: 1.6; }

/* ---- HOW IT WORKS ---- */
.how-it-works { margin-bottom: 64px; }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
  max-width: 820px;
  margin: 0 auto;
}
.step {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.2s, transform 0.15s;
}
.step:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--accent-light);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(15, 25, 35, 0.2);
}
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--navy); }
.step p { font-size: 0.88rem; color: var(--gray-600); line-height: 1.6; }

/* ---- FORM PAGE ---- */
.form-page-header { text-align: center; margin-bottom: 36px; }
.form-page-header h1 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.form-page-header .statute-ref { font-size: 0.88rem; color: var(--blue); font-weight: 600; margin-bottom: 8px; }
.form-page-header .form-desc { font-size: 0.95rem; color: var(--gray-600); max-width: 600px; margin: 0 auto; }

/* ---- STATE SELECT ---- */
.state-select-section { max-width: 500px; margin: 0 auto 40px; text-align: center; }
.state-select-section select {
  width: 100%; max-width: 360px; padding: 14px 18px; font-size: 1.05rem;
  border: 2px solid var(--gray-300); border-radius: var(--radius);
  font-family: inherit; color: var(--gray-900); background: var(--white);
  cursor: pointer; margin-bottom: 16px; transition: border-color 0.2s, box-shadow 0.2s;
}
.state-select-section select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

/* ---- LEGAL NOTICES ---- */
.legal-notices {
  background: linear-gradient(135deg, #fefce8 0%, #fef9e7 100%);
  border: 1px solid #f9e79f; border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 18px 22px; margin-bottom: 32px;
}
.legal-notices h4 { font-size: 0.82rem; font-weight: 700; color: var(--gray-800); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.8px; }
.legal-notices ul { list-style: none; padding: 0; }
.legal-notices li { font-size: 0.85rem; color: var(--gray-700); padding: 4px 0 4px 20px; position: relative; line-height: 1.5; }
.legal-notices li::before { content: "\2022"; color: var(--accent); font-weight: bold; position: absolute; left: 4px; }

/* ---- DEADLINE ALERT ---- */
.deadline-alert { background: #fdedec; border: 1px solid #f5b7b1; border-left: 4px solid var(--red); border-radius: var(--radius); padding: 14px 20px; margin-bottom: 24px; text-align: center; }
.deadline-alert .deadline-status { font-size: 1rem; font-weight: 700; color: var(--red); }
.deadline-past-due { color: var(--red); }
.deadline-today { color: var(--red); font-weight: 800; }
.deadline-urgent { color: #c97700; }
.deadline-upcoming { color: var(--green); }

/* ---- FORM ---- */
.form-container { max-width: 700px; margin: 0 auto; }
.form-section { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 32px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.form-section-title { font-size: 0.82rem; font-weight: 700; color: var(--navy); margin-bottom: 22px; padding-bottom: 12px; border-bottom: 2px solid var(--gray-100); text-transform: uppercase; letter-spacing: 0.8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row.full-width { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; letter-spacing: 0.2px; }
.form-group input, .form-group select, .form-group textarea { padding: 12px 14px; border: 1.5px solid var(--gray-300); border-radius: 6px; font-size: 1rem; font-family: inherit; color: var(--gray-900); background: var(--white); transition: border-color 0.2s, box-shadow 0.2s; }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(44, 111, 189, 0.12); }
.form-group input.invalid, .form-group textarea.invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1); }
.error-message { font-size: 0.78rem; color: var(--red); margin-top: 4px; font-weight: 500; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ---- DEFENSE CHECKBOXES ---- */
.defense-checkboxes { display: flex; flex-direction: column; gap: 10px; }
.defense-checkbox-label { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border: 1.5px solid var(--gray-200); border-radius: 8px; cursor: pointer; transition: background 0.15s, border-color 0.2s, box-shadow 0.2s; font-size: 0.92rem; color: var(--gray-800); line-height: 1.4; }
.defense-checkbox-label:hover { background: var(--blue-light); border-color: var(--blue); box-shadow: 0 0 0 2px rgba(44, 111, 189, 0.08); }
.defense-checkbox-label.defense-unavailable { opacity: 0.45; cursor: not-allowed; }
.defense-checkbox-label.defense-unavailable:hover { background: transparent; border-color: var(--gray-200); box-shadow: none; }
.defense-checkbox { margin-top: 2px; flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--blue); }
.defense-label-text { flex: 1; }
.defense-note { font-size: 0.78rem; color: var(--gray-600); font-style: italic; }
.defense-cite { font-size: 0.78rem; color: var(--blue); font-weight: 500; }

/* ---- BUTTONS ---- */
.btn-row { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.btn { padding: 14px 28px; border-radius: var(--radius); font-size: 1rem; font-weight: 700; font-family: inherit; cursor: pointer; border: none; transition: background 0.2s, transform 0.15s, box-shadow 0.2s; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; letter-spacing: 0.2px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--cta-bg); color: var(--white); box-shadow: var(--shadow-gold); }
.btn-primary:hover { background: var(--cta-hover); box-shadow: 0 6px 20px rgba(184, 134, 11, 0.3); }
.btn-preview { background: var(--navy); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-preview:hover { background: var(--navy-light); }
.btn-secondary { background: var(--gray-100); color: var(--gray-800); border: 1.5px solid var(--gray-300); }
.btn-secondary:hover { background: var(--gray-200); }

/* ---- PRICE TAG ---- */
.price-tag { text-align: center; margin-top: 24px; padding: 20px; background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); border: 1px solid rgba(184, 134, 11, 0.2); border-radius: var(--radius-lg); }
.price-tag .price { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--navy); }
.price-tag .price-note { font-size: 0.82rem; color: var(--gray-600); margin-top: 4px; }

/* ---- STATE INFO GRID ---- */
.state-hero { padding: 60px 24px 56px; }
.state-law-summary { margin-bottom: 44px; }
.state-info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 24px; }
.state-info-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 24px; transition: box-shadow 0.2s; }
.state-info-card:hover { box-shadow: var(--shadow-md); }
.state-info-card h3 { font-size: 0.9rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.state-info-card p { font-size: 0.88rem; color: var(--gray-700); line-height: 1.6; margin-bottom: 6px; }
.state-info-card ul { padding-left: 18px; margin: 0; }
.state-info-card li { font-size: 0.88rem; color: var(--gray-700); line-height: 1.6; margin-bottom: 4px; }

/* ---- FAQ ---- */
.faq-section { margin: 48px 0; }
.faq-list { max-width: 800px; margin: 24px auto 0; }
.faq-item { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 12px; transition: box-shadow 0.2s; }
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-question { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.4; }
.faq-answer { font-size: 0.9rem; color: var(--gray-700); line-height: 1.7; }

/* ---- ALL STATES LINKS ---- */
.all-states { margin: 44px 0; }
.state-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; max-width: 900px; margin: 24px auto 0; }
.state-links a { color: var(--blue); text-decoration: none; font-size: 0.88rem; font-weight: 500; transition: color 0.15s; }
.state-links a:hover { color: var(--navy); text-decoration: underline; }
.state-link-current { color: var(--gray-600); font-size: 0.88rem; font-weight: 700; }

/* ---- FOOTER ---- */
.site-footer { background: var(--navy); color: var(--gray-400); padding: 48px 24px; text-align: center; border-top: 1px solid rgba(184, 134, 11, 0.2); }
.footer-inner { max-width: 800px; margin: 0 auto; }
.footer-disclaimer { font-size: 0.78rem; line-height: 1.7; margin-bottom: 24px; color: var(--gray-400); }
.footer-links { display: flex; justify-content: center; gap: 28px; margin-bottom: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--gray-400); text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: color 0.15s; }
.footer-links a:hover { color: var(--accent-light); }
.footer-copy { font-size: 0.78rem; color: var(--gray-600); }

/* ---- UTILITIES ---- */
.lead-error-message { font-size: 0.78rem; color: var(--red); margin-top: 4px; font-weight: 500; }
#attorney-cta-section { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); color: var(--white); border-radius: var(--radius-xl); padding: 36px 32px; margin-top: 32px; text-align: center; box-shadow: var(--shadow-lg); }
.hidden { display: none !important; }

/* ---- RESPONSIVE ---- */
@media (max-width: 480px) {
  .hero { padding: 56px 20px 48px; }
  .hero h1 { font-size: 1.9rem; }
  .hero p { font-size: 1rem; }
  .trust-bar-inner { gap: 16px; }
  .trust-item { font-size: 0.82rem; }
  .form-section { padding: 22px; }
  .btn-row { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .state-info-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.4rem; }
}
