:root {
  --primary-color: #0056b3;
  --secondary-color: #004494;
  --accent-color: #e6f0ff;
  --text-dark: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --border-color: #cccccc;
  --success-color: #28a745;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1200px;
}

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

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: #f9f9f9;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
header {
  background-color: var(--white);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* Hero Section */
.hero {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 4rem 1rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--white);
  color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #f0f0f0;
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: rgba(255,255,255,0.1);
  text-decoration: none;
}

/* Main Content */
.container {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  /* Mobile Header Fix */
  .nav-container {
    flex-direction: column;
    text-align: center;
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .nav-links {
    gap: 15px;
    font-size: 0.9rem;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap; 
  }

  .logo {
    margin-bottom: 0.25rem;
  }

  /* Hero Mobile Tweaks */
  .hero {
    padding: 3rem 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
}

/* Cards */
.card {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid #eee;
}

.card h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Sections */
.section {
  margin-bottom: 3rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

/* Footer */
footer {
  background-color: #f1f1f1;
  padding: 3rem 1rem;
  margin-top: 4rem;
  border-top: 1px solid #ddd;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-light);
  font-size: 0.9rem;
}

.disclaimer {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 2rem;
  font-style: italic;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* CPT Page Specifics */
.cpt-header {
  background-color: var(--accent-color);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border-left: 5px solid var(--primary-color);
}

.cpt-price-box {
  background-color: #fff;
  border: 2px solid var(--success-color);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  text-align: center;
}

.price-range {
  font-size: 2rem;
  font-weight: 700;
  color: var(--success-color);
  display: block;
}

.faq-section details {
  background: var(--white);
  padding: 1rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  border: 1px solid #eee;
  cursor: pointer;
}

.faq-section summary {
  font-weight: 600;
  color: var(--primary-color);
}

.faq-section p {
  margin-top: 1rem;
}

/* Tool Page */
textarea.bill-input {
  width: 100%;
  height: 200px;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: monospace;
  font-size: 1rem;
  resize: vertical;
}

.results-area {
  margin-top: 2rem;
  background: var(--white);
  padding: 1rem;
  border-radius: 4px;
  min-height: 100px;
}

.highlight {
  background-color: yellow;
  font-weight: bold;
}
