/* ===== GENERAL STYLES ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: rgb(5, 229, 236);
    font-family: 'Poppins', Arial, sans-serif;
    color: #000000;
    overflow-x: hidden;
    width: 100%;
}

.main-content {
    padding: 20px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* ===== CONTACT HERO SECTION ===== */
.contact-hero {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    border-radius: 10px;
}

.contact-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    background: #cce9f8;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.content-section h2 {
    text-align: center;
    color: #1E88E5;
    margin-bottom: 2rem;
    font-size: 2.2rem;
}

/* ===== CONTACT CONTAINER ===== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* ===== CONTACT FORM ===== */
.contact-form-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1E88E5;
    box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== CONTACT DETAILS ===== */
.contact-details-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    font-size: 1.5rem;
    color: #1E88E5;
    margin-right: 1rem;
    margin-top: 0.25rem;
    min-width: 24px;
}

.contact-text h4 {
    color: #1E88E5;
    margin-bottom: 0.5rem;
}

.contact-text p {
    color: #666;
    line-height: 1.5;
}

.contact-text a {
    color: #1E88E5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: #1565C0;
    text-decoration: underline;
}

/* ===== BUSINESS HOURS ===== */
.business-hours {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.business-hours h3 {
    color: #1E88E5;
    margin-bottom: 1rem;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hour-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.hour-item:last-child {
    border-bottom: none;
}

/* ===== EMERGENCY CONTACT ===== */
.emergency-contact {
    background: #fff3cd;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.emergency-contact h3 {
    color: #856404;
    margin-bottom: 1rem;
}

.emergency-contact p {
    color: #856404;
    margin-bottom: 1rem;
}

.emergency-link {
    display: inline-flex;
    align-items: center;
    color: #856404;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.emergency-link i {
    margin-right: 0.5rem;
}

.emergency-link:hover {
    color: #664d03;
}

/* ===== MAP SECTION ===== */
.map-section {
    padding: 3rem 2rem;
}

.map-container {
    margin-top: 2rem;
}

.map-placeholder {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-placeholder img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 1.5rem;
}

.map-overlay h4 {
    margin-bottom: 0.5rem;
    color: white;
}

.map-overlay p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* ===== DEPARTMENTS SECTION ===== */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.department-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.department-card:hover {
    transform: translateY(-5px);
}

.department-card h4 {
    color: #1E88E5;
    margin-bottom: 1rem;
}

.department-card p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.department-card a {
    color: #1E88E5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.department-card a:hover {
    color: #1565C0;
    text-decoration: underline;
}

/* ===== SOCIAL SECTION ===== */
.social-links-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

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

.social-link i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Social Media Brand Colors */
.social-link.facebook { color: #1877F2; }
.social-link.twitter { color: #1DA1F2; }
.social-link.instagram { color: #E4405F; }
.social-link.tiktok { color: #000000; }
.social-link.linkedin { color: #0A66C2; }
.social-link.youtube { color: #FF0000; }

.social-link:hover {
    background: #f8f9fa;
}

/* ===== BUTTON STYLES ===== */
.cta-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.cta-btn.primary {
    background-color: #1E88E5;
    color: white;
}

.cta-btn.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.cta-btn.full-width {
    width: 100%;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(30, 136, 229, 0.3);
}

.cta-btn.primary:hover {
    background-color: #1976D2;
}

.cta-btn.secondary:hover {
    background-color: white;
    color: #1E88E5;
}

/* ===== FORM VALIDATION STYLES ===== */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    display: none;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .contact-container {
        gap: 2rem;
    }
    
    .departments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 3rem 1rem;
    }
    
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-hero p {
        font-size: 1rem;
    }
    
    .content-section {
        padding: 2rem 1rem;
    }
    
    .content-section h2 {
        font-size: 1.8rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-section,
    .contact-details-section {
        padding: 1.5rem;
    }
    
    .departments-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .social-links-large {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .map-placeholder img {
        height: 300px;
    }
    
    .map-overlay {
        padding: 1rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .hour-item {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 2rem 1rem;
    }
    
    .contact-hero h1 {
        font-size: 1.8rem;
    }
    
    .content-section {
        padding: 1.5rem 1rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .contact-form-section,
    .contact-details-section {
        padding: 1rem;
    }
    
    .social-links-large {
        grid-template-columns: 1fr;
    }
    
    .social-link {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.625rem;
    }
    
    .cta-btn {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
    }
    
    .map-placeholder img {
        height: 250px;
    }
    
    .business-hours,
    .emergency-contact {
        padding: 1rem;
    }
    
    .department-card {
        padding: 1rem;
    }
}

/* ===== LOADING AND INTERACTION STATES ===== */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1E88E5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .cta-btn,
    .social-link,
    .department-card {
        transition: none;
    }
    
    .loading::after {
        animation: none;
    }
}

/* Focus styles for better accessibility */
.cta-btn:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.social-link:focus {
    outline: 2px solid #1E88E5;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .contact-hero {
        background: #000;
        color: #fff;
    }
    
    .content-section {
        background: #fff;
        border: 2px solid #000;
    }
    
    .contact-form-section,
    .contact-details-section,
    .department-card,
    .social-link {
        border: 1px solid #000;
    }
}