/* Mobile Styles (up to 480px) */
@media screen and (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    header .container {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .logo {
        align-items: center;
    }
    
    .hero {
        padding: 2.5rem 0;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .data-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .map-container {
        order: 1;
    }
    
    .stats-container {
        order: 2;
    }
    
    #map {
        height: 300px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .radio-group {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .map-filters {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-btn {
        margin-bottom: 0.5rem;
    }
    
    .form-container {
        padding: 1rem;
    }
    
    .optional-email .form-group {
        flex-direction: column;
    }
    
    .optional-email button {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .cta-section {
        padding: 2rem 0;
    }
    
    .view-toggle-control {
        margin: 5px;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .india-map-container {
        width: 90%;
        margin: 0 auto;
    }
    
    .map-text {
        font-size: 1.8rem;
    }
    
    .map-tagline {
        font-size: 1.2rem;
    }
    
    .report-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-row.two-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .report-grid .form-container {
        order: 1;
        padding: 0.8rem;
    }
    
    .report-grid .map-container {
        order: 2;
    }
    
    .report-grid #location-map {
        height: 200px;
    }
    
    .upload-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-container.compact {
        padding: 1rem;
    }
}

/* Tablet Styles (481px to 768px) */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .data-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .map-container {
        order: 1;
    }
    
    .stats-container {
        order: 2;
    }
    
    #map {
        height: 350px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .radio-group {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .india-map-container {
        width: 70%;
        margin: 0 auto;
    }
    
    .report-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .report-grid .form-container {
        order: 1;
    }
    
    .report-grid .map-container {
        order: 2;
    }
    
    .report-grid #location-map {
        height: 250px;
    }
    
    .form-container.compact {
        padding: 1.2rem;
    }
}

/* Larger Tablets and Small Desktops (769px to 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .container {
        width: 90%;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .data-grid {
        gap: 1.5rem;
    }
    
    #map {
        height: 400px;
    }
    
    .form-container {
        padding: 2rem;
    }
}

/* Large Desktops (1025px and up) */
@media screen and (min-width: 1025px) {
    .container {
        width: 85%;
        max-width: 1200px;
    }
    
    .hero-content h2 {
        font-size: 2.8rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    #map {
        height: 500px;
    }
    
    .form-container {
        max-width: 800px;
        margin: 0 auto;
    }
}

/* Fix for the stats section on all devices */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Fix for the CTA section that was missing in the style.css */
.cta-section {
    background-color: var(--primary-light);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.cta-section .btn {
    background-color: white;
    color: var(--primary-dark);
}

.cta-section .btn:hover {
    background-color: var(--primary-dark);
    color: white;
}

/* Form container styling */
.form-container {
    background-color: var(--background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

/* Mobile navigation styles */
@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .btn-report {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
} 