/* style/contact.css */
:root {
    --primary-color: #003366;
    --secondary-color: #FFCC00;
    --text-dark: #333333;
    --text-light: #f0f0f0;
    --background-light: #ffffff;
    --background-dark: #002244;
    --border-color: #e0e0e0;
}

.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #f8f8f8;
}

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

/* Hero Section */
.page-contact-hero {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
    padding: 0 20px;
}

.page-contact-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-contact-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.7);
    z-index: 2;
}

.page-contact-hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.page-contact-hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact-hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-contact-cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-contact-cta-button:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
}

/* General Section Styling */
.page-contact-methods, .page-contact-form-section, .page-contact-faq-section, .page-contact-cta-bottom {
    padding: 60px 0;
    background-color: var(--background-light);
    border-bottom: 1px solid var(--border-color);
}

.page-contact-methods h2, .page-contact-form-section h2, .page-contact-faq-section h2, .page-contact-cta-bottom h2 {
    text-align: center;
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.page-contact-methods p, .page-contact-form-section p, .page-contact-faq-section p, .page-contact-cta-bottom p {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 40px;
    color: var(--text-dark);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Grid */
.page-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-contact-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-contact-card-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-contact-card h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-contact-card p {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
}

.page-contact-card-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-contact-card-button:hover {
    background-color: #004d99;
}

/* Contact Form */
.page-contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.page-contact-form-group {
    margin-bottom: 20px;
}

.page-contact-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.page-contact-form-group input[type="text"],
.page-contact-form-group input[type="email"],
.page-contact-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

.page-contact-form-group input::placeholder,
.page-contact-form-group textarea::placeholder {
    color: #aaaaaa;
}

.page-contact-form-group textarea {
    resize: vertical;
}

.page-contact-submit-button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact-submit-button:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
}

/* FAQ Section */
.page-contact-faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--background-light);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: var(--primary-color);
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #004d99;
}

.faq-question h3 {
    margin: 0;
    color: inherit;
    font-size: 1.1em;
}

.faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    transition: transform 0.3s ease;
    color: var(--secondary-color);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: #f9f9f9;
    color: var(--text-dark);
    padding: 0 25px;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height to contain content */
    padding: 20px 25px;
}

.faq-answer p {
    margin: 0;
    text-align: left;
    font-size: 1em;
    line-height: 1.8;
}

/* Bottom CTA */
.page-contact-cta-bottom {
    background-color: var(--background-dark);
    color: var(--text-light);
    text-align: center;
    padding: 80px 20px;
}

.page-contact-cta-content {
    max-width: 900px;
}

.page-contact-cta-bottom h2 {
    color: var(--secondary-color);
    font-size: 3em;
    margin-bottom: 20px;
}

.page-contact-cta-bottom p {
    color: var(--text-light);
    font-size: 1.2em;
    margin-bottom: 40px;
}

.page-contact-cta-bottom .page-contact-cta-button {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-size: 1.3em;
    padding: 18px 40px;
}

.page-contact-cta-bottom .page-contact-cta-button:hover {
    background-color: #e6b800;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact-hero h1 {
        font-size: 3em;
    }
    .page-contact-hero p {
        font-size: 1.1em;
    }
    .page-contact-methods h2, .page-contact-form-section h2, .page-contact-faq-section h2, .page-contact-cta-bottom h2 {
        font-size: 2.2em;
    }
    .page-contact-methods p, .page-contact-form-section p, .page-contact-faq-section p, .page-contact-cta-bottom p {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-contact-hero {
        height: 350px;
    }
    .page-contact-hero h1 {
        font-size: 2.5em;
    }
    .page-contact-hero p {
        font-size: 1em;
    }
    .page-contact-cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-contact-methods, .page-contact-form-section, .page-contact-faq-section, .page-contact-cta-bottom {
        padding: 40px 0;
    }
    .page-contact-methods h2, .page-contact-form-section h2, .page-contact-faq-section h2, .page-contact-cta-bottom h2 {
        font-size: 1.8em;
    }
    .page-contact-methods p, .page-contact-form-section p, .page-contact-faq-section p, .page-contact-cta-bottom p {
        font-size: 0.95em;
    }
    .page-contact-grid {
        grid-template-columns: 1fr;
    }
    .page-contact-card {
        padding: 25px;
    }
    .page-contact-form {
        padding: 25px;
    }
    .page-contact-form-group label {
        font-size: 0.95em;
    }
    .page-contact-form-group input, .page-contact-form-group textarea {
        padding: 10px;
        font-size: 0.9em;
    }
    .page-contact-submit-button {
        padding: 12px;
        font-size: 1.1em;
    }
    .faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .faq-question h3 {
        font-size: 1em;
    }
    .faq-toggle {
        font-size: 1.2em;
    }
    .faq-answer {
        padding: 0 20px;
    }
    .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
    .page-contact-cta-bottom h2 {
        font-size: 2em;
    }
    .page-contact-cta-bottom p {
        font-size: 1em;
    }
    .page-contact-cta-bottom .page-contact-cta-button {
        padding: 15px 30px;
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .page-contact-hero {
        height: 300px;
    }
    .page-contact-hero h1 {
        font-size: 2em;
    }
    .page-contact-hero p {
        font-size: 0.9em;
    }
    .page-contact-methods h2, .page-contact-form-section h2, .page-contact-faq-section h2, .page-contact-cta-bottom h2 {
        font-size: 1.5em;
    }
    .page-contact-cta-bottom .page-contact-cta-button {
        font-size: 1em;
        padding: 12px 25px;
    }
}