:root {
    --primary-color: #1d6b92;
    --primary-dark: #165c7e;
    --primary-light: #2587b8;
    --grey-light: #f5f5f5;
    --grey: #666666;
    --white: #ffffff;
}

/* Remove any existing header styles from contact.css */
/* Only keep contact page specific styles */

body {
    padding-top: 45px; /* Match header height from index.css */
}

.contact-page {
    padding: 2rem 1rem;
    background: var(--white);
    padding-top: 2rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-header p {
    color: var(--grey);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: var(--grey-light);
    padding: 2rem;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.contact-details h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-details p {
    color: var(--grey);
    line-height: 1.6;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.emergency-banner {
    background: #ff4444;
    color: var(--white);
    text-align: center;
    padding: 1rem;
    margin-top: 3rem;
    border-radius: 10px;
}

.emergency-banner h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.emergency-banner p {
    font-size: 2rem;
    font-weight: bold;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--grey);
    font-size: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

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

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

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

.submit-button {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background: var(--primary-dark);
}

.success-message {
    display: none;
    text-align: center;
    color: #4CAF50;
    background: #E8F5E9;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 16px;
    border: 1px solid #A5D6A7;
    animation: slideIn 0.3s ease-out;
}

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

.quick-contact {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.quick-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.quick-contact-item a {
    color: var(--grey);
    text-decoration: none;
    transition: color 0.3s;
}

.quick-contact-item a:hover {
    color: var(--primary-color);
}

.location-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.location-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.location-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.location-header i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.location-header h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.location-card p {
    color: var(--grey);
    line-height: 1.6;
}

.loader-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--primary-color);
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: rotation 1s linear infinite;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CAPTCHA Styles */
.captcha-container {
    margin: 1.5rem 0;
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

#captchaCanvas {
    background: #f8f9fa;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.refresh-captcha {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.refresh-captcha:hover {
    transform: rotate(180deg);
}

#captchaInput {
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }

    .quick-contact {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .location-cards {
        grid-template-columns: 1fr;
    }

    body {
        padding-top: 60px; /* Adjust for mobile header height */
    }
}