/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: #1a1a1a;
  background: #f5f7fa;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 40px;
  padding: 32px 0;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

header p {
  font-size: 1.15rem;
  color: #4a5568;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

/* Content sections */
.intro-content {
  margin-bottom: 40px;
  font-size: 1.1rem;
  line-height: 1.8;
  background: #ffffff;
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.intro-content p {
  margin-bottom: 18px;
}

.intro-content p:last-child {
  margin-bottom: 0;
}

.content-section {
  margin: 48px 0;
  background: #ffffff;
  padding: 32px 28px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.content-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  line-height: 1.3;
  margin-top: 0;
}

.content-section p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.content-section ul,
.content-section ol {
  margin: 16px 0 16px 24px;
  line-height: 1.7;
}

.content-section li {
  margin-bottom: 12px;
}

.content-section .note {
  font-size: 0.95rem;
  color: #666;
  font-style: italic;
  margin-top: 12px;
}

.content-section a {
  color: #0066cc;
  text-decoration: underline;
}

.content-section a:hover {
  color: #0052a3;
}

/* Calculator Container */
.calculator-container {
  margin-bottom: 40px;
}

/* Form styles */
#permit-form,
.calculator-form {
  background: #ffffff;
  padding: 32px;
  border-radius: 16px;
  margin-bottom: 32px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  border: 1px solid #e2e8f0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group--vrm .vrm-controls {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.form-group--vrm input {
  flex: 1 1 auto;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group--vrm button {
  flex: 0 0 200px;
}

@media (max-width: 600px) {
  .form-group--vrm .vrm-controls {
    flex-direction: column;
  }

  .form-group--vrm button {
    width: 100%;
  }
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2d3748;
  font-size: 0.95rem;
}

input, select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.2s ease;
  background: #ffffff;
  color: #1a1a1a;
}

input:hover, select:hover {
  border-color: #cbd5e0;
}

button {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.2s ease;
  cursor: pointer;
  font-weight: 600;
}

.field-help {
  font-size: 14px;
  color: #6c757d;
  margin-top: 8px;
}

.vrm-status {
  min-height: 40px;
  margin-top: 12px;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  background: #f8f9fa;
  border: 1px solid transparent;
  color: #4a5568;
}

.vrm-status.hidden {
  display: none;
}

.vrm-status.success {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #166534;
}

.vrm-status.error {
  background: #fdf2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

input:focus, select:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.12);
}

input:focus-visible, select:focus-visible, button:focus-visible {
  outline: 2px solid #3182ce;
  outline-offset: 2px;
}

input:invalid:not(:placeholder-shown) {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

#submit-btn,
.submit-button {
  background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%);
  color: white;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 12px;
  box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
  font-size: 1.05rem;
  padding: 16px 24px;
}

#submit-btn:hover:not(:disabled),
.submit-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #2c5aa0 0%, #1e3f6f 100%);
  box-shadow: 0 6px 16px rgba(49, 130, 206, 0.4);
  transform: translateY(-2px);
}

#submit-btn:active:not(:disabled),
.submit-button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

#submit-btn:disabled,
.submit-button:disabled {
  background: #cbd5e0;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

#vrm-button {
  background: #16a34a;
  color: white;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.2);
}

#vrm-button:disabled {
  background: #cbd5e0;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

#vrm-button:not(:disabled):hover {
  background: #15803d;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3);
  transform: translateY(-1px);
}

/* Ad containers - fixed height to prevent CLS */
.ad-container {
  width: 100%;
  margin: 32px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 1px; /* Ensure container has height for AdSense */
}

/* AdSense responsive ads */
.ad-container ins.adsbygoogle {
  display: block;
  width: 100%;
  height: 100%;
}

/* Ad container sizes */
.ad-leaderboard {
  height: 90px;
  max-width: 728px;
  margin: 0 auto 24px;
}

.ad-medium-rectangle {
  height: 250px;
  max-width: 300px;
  margin: 24px auto;
}

.ad-in-content {
  height: 100px;
  max-width: 320px;
  margin: 24px auto;
}

.ad-sidebar {
  display: none; /* Hidden by default, shown on desktop */
}

/* Exit intent overlay */
.exit-intent-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-in;
}

.exit-intent-overlay[hidden] {
  display: none;
}

.exit-intent-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  max-width: 728px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.exit-intent-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  padding: 0;
  z-index: 10001;
}

.exit-intent-close:hover,
.exit-intent-close:focus {
  background: #f0f0f0;
  color: #333;
  outline: 2px solid #3498db;
  outline-offset: 2px;
}

.ad-exit-intent {
  height: 90px;
  max-width: 728px;
  margin: 0 auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Sidebar ads: Show only on wide viewports (≥1200px) to prevent overlap
 * Layout: Main content (720px) + Left sidebar (160px) + Right sidebar (160px) + gaps (40px) = 1080px minimum
 * Using 1200px breakpoint provides safety margin */
@media (min-width: 1200px) {
  main {
    position: relative;
  }
  
  .ad-sidebar {
    display: flex;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    height: 600px;
    margin: 0;
    z-index: 100;
  }
  
  /* Right sidebar: Positioned to the right of content area
   * Calculation: (viewport width - content width) / 2 - (sidebar width + gap)
   * max() ensures minimum 20px spacing from viewport edge */
  .ad-sidebar-right {
    right: max(20px, calc((100vw - 720px) / 2 - 180px));
  }
  
  /* Left sidebar: Positioned to the left of content area
   * Calculation: (viewport width - content width) / 2 - (sidebar width + gap)
   * max() ensures minimum 20px spacing from viewport edge */
  .ad-sidebar-left {
    left: max(20px, calc((100vw - 720px) / 2 - 180px));
  }
}

/* Loading skeleton */
.loading-skeleton {
  background: #fff;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
  min-height: 300px;
}

.skeleton-header {
  height: 24px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 16px;
  max-width: 60%;
}

.skeleton-content {
  height: 16px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 12px;
}

.skeleton-content:last-child {
  max-width: 80%;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Results */
.results {
  background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
  border: 2px solid #3182ce;
  border-radius: 16px;
  padding: 32px;
  margin: 40px 0;
  box-shadow: 0 8px 24px rgba(49, 130, 206, 0.15);
  min-height: 400px; /* Prevent CLS */
  animation: fadeInUp 0.4s ease-out;
}

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

.results-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e2e8f0;
}

.results h2 {
  color: #1a202c;
  margin-bottom: 8px;
  font-size: 1.75rem;
  font-weight: 700;
}

.council-name {
  font-size: 1.1rem;
  color: #4a5568;
  font-weight: 500;
}

.cost-display {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
  padding: 24px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.cost-amount {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.cost-period {
  font-size: 1.3rem;
  color: #718096;
  font-weight: 500;
}

.cost-display.cost-low .cost-amount {
  color: #27ae60;
}

.cost-display.cost-medium .cost-amount {
  color: #f39c12;
}

.cost-display.cost-high .cost-amount {
  color: #e74c3c;
}

.band-info {
  background: #f7fafc;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid #e2e8f0;
}

.band-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.band-label {
  background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(49, 130, 206, 0.2);
}

.co2-value {
  color: #666;
  font-size: 0.9rem;
}

.fuel-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #555;
}

.cta-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.apply-link {
  display: inline-block;
  background: #e74c3c;
  color: white;
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(231, 76, 60, 0.2);
}

.apply-link:hover {
  background: #c0392b;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.apply-link:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(231, 76, 60, 0.2);
}

.apply-link:focus-visible {
  outline: 2px solid #e74c3c;
  outline-offset: 2px;
}

.council-link {
  display: inline-block;
  background: #3498db;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

.council-link:hover {
  background: #2980b9;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.council-link:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

.council-link:focus-visible {
  outline: 2px solid #3498db;
  outline-offset: 2px;
}

.breakdown-section {
  margin: 24px 0;
}

.breakdown-toggle {
  cursor: pointer;
  font-weight: 600;
  color: #3498db;
  padding: 12px 0;
  display: block;
}

.breakdown-content {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  margin-top: 12px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e1e5e9;
  flex-wrap: wrap;
  gap: 8px;
}

.breakdown-item:last-child {
  border-bottom: none;
}

.breakdown-note {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
}

.sources {
  margin-top: 16px;
}

.sources summary {
  cursor: pointer;
  font-weight: 600;
  color: #3498db;
  padding: 8px 0;
}

.sources details[open] summary {
  margin-bottom: 12px;
}

.source-info {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.error {
  background: #fdf2f2;
  border: 2px solid #fecaca;
  color: #dc2626;
  padding: 20px;
  border-radius: 8px;
  margin: 16px 0;
}

.error-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.error-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.error-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #991b1b;
}

.error-message {
  margin: 12px 0;
  line-height: 1.6;
  color: #7f1d1d;
}

.error-suggestions {
  margin-top: 16px;
  padding-left: 24px;
  list-style: disc;
}

.error-suggestions li {
  margin: 8px 0;
  color: #7f1d1d;
  line-height: 1.5;
}

.error-postcode-not-found {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #92400e;
}

.error-postcode-not-found .error-title {
  color: #78350f;
}

.error-postcode-not-found .error-message,
.error-postcode-not-found .error-suggestions li {
  color: #92400e;
}

.error-council-not-supported {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
}

.error-council-not-supported .error-title {
  color: #1e3a8a;
}

.error-council-not-supported .error-message,
.error-council-not-supported .error-suggestions li {
  color: #1e40af;
}

.error-suggestion {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #b91c1c;
}

.evidence-snippet {
  font-style: italic;
  color: #555;
  margin-top: 8px;
}

/* Engagement actions */
.result-actions {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e1e5e9;
}

.engagement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.action-btn {
  flex: 1 1 auto;
  min-width: 120px;
  padding: 10px 16px;
  background: #f8f9fa;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.action-btn:hover {
  background: #e9ecef;
  border-color: #3498db;
  color: #3498db;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.action-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.action-btn:focus-visible {
  outline: 2px solid #3498db;
  outline-offset: 2px;
}

/* Duration comparison modal */
.duration-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 24px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content h3 {
  margin-bottom: 20px;
  color: #2c3e50;
}

.duration-comparison {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.duration-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px solid transparent;
  gap: 12px;
  flex-wrap: wrap;
}

.duration-option.active {
  border-color: #3498db;
  background: #e3f2fd;
}

.duration-label {
  font-weight: 600;
  min-width: 60px;
}

.duration-cost {
  font-weight: 700;
  font-size: 1.2rem;
  color: #27ae60;
  flex: 1;
}

.duration-badge {
  background: #3498db;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.duration-calc-btn {
  padding: 8px 16px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.duration-calc-btn:hover {
  background: #2980b9;
}

.modal-close {
  width: 100%;
  padding: 12px;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background: #5a6268;
}

/* Footer */
footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid #e1e5e9;
}

footer h3 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.faq details {
  margin-bottom: 16px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e1e5e9;
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
  color: #2c3e50;
  margin-bottom: 8px;
}

.faq p {
  color: #666;
  line-height: 1.6;
}

/* Footer disclaimer section */
.footer-disclaimer {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e1e5e9;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

.footer-disclaimer p {
  margin-bottom: 12px;
}

.footer-disclaimer strong {
  color: #2c3e50;
}

.footer-disclaimer a {
  color: #3498db;
  text-decoration: underline;
}

.footer-disclaimer a:hover {
  color: #2980b9;
}

/* Disclaimer page styles */
.breadcrumb {
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumb a {
  color: #3498db;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span[aria-hidden="true"] {
  margin: 0 8px;
  color: #999;
}

.disclaimer-section {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e1e5e9;
}

.disclaimer-section:last-child {
  border-bottom: none;
}

.disclaimer-section h2 {
  color: #2c3e50;
  font-size: 1.5rem;
  margin-bottom: 16px;
  margin-top: 0;
}

.disclaimer-section h3 {
  color: #2c3e50;
  font-size: 1.2rem;
  margin-bottom: 12px;
  margin-top: 24px;
}

.disclaimer-section p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 16px;
}

.disclaimer-section ul {
  margin-left: 24px;
  margin-bottom: 16px;
  color: #555;
  line-height: 1.7;
}

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

.disclaimer-section strong {
  color: #2c3e50;
  font-weight: 600;
}

.disclaimer-section a {
  color: #3498db;
  text-decoration: underline;
}

.disclaimer-section a:hover {
  color: #2980b9;
}

.disclaimer-section a[target="_blank"]::after {
  content: " ↗";
  font-size: 0.85em;
  opacity: 0.7;
}

.disclaimer-nav {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 2px solid #e1e5e9;
}

.disclaimer-nav .back-link {
  display: inline-block;
  padding: 12px 24px;
  background: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.disclaimer-nav .back-link:hover {
  background: #2980b9;
}

/* Loading state */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Responsive design */
@media (max-width: 768px) {
  body {
    padding: 16px 12px;
    background: #ffffff;
  }
  
  header {
    padding: 24px 0;
    margin-bottom: 32px;
  }
  
  h1 {
    font-size: 1.875rem;
  }
  
  header p {
    font-size: 1rem;
  }
  
  .intro-content,
  .content-section {
    padding: 20px;
    margin: 32px 0;
  }
  
  #permit-form,
  .calculator-form {
    padding: 24px 20px;
  }
  
  .ad-leaderboard {
    height: 50px;
    margin-bottom: 16px;
  }
  
  .ad-medium-rectangle {
    height: 200px;
    max-width: 100%;
  }
  
  .ad-in-content {
    height: 80px;
    max-width: 100%;
  }
  
  .cost-amount {
    font-size: 2.25rem;
  }
  
  .cost-period {
    font-size: 1.1rem;
  }
  
  .results {
    padding: 24px 20px;
  }
  
  .engagement-actions {
    flex-direction: column;
  }
  
  .action-btn {
    width: 100%;
  }
  
  .modal-content {
    padding: 20px;
    margin: 10px;
  }
}

@media (max-width: 480px) {
  .cost-amount {
    font-size: 2rem;
  }
  
  .cost-display {
    padding: 20px;
  }
  
  .band-badge {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cta-section {
    gap: 12px;
  }
  
  .apply-link,
  .council-link {
    padding: 14px 20px;
    font-size: 0.95rem;
  }
  
  .intro-content,
  .content-section {
    padding: 18px;
  }
}

/* Accessibility: Reduced motion support */

/* High contrast mode support */
@media (prefers-contrast: high) {
  input, select, button {
    border-width: 3px;
  }
}

/* Performance: Optimize animations for reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Performance: Contain layout shifts for ad containers */
.ad-container {
  contain: layout style;
  will-change: contents;
}

/* Breadcrumb navigation */
.breadcrumb {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e1e5e9;
}

.breadcrumb a {
  color: #0066cc;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span[aria-hidden="true"] {
  margin: 0 8px;
  color: #999;
}

/* Pricing tables */
.pricing-table-container {
  margin: 24px 0;
  overflow-x: auto;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

.pricing-table thead {
  background: #f8f9fa;
}

.pricing-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: #1a1a1a;
  border-bottom: 2px solid #e1e5e9;
}

.pricing-table td {
  padding: 16px;
  border-bottom: 1px solid #e1e5e9;
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-table tbody tr:hover {
  background: #f8f9fa;
}

.pricing-table .zone-description {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

.pricing-table .zone-description:hover {
  background: transparent;
}

.surcharges-info {
  margin-top: 24px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.surcharges-info h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.surcharges-info ul {
  margin: 0;
  padding-left: 24px;
}

.surcharges-info li {
  margin-bottom: 8px;
}

/* Council grid for index pages */
.council-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.council-grid a {
  display: block;
  padding: 12px 16px;
  background: #f8f9fa;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  text-decoration: none;
  color: #0066cc;
  font-weight: 500;
  transition: all 0.2s ease;
}

.council-grid a:hover {
  background: #e9ecef;
  border-color: #0066cc;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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