/* Large Devices (Desktops) */
@media (max-width: 1200px) {
    .container-fluid {
        padding: 0.6rem;
    }
    
    .image-section {
        height: 350px;
    }
}

/* Medium Devices (Tablets) */
@media (max-width: 992px) {
    .image-section {
        height: 300px;
    }
    
    .form-card, .info-card {
        padding: 1.2rem;
    }
    
    .main-title {
        font-size: 1.3rem;
    }
}

/* Small Devices (Small Tablets) */
@media (max-width: 768px) {
    .header-section {
        margin-bottom: 1rem;
    }
    
    .main-title {
        font-size: 1.3rem;
        padding: 0.5rem;
    }
    
    .image-section {
        height: 270px;
        margin-bottom: 1.2rem;
    }
    
    .form-card {
        padding: 1rem;
    }
    
    .form-title {
        font-size: 1.1rem;
    }
    
    #infoPortal, #reportForm {
        margin-bottom: 1.1rem;
    }
    
    .info-card, .form-card {
        height: auto;
    }
    
    .col-md-7, .col-md-5 {
        padding: 0 0.8rem;
    }
    
    .loading-circles {
        width: 80px;
        height: 80px;
    }
    
    .circle-outer {
        width: 80px;
        height: 80px;
    }
    
    .circle-middle {
        width: 56px;
        height: 56px;
        top: 12px;
        left: 12px;
    }
    
    .circle-inner {
        width: 32px;
        height: 32px;
        top: 24px;
        left: 24px;
    }
}

/* Extra Small Devices (Mobile Phones) */
@media (max-width: 576px) {
    .container-fluid {
        padding: 0.5rem;
    }
    
    .header-section {
        margin-bottom: 0.8rem;
    }
    
    .main-title {
        font-size: 1.2rem;  /* Adjust font size for small screens */
        padding: 0.6rem;  /* Reduce padding */
    }
    
    .image-section {
        height: 250px;
        margin-bottom: 1rem;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    .form-title {
        font-size: 1.1rem;
        padding: 0.4rem;
    }
    
    .info-card ol {
        padding-left: 1rem;
    }
    
    .note-section {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
    
    .btn-primary {
        width: 100%;
        margin-top: 1rem;
    }
}

/* Very Small Devices */
@media (max-width: 400px) {
    .image-section {
        height: 200px;
    }
    
    .main-title {
        font-size: 1.1rem;
    }
    
    .form-card, .info-card {
        padding: 0.8rem;
    }
    
    .form-label, .form-control, .form-select {
        font-size: 0.85rem;
    }
}

/* Landscape Mode Specific */
@media (max-height: 576px) and (orientation: landscape) {
    .image-section {
        height: 220px;
    }
    
    .form-card {
        padding: 0.8rem;
    }
    
    .main-title {
        font-size: 1.2rem;
    }
    
    .modal-dialog {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .image-container img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .image-section, .preloader, .btn-primary {
        display: none;
    }
    
    .form-card, .info-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .main-title {
        background: none;
        color: #000;
        box-shadow: none;
    }
}