/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #01411C 0%, #0A5C2C 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    height: 24px;
    position: relative;
}

.hamburger-icon span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translateY(11px);
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translateY(-11px);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav a:hover, nav a.active {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #01411C 0%, #0A5C2C 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Filters */
.filters {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.filter-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-submit {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #01411C 0%, #0A5C2C 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(1, 65, 28, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-submit {
    background: #28a745;
    color: white;
    width: 100%;
}

.btn-submit:hover {
    background: #218838;
}

/* Doctor Cards */
.doctors-list {
    padding: 3rem 0;
}

.doctors-list h3 {
    margin-bottom: 2rem;
    color: #333;
    font-size: 1.8rem;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.doctor-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.doctor-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.doctor-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview {
    margin-top: 1rem;
}

.image-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    border: 2px solid #ddd;
}

.doctor-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.doctor-card h4 a {
    color: #333;
    text-decoration: none;
}

.doctor-card h4 a:hover {
    color: #01411C;
}

.specialist {
    color: #01411C;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.city, .timing, .address {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.address {
    font-size: 0.9rem;
    line-height: 1.4;
}

.address-detail {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.6;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #01411C;
}

.city-info {
    color: #666;
    margin-top: 0.5rem;
    font-weight: 500;
}

.contact-buttons {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.btn-call, .btn-whatsapp {
    flex: 1;
    padding: 0.5rem;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-call {
    background: #007bff;
    color: white;
}

.btn-call:hover {
    background: #0056b3;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #1da851;
}

.btn-view {
    display: block;
    text-align: center;
    padding: 0.5rem;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
}

.btn-view:hover {
    background: #e9ecef;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.btn-page, .current-page {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    background: white;
    border: 1px solid #ddd;
}

.current-page {
    background: #01411C;
    color: white;
    border-color: #01411C;
}

.btn-page:hover {
    background: #f8f9fa;
}

/* Forms */
.submit-form {
    padding: 3rem 0;
}

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.form-wrapper h2 {
    margin-bottom: 0.5rem;
    color: #333;
}

.form-wrapper > p {
    color: #666;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #01411C;
    box-shadow: 0 0 0 3px rgba(1, 65, 28, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.875rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-results a {
    color: #01411C;
}

/* Doctor Detail Page */
.doctor-detail {
    padding: 3rem 0;
}

.doctor-page-heading {
    background: linear-gradient(135deg, #01411C 0%, #0A5C2C 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.doctor-page-heading h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.doctor-page-heading h2 {
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.95;
}

.breadcrumb {
    margin-bottom: 2rem;
    color: #666;
}

.breadcrumb a {
    color: #01411C;
    text-decoration: none;
}

.detail-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.doctor-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f8f9fa;
}

.doctor-icon-large {
    font-size: 5rem;
}

.doctor-image-large {
    width: 200px;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    border: 3px solid #f8f9fa;
}

.doctor-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-info h1 {
    margin-bottom: 0.5rem;
    color: #333;
}

.specialist-large {
    font-size: 1.2rem;
    color: #01411C;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.city-large {
    font-size: 1.1rem;
    color: #666;
}

.info-section {
    margin-bottom: 2rem;
}

.info-section h3 {
    margin-bottom: 1rem;
    color: #333;
}

.timing-detail {
    font-size: 1.1rem;
    color: #666;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-large {
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.btn-share {
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-facebook {
    background: #1877f2;
    color: white;
}

.btn-facebook:hover {
    background: #145dbf;
}

.btn-twitter {
    background: #1da1f2;
    color: white;
}

.btn-twitter:hover {
    background: #0c85d0;
}

.btn-whatsapp-share {
    background: #25d366;
    color: white;
}

.btn-whatsapp-share:hover {
    background: #1da851;
}

.btn-email {
    background: #ea4335;
    color: white;
}

.btn-email:hover {
    background: #c23321;
}

.back-link {
    margin-top: 2rem;
}

.btn-back {
    color: #01411C;
    text-decoration: none;
    font-weight: 600;
}

/* Correction Section */
.correction-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #fff3cd;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    text-align: center;
}

.btn-correction {
    background: #ff9800;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(255, 152, 0, 0.3);
}

.btn-correction:hover {
    background: #f57c00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
}

.correction-note {
    margin-top: 0.5rem;
    color: #856404;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    position: relative;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 10;
}

.close-modal:hover {
    color: #000;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.3s;
}

.checkbox-group label:hover {
    background: #f8f9fa;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    min-width: 20px;
    min-height: 20px;
    cursor: pointer;
}

.correction-field {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.correction-field h4 {
    margin-bottom: 1rem;
    color: #333;
}

.success-page {
    text-align: center;
    padding: 3rem 1rem;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Mobile-specific modal styles */
@media (max-width: 768px) {
    .modal-content {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        margin: 0;
        border-radius: 0;
        padding: 1rem;
        padding-top: 3rem;
    }
    
    .close-modal {
        font-size: 2.5rem;
        right: 1rem;
        top: 0.5rem;
        background: white;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }
    
    .correction-field {
        padding: 1rem;
    }
    
    .correction-field h4 {
        font-size: 1.1rem;
    }
    
    .checkbox-group label {
        font-size: 0.95rem;
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 0.75rem;
        padding-top: 3rem;
    }
    
    .correction-field {
        padding: 0.75rem;
    }
}

/* Related Doctors Section */
.related-doctors-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 3px solid #f0f0f0;
}

.related-header {
    text-align: center;
    margin-bottom: 3rem;
}

.related-header h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.related-subtitle {
    color: #666;
    font-size: 1.1rem;
}

/* Related badges on cards */
.related-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.5rem 0;
    text-align: center;
}

.badge-best {
    background: linear-gradient(135deg, #01411C 0%, #0A5C2C 100%);
    color: white;
}

.badge-specialist {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #90caf9;
}

.badge-city {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #ce93d8;
}

/* View More Section */
.view-more-section {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.btn-view-more {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #01411C 0%, #0A5C2C 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(1, 65, 28, 0.3);
}

.btn-view-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(1, 65, 28, 0.4);
}

/* Error Page */
.error-page {
    padding: 5rem 0;
    text-align: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: 6rem;
    color: #01411C;
    margin-bottom: 1rem;
}

.error-content h2 {
    margin-bottom: 1rem;
    color: #333;
}

.error-content p {
    color: #666;
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Page Content Styles */
.page-content {
    padding: 3rem 0;
    min-height: 60vh;
}

.content-wrapper {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    max-width: 1000px;
    margin: 0 auto;
}

.content-wrapper h1 {
    color: #01411C;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.content-wrapper h2 {
    color: #333;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.content-wrapper h3 {
    color: #555;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.content-wrapper p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #555;
}

.content-wrapper ul, .content-wrapper ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-wrapper a {
    color: #01411C;
    text-decoration: none;
}

.content-wrapper a:hover {
    text-decoration: underline;
}

.last-updated {
    color: #666;
    font-style: italic;
    margin-bottom: 2rem;
}

.policy-section {
    margin-bottom: 2.5rem;
}

.about-section {
    margin-bottom: 2.5rem;
}

.cta-section {
    background: linear-gradient(135deg, #01411C 0%, #0A5C2C 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
}

.cta-section h3 {
    color: white;
    margin-top: 0;
}

.disclaimer-notice {
    background: #fff3cd;
    border: 2px solid #ffc107;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.emergency-warning {
    background: #f8d7da;
    border: 2px solid #dc3545;
    padding: 1.5rem;
    border-radius: 8px;
    color: #721c24;
}

.disclaimer-footer {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 8px;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h3 {
    color: #01411C;
    margin-bottom: 0.5rem;
}

.contact-item ul {
    margin-left: 1.5rem;
}

.contact-form-section {
    background: white;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Mobile Navigation */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, #01411C 0%, #0A5C2C 100%);
        box-shadow: -2px 0 10px rgba(0,0,0,0.3);
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        padding-top: 80px;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }
    
    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    nav ul li:last-child {
        border-bottom: none;
    }
    
    nav ul li a {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        transition: background 0.3s, padding-left 0.3s;
    }
    
    nav ul li a:hover,
    nav ul li a.active {
        background: rgba(255,255,255,0.1);
        padding-left: 2rem;
        border-bottom: none;
    }
    
    /* Menu overlay */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 998;
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    header .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 0.75rem;
        background: rgba(255,255,255,0.1);
        border-radius: 6px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
        padding: 0 1rem;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .search-form {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .search-form select,
    .search-form button {
        width: 100%;
    }
    
    .doctor-page-heading {
        padding: 2rem 1rem;
    }
    
    .doctor-page-heading h1 {
        font-size: 1.5rem;
    }
    
    .doctor-page-heading h2 {
        font-size: 1rem;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .doctors-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .doctor-card {
        padding: 1.5rem;
    }
    
    .doctor-detail-wrapper {
        padding: 0 1rem;
    }
    
    .doctor-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .doctor-icon {
        font-size: 4rem;
        margin-bottom: 1rem;
    }
    
    .doctor-image img {
        max-width: 200px;
        margin: 0 auto 1rem;
    }
    
    .contact-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .contact-buttons a {
        width: 100%;
        justify-content: center;
    }
    
    .share-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-share {
        width: 100%;
        justify-content: center;
    }
    
    .view-more-section {
        flex-direction: column;
        padding: 0 1rem;
    }
    
    .btn-view-more {
        width: 100%;
        text-align: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .contact-info,
    .contact-form-section {
        padding: 1.5rem;
    }
    
    .content-wrapper {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .content-wrapper h1 {
        font-size: 1.8rem;
    }
    
    .content-wrapper h2 {
        font-size: 1.4rem;
    }
    
    .content-wrapper h3 {
        font-size: 1.2rem;
    }
    
    .policy-section,
    .about-section {
        margin-bottom: 2rem;
    }
    
    .form-wrapper {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .image-preview {
        max-width: 100%;
    }
    
    /* Modal full-screen on mobile */
    .modal {
        align-items: flex-start;
    }
    
    .modal-content {
        width: 100%;
        height: 100vh;
        max-width: 100%;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
        padding: 1rem;
        padding-top: 3.5rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-content h2 {
        font-size: 1.3rem;
        margin-top: 0;
        padding-right: 2rem;
    }
    
    .close-modal {
        position: fixed;
        top: 0.75rem;
        right: 0.75rem;
        font-size: 2.5rem;
        background: white;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
        z-index: 10000;
        line-height: 1;
        padding: 0;
    }
    
    .correction-field {
        padding: 1rem;
        margin: 0.75rem 0;
    }
    
    .correction-field h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .checkbox-group {
        font-size: 0.95rem;
    }
    
    .checkbox-group label {
        padding: 0.75rem 0.5rem;
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        margin-bottom: 0.5rem;
    }
    
    .checkbox-group input[type="checkbox"] {
        min-width: 20px;
        min-height: 20px;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }
    
    .btn-submit {
        padding: 1rem;
        font-size: 1rem;
        margin-top: 1rem;
    }
    
    .success-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .success-actions a {
        width: 100%;
        text-align: center;
    }
    
    .message-actions,
    .request-actions {
        flex-direction: column;
    }
    
    .btn-action {
        width: 100%;
        justify-content: center;
    }
    
    .correction-compare {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .arrow {
        transform: rotate(90deg);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    table {
        font-size: 0.85rem;
    }
    
    footer {
        padding: 1.5rem 0;
        font-size: 0.9rem;
    }
    
    footer p {
        padding: 0 1rem;
        line-height: 1.8;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
        padding: 0 1rem;
    }
    
    .pagination a,
    .pagination span {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .error-actions {
        flex-direction: column;
        padding: 0 1rem;
    }
    
    .error-actions a {
        width: 100%;
        text-align: center;
    }
}

/* Extra small devices (phones in portrait, less than 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .doctor-card {
        padding: 1rem;
    }
    
    .doctor-card h3 {
        font-size: 1.1rem;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-submit {
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
    }
    
    .content-wrapper {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .content-wrapper h1 {
        font-size: 1.5rem;
    }
    
    .form-wrapper {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    /* Modal adjustments for very small screens */
    .modal-content {
        padding: 0.75rem;
        padding-top: 3.5rem;
    }
    
    .modal-content h2 {
        font-size: 1.2rem;
    }
    
    .close-modal {
        width: 40px;
        height: 40px;
        font-size: 2rem;
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .correction-field {
        padding: 0.75rem;
        margin: 0.5rem 0;
    }
    
    .correction-field h4 {
        font-size: 1rem;
    }
    
    .checkbox-group label {
        padding: 0.6rem 0.4rem;
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px;
        padding: 0.6rem;
    }
}
