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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f8f9fa;
  min-height: 100vh;
  padding: 20px;
  color: #333;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background-color: #2563eb;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
  border-radius: 4px;
}

.skip-link:focus {
  top: 6px;
}

/* Breadcrumb Navigation */
.breadcrumb {
  background-color: transparent;
  padding: 10px 0;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: '>';
  margin: 0 8px;
  color: #6b7280;
}

.breadcrumb a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.breadcrumb li[aria-current="page"] {
  color: #6b7280;
  font-weight: 500;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.header {
  background-color: #2563eb;
  padding: 30px;
  text-align: center;
  color: white;
}

.header h1 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.header p {
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 400;
}

.form-container {
  padding: 40px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
  background: white;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.calculate-btn {
  width: 100%;
  padding: 16px;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.calculate-btn:hover {
  background-color: #1d4ed8;
}

.calculate-btn:active {
  background-color: #1e40af;
}

#result {
  margin-top: 32px;
  padding: 24px;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

#result h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #111827;
  font-weight: 600;
}

#result p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 1rem;
  padding: 4px 0;
}

#result hr {
  border: none;
  height: 1px;
  background-color: #d1d5db;
  margin: 16px 0;
}

#result p:last-child {
  font-style: italic;
  text-align: center;
  margin-top: 16px;
  color: #6b7280;
  font-size: 0.9rem;
}

.total-cost {
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  background-color: #eff6ff !important;
  padding: 12px !important;
  border-radius: 6px;
  margin: 12px 0 !important;
  border: 1px solid #dbeafe !important;
}

.error {
  background-color: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  color: #dc2626 !important;
  text-align: center;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  
  .header h1 {
    font-size: 1.8rem;
  }
  
  .form-container {
    padding: 24px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  #result p {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 20px;
  }
  
  .header h1 {
    font-size: 1.6rem;
  }
  
  .form-container {
    padding: 20px;
  }
}
/* Table of Contents */
.toc-nav {
  background-color: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 32px;
}

.toc-nav h2 {
  font-size: 1.2rem;
  color: #111827;
  margin-bottom: 16px;
  font-weight: 600;
}

.toc-nav ol {
  list-style: decimal;
  padding-left: 20px;
  margin: 0;
}

.toc-nav li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.toc-nav a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.toc-nav a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* SEO Content Sections */
.intro-section {
  margin-bottom: 32px;
  padding: 20px;
  background-color: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid #2563eb;
}

.intro-section p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #374151;
  margin: 0;
}

.calculator-section {
  margin-bottom: 40px;
}

.how-to-section,
.fees-explained,
.faq-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
}

.how-to-section h2,
.fees-explained h2,
.faq-section h2 {
  font-size: 1.5rem;
  color: #111827;
  margin-bottom: 16px;
  font-weight: 600;
}

.how-to-section h3,
.fees-explained h3,
.faq-section h3 {
  font-size: 1.2rem;
  color: #374151;
  margin: 24px 0 12px 0;
  font-weight: 600;
}

.how-to-section ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.how-to-section li,
.fees-explained li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.fees-explained ul,
.faq-section ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.faq-section h3 {
  color: #2563eb;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 8px;
}

.faq-section p {
  margin-bottom: 20px;
  line-height: 1.6;
  color: #374151;
}

/* Form Helper Text */
.form-group small {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: #6b7280;
  font-style: italic;
}

/* Content Typography */
section p {
  line-height: 1.6;
  margin-bottom: 16px;
  color: #374151;
}

section strong {
  color: #111827;
  font-weight: 600;
}

/* Mobile Responsive for Content */
@media (max-width: 768px) {
  .breadcrumb {
    padding: 5px 0;
    margin-bottom: 15px;
  }
  
  .breadcrumb ol {
    font-size: 0.8rem;
  }
  
  .toc-nav {
    padding: 16px;
    margin-bottom: 24px;
  }
  
  .toc-nav h2 {
    font-size: 1.1rem;
  }
  
  .toc-nav a {
    font-size: 0.9rem;
  }
  
  .intro-section {
    padding: 16px;
    margin-bottom: 24px;
  }
  
  .intro-section p {
    font-size: 1rem;
  }
  
  .how-to-section,
  .fees-explained,
  .faq-section,
  .state-tax-guide,
  .money-saving-tips {
    margin-top: 32px;
    padding-top: 24px;
  }
  
  .how-to-section h2,
  .fees-explained h2,
  .faq-section h2,
  .state-tax-guide h2,
  .money-saving-tips h2 {
    font-size: 1.3rem;
  }
  
  .how-to-section h3,
  .fees-explained h3,
  .faq-section h3,
  .state-tax-guide h3,
  .money-saving-tips h3 {
    font-size: 1.1rem;
  }
}/* Fo
oter Styles */
.footer {
  background-color: #1f2937;
  color: #e5e7eb;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  padding: 48px 0 32px 0;
}

.footer-section h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-section p {
  line-height: 1.6;
  margin-bottom: 12px;
  color: #d1d5db;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section ul li a:hover {
  color: #60a5fa;
}

.footer-section ul li a[onclick="return false;"] {
  color: #9ca3af;
  cursor: default;
}

.footer-section ul li a[onclick="return false;"]:hover {
  color: #9ca3af;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding: 24px 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  margin: 0;
  color: #9ca3af;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #d1d5db;
}

.footer-links a[onclick="return false;"] {
  color: #6b7280;
  cursor: default;
}

.footer-links a[onclick="return false;"]:hover {
  color: #6b7280;
}

/* Footer Mobile Responsive */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0 24px 0;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .footer-links {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .footer-container {
    padding: 0 15px;
  }
  
  .footer-content {
    padding: 24px 0 20px 0;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
}/* New Content Sections */
.state-tax-guide,
.money-saving-tips {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
}

.state-tax-guide h2,
.money-saving-tips h2 {
  font-size: 1.5rem;
  color: #111827;
  margin-bottom: 16px;
  font-weight: 600;
}

.state-tax-guide h3,
.money-saving-tips h3 {
  font-size: 1.2rem;
  color: #2563eb;
  margin: 24px 0 12px 0;
  font-weight: 600;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 8px;
}

.state-tax-guide ul,
.money-saving-tips ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.state-tax-guide li,
.money-saving-tips li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.state-tax-guide p,
.money-saving-tips p {
  margin-bottom: 16px;
  line-height: 1.6;
  color: #374151;
}

/* 
Disclaimer Section */
.disclaimer-section {
  margin-top: 40px;
  padding: 20px;
  background-color: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  border-left: 4px solid #f59e0b;
}

.disclaimer-section p {
  margin: 0;
  color: #92400e;
  font-size: 0.9rem;
  line-height: 1.5;
}

.disclaimer-section strong {
  color: #78350f;
}

/* Performance Optimizations */
.container {
  contain: layout style paint;
}

/* Improved form focus states */
.form-group input:focus,
.form-group select:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Better button accessibility */
.calculate-btn:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Loading state for results */
#result.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Print styles */
@media print {
  .footer,
  .calculate-btn {
    display: none;
  }
  
  .container {
    box-shadow: none;
    max-width: none;
  }
  
  #result {
    border: 1px solid #000;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .form-group input,
  .form-group select {
    border-width: 2px;
  }
  
  .calculate-btn {
    border: 2px solid #ffffff;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}