/* Base Responsive Styles */
body { 
    font-family: 'Segoe UI', Arial, sans-serif; 
    padding: 20px; 
    background: #f7f7f7; 
    color: #222;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Prevent automatic zoom on iOS */
input, select, textarea {
    font-size: 16px !important;
}

/* Touch-friendly tap targets */
a, button, .btn {
    min-height: 44px;
    min-width: 44px;
}

/* Packages grid */
.packages { 
    display: flex; 
    gap: 12px; 
    flex-wrap: wrap; 
}

.package { 
    background: #fff; 
    padding: 12px; 
    border-radius: 6px; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.08); 
    width: 220px; 
    flex: 1 1 280px;
    max-width: 100%;
}

a { 
    color: #0b66c3; 
    text-decoration: none;
}

/* Form responsiveness */
.form-control {
    padding: 12px 15px;
    border-radius: 8px;
    border: 2px solid #e1e5e9;
}

.form-control:focus {
    box-shadow: none;
    border-color: #3498db;
}

/* Card responsiveness */
.card {
    border-radius: 12px;
    overflow: hidden;
}

/* Responsive containers */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

/* Mobile-first responsive adjustments */
@media (max-width: 576px) {
    body {
        padding: 10px;
    }
    
    .package {
        width: 100%;
        flex-basis: 100%;
    }
    
    h1 {
        font-size: 1.75rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
    
    .display-5 {
        font-size: 1.75rem !important;
    }
    
    .card-body {
        padding: 1rem;
    }
}

@media (max-width: 375px) {
    body {
        padding: 8px;
    }
    
    h1 {
        font-size: 1.5rem !important;
    }
    
    .btn-lg {
        padding: 0.6rem 1.2rem;
    }
}

/* Landscape mobile */
@media (max-width: 667px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
}

/* Large tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    .package {
        flex: 1 1 300px;
    }
}

/* iPad and tablets */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Prevent horizontal scroll on mobile */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Image responsiveness */
img {
    max-width: 100%;
    height: auto;
}

/* Table responsiveness */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Modal responsiveness */
.modal-dialog {
    margin: 10px;
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
        margin: 30px auto;
    }
}

@media (min-width: 768px) {
    .modal-dialog {
        max-width: 600px;
    }
}

/* Navbar responsive */
.navbar-toggler {
    padding: 8px 12px;
}

/* Dropdown menu responsiveness */
.dropdown-menu {
    position: absolute;
    right: 0;
    left: auto;
}

/* Alert responsiveness */
.alert {
    border-radius: 8px;
    padding: 1rem;
}

/* Pagination responsiveness */
.page-link {
    padding: 0.5rem 0.75rem;
}

/* Badge responsiveness */
.badge {
    padding: 0.35em 0.65em;
    font-size: 0.75rem;
}
