/* ==========================================================================
   LegalClaimCalculators.com - Design System & High-Converting UI Styles
   ========================================================================== */

/* --- CSS Variables & Color Tokens --- */
:root {
  --bg-dark: #0b132b;
  --bg-surface: #1c2541;
  --bg-surface-elevated: #232d4d;
  --glass-bg: rgba(28, 37, 65, 0.85);
  --glass-border: rgba(255, 255, 255, 0.12);

  --accent-gold: #f1c40f;
  --accent-gold-hover: #d4ac0d;
  --accent-navy: #3a506b;
  --accent-cyan: #00b4d8;
  --accent-emerald: #2ec4b6;

  --text-main: #ffffff;
  --text-muted: #a0aec0;
  --text-dim: #64748b;

  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 6px rgba(0,0,0,0.2);
  --shadow-md: 0 10px 25px rgba(0,0,0,0.4);
  --shadow-gold: 0 0 20px rgba(241, 196, 15, 0.3);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base & Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(0, 180, 216, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(241, 196, 15, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
}

/* --- Typography Helpers --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
}

.text-gold {
  color: var(--accent-gold);
}

/* --- Header & Navigation --- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 19, 43, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.85rem 1.5rem;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-hover));
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-gold);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.3rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
}

.nav-link {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-primary);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition);
}

.nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  background: var(--accent-gold);
  color: var(--bg-dark);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(241, 196, 15, 0.35);
}

.btn-attorney-nav {
  background: linear-gradient(135deg, var(--accent-cyan), #0077b6);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.6rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

.btn-attorney-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 180, 216, 0.45);
}

/* --- Hero Banner --- */
.hero-section {
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(241, 196, 15, 0.12);
  border: 1px solid rgba(241, 196, 15, 0.3);
  color: var(--accent-gold);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.6rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
  background: linear-gradient(135deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 1.75rem;
}

.trust-bar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-item {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

/* --- Main Layout --- */
.main-container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 1.5rem;
  flex: 1;
}

.calculator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

/* Panel Containers */
.calc-panel-input, .calc-panel-results {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.panel-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.panel-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.panel-header p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.input-prefix-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-symbol {
  position: absolute;
  left: 1rem;
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 1.1rem;
}

.input-prefix-wrapper input, select {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem 0.85rem 2.2rem;
  color: white;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition);
}

select {
  padding-left: 1rem;
}

.input-prefix-wrapper input:focus, select:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.25);
}

/* Range Slider */
input[type=range] {
  width: 100%;
  accent-color: var(--accent-gold);
  cursor: pointer;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.multiplier-val-display {
  color: var(--accent-gold);
  font-weight: 700;
}

.btn-calculate {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-hover));
  color: var(--bg-dark);
  border: none;
  border-radius: var(--radius-md);
  padding: 1rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-gold);
}

.btn-calculate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(241, 196, 15, 0.45);
}

/* Results Display Panel */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.status-pill {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-emerald);
  background: rgba(46, 196, 182, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.settlement-hero-box {
  background: linear-gradient(135deg, rgba(241, 196, 15, 0.12), rgba(0, 180, 216, 0.08));
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.range-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.settlement-amount {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin: 0.3rem 0;
  letter-spacing: -0.02em;
}

.settlement-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Breakdown List */
.breakdown-box {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.75rem;
}

.breakdown-box h4 {
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.breakdown-row.total-row {
  border-top: 1px solid var(--glass-border);
  border-bottom: none;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}

/* High-Value Attorney Consultation CTA Card */
.attorney-cta-card {
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.15), rgba(58, 80, 107, 0.3));
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.cta-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #e63946;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.attorney-cta-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.attorney-cta-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.15rem;
}

.btn-get-consultation {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-cyan), #0077b6);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition);
}

.btn-get-consultation:hover {
  background: #0077b6;
  box-shadow: 0 6px 18px rgba(0, 180, 216, 0.4);
}

/* --- FAQ & E-E-A-T Section --- */
.seo-faq-section {
  max-width: 1000px;
  margin: 0 auto 3rem;
}

.section-title {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 2rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.faq-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.faq-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.faq-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* --- Lead Modal --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 19, 43, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  max-width: 520px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-md);
  animation: modalSlideUp 0.3s ease-out;
}

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

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal-icon {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.flex-1 { flex: 1; }

.btn-submit-lead {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-hover));
  color: var(--bg-dark);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.95rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.modal-privacy-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.75rem;
}

/* --- Footer --- */
.app-footer {
  background: #070d1d;
  border-top: 1px solid var(--glass-border);
  padding: 2rem 1.5rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.disclaimer-text {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links {
  display: flex;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-gold);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--accent-gold);
  color: white;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 2000;
}

.hidden { display: none !important; }

/* Responsive adjustments */
@media (max-width: 900px) {
  .calculator-layout {
    grid-template-columns: 1fr;
  }

  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-menu {
    width: 100%;
    overflow-x: auto;
  }

  .form-row {
    flex-direction: column;
  }
}
