html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Custom styles for Big Beautiful Bill Calculator */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
}

.card-hover {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.tax-savings {
    color: #28a745 !important;
    font-weight: bold;
}

.tax-increase {
    color: #dc3545 !important;
    font-weight: bold;
}

.help-icon {
    color: #6c757d;
    margin-left: 5px;
    cursor: help;
}

.audience-card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.audience-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.audience-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 0;
    margin-top: 5rem;
}

/* Form styling */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Results page styling */
.results-summary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.calculation-breakdown {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.benefits-list {
    background: linear-gradient(135deg, #17a2b8 0%, #6610f2 100%);
    color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .audience-icon {
        font-size: 2rem;
    }
}

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

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Animation for counting numbers */
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.count-animation {
    animation: countUp 0.5s ease-out;
}

/* Tooltip styling */
.tooltip {
    font-size: 0.875rem;
}

/* Google Ads Styling */
.ad-container {
    margin: 2rem 0;
    text-align: center;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    position: relative;
}

.ad-label {
    position: absolute;
    top: 0.25rem;
    left: 0.5rem;
    font-size: 0.75rem;
    color: #6c757d;
    background-color: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.ad-container.banner {
    max-width: 728px;
    margin: 2rem auto;
}

.ad-container.square {
    max-width: 300px;
    margin: 2rem auto;
}

.ad-container.sidebar {
    max-width: 160px;
    margin: 1rem auto;
}

.ad-container.mobile {
    max-width: 320px;
    margin: 1rem auto;
}

.ad-fallback {
    padding: 2rem;
    background-color: #e9ecef;
    border-radius: 0.375rem;
    color: #6c757d;
    font-style: italic;
}

.ad-fallback p {
    margin: 0;
}

/* Responsive ad adjustments */
@media (max-width: 768px) {
    .ad-container.banner {
        max-width: 320px;
    }
    
    .ad-container.square {
        max-width: 280px;
    }
}

/* Print styles */
@media print {
    .no-print, .ad-container {
        display: none !important;
    }
    
    .hero-section {
        background: #333 !important;
        -webkit-print-color-adjust: exact;
    }
}