/* style/contact.css */

/* Root variables for consistent theming */
:root {
    --primary-color: #0A192F; /* Deep Tech Blue */
    --secondary-color: #FFD700; /* Bright Gold */
    --text-light: #E0E0E0; /* Light grey for text on dark backgrounds */
    --text-dark: #333333; /* Dark grey for text on light backgrounds */
    --background-light: #F8F9FA; /* Light background */
    --background-dark: #1A2B42; /* Slightly lighter dark background */
    --border-color: #444444; /* Border color for cards/forms */
    --button-hover-dark: #071220; /* Darker primary for hover */
    --button-hover-gold: #E5C100; /* Darker gold for hover */
}

/* Base styles for the contact page content */
.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light sections */
    background-color: var(--background-light);
}

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

.page-contact section {
    padding: 60px 0;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden; /* Ensure content stays within bounds */
}

/* Section titles and descriptions */
.page-contact .section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-contact .section-description {
    font-size: 1.1em;
    color: var(--text-dark);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-contact .highlight {
    color: var(--secondary-color);
    font-weight: bold;
}

/* CTA Buttons */
.page-contact .cta-button {
    display: inline-block;
    padding: 15px 30px;
    margin: 10px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 180px; /* Ensure buttons are not too small */
}

.page-contact .cta-button.primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.page-contact .cta-button.primary:hover {
    background-color: var(--button-hover-gold);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-contact .cta-button.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-contact .cta-button.secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-contact .cta-button.large {
    padding: 18px 40px;
    font-size: 1.25em;
    min-width: 250px;
}

/* Hero Section */
.page-contact .hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1A2B42 100%); /* Darker gradient */
    color: var(--text-light);
    text-align: center;
    padding: 100px 20px;
}

.page-contact .hero-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-contact .hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--secondary-color); /* Gold title for impact */
    font-weight: bold;
    line-height: 1.1;
}

.page-contact .hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: var(--text-light);
    line-height: 1.8;
}

.page-contact .hero-cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.page-contact .hero-cta-buttons .cta-button.secondary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}
.page-contact .hero-cta-buttons .cta-button.secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Contact Info Section */
.page-contact .contact-info-section {
    background-color: var(--background-light);
    padding: 80px 0;
}

.page-contact .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-contact .info-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 380px; /* Ensure cards have similar height */
}

.page-contact .info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-contact .info-icon {
    width: 100px; /* Increased size for icons */
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain; /* Ensures image scales correctly */
    filter: none; /* Ensure no CSS filter changes image color */
}

.page-contact .card-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact .card-text {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 25px;
    flex-grow: 1; /* Allows text to take available space */
}

.page-contact .card-button,
.page-contact .social-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.95em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: auto; /* Push button to bottom */
}

.page-contact .card-button:hover,
.page-contact .social-button:hover {
    background-color: var(--button-hover-dark);
    transform: translateY(-2px);
}

.page-contact .social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Contact Form Section */
.page-contact .contact-form-section {
    background-color: var(--background-dark);
    color: var(--text-light);
    padding: 80px 0;
}

.page-contact .contact-form-section .section-title {
    color: var(--secondary-color);
}

.page-contact .contact-form-section .section-description {
    color: var(--text-light);
}

.page-contact .contact-form {
    max-width: 700px;
    margin: 50px auto 0 auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.page-contact .form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1em;
}

.page-contact .form-input,
.page-contact .form-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    color: var(--text-dark);
    background-color: #fcfcfc;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact .form-input:focus,
.page-contact .form-textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
    outline: none;
}

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

.page-contact .submit-button {
    display: block;
    width: 100%;
    padding: 18px;
    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, box-shadow 0.3s ease;
}

.page-contact .submit-button:hover {
    background-color: var(--button-hover-gold);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-contact .faq-section {
    background-color: var(--background-light);
    padding: 80px 0;
}

.page-contact .faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
}

.page-contact .faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color); /* Changed border color for better visibility */
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-contact .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-contact .faq-question:hover {
    background: #f5f5f5;
}

.page-contact .faq-question h3 {
    font-size: 1.2em;
    color: var(--primary-color);
    margin: 0;
    font-weight: bold;
}

.page-contact .faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
    line-height: 1; /* Adjust line-height for better centering */
}

.page-contact .faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--primary-color);
}

.page-contact .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out; /* Smooth transition */
    padding: 0 25px; /* Initial padding */
    background: #fdfdfd;
    color: var(--text-dark);
}

.page-contact .faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height to contain content */
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
}

.page-contact .faq-answer p {
    margin: 0;
    line-height: 1.7;
    font-size: 1em;
}

/* Register Promo Section (Final CTA) */
.page-contact .register-promo-section,
.page-contact .final-cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1A2B42 100%);
    color: var(--text-light);
    text-align: center;
    padding: 80px 20px;
}

.page-contact .register-promo-section .section-title,
.page-contact .final-cta-section .section-title {
    color: var(--secondary-color);
    font-size: 2.8em;
}

.page-contact .register-promo-section .section-description,
.page-contact .final-cta-section .section-description {
    color: var(--text-light);
    font-size: 1.15em;
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-contact .hero-title {
        font-size: 3em;
    }
    .page-contact .section-title {
        font-size: 2em;
    }
    .page-contact .info-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-contact .info-card {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .page-contact section {
        padding: 40px 0;
    }
    .page-contact .hero-section {
        padding: 80px 15px;
    }
    .page-contact .hero-title {
        font-size: 2.5em;
    }
    .page-contact .hero-description {
        font-size: 1em;
    }
    .page-contact .section-title {
        font-size: 1.8em;
    }
    .page-contact .section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-contact .cta-button {
        padding: 12px 25px;
        font-size: 1em;
        min-width: 150px;
    }
    .page-contact .cta-button.large {
        padding: 15px 35px;
        font-size: 1.1em;
        min-width: 200px;
    }
    .page-contact .info-grid {
        grid-template-columns: 1fr;
    }
    .page-contact .info-card {
        min-height: auto; /* Allow height to adjust on mobile */
    }
    .page-contact .contact-form {
        padding: 25px;
    }
    .page-contact .form-label {
        font-size: 1em;
    }
    .page-contact .form-input,
    .page-contact .form-textarea {
        padding: 12px;
        font-size: 0.95em;
    }
    .page-contact .submit-button {
        padding: 15px;
        font-size: 1.1em;
    }
    .page-contact .faq-question h3 {
        font-size: 1.1em;
    }
    .page-contact .faq-toggle {
        font-size: 20px;
    }
    .page-contact .faq-question {
        padding: 15px 20px;
    }
    .page-contact .faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-contact .hero-title {
        font-size: 2em;
    }
    .page-contact .hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-contact .cta-button {
        width: 100%;
        margin: 0;
    }
    .page-contact .section-title {
        font-size: 1.5em;
    }
    .page-contact .card-title {
        font-size: 1.5em;
    }
    .page-contact .info-icon {
        width: 80px;
        height: 80px;
    }
    .page-contact .social-links {
        flex-direction: column;
        gap: 10px;
    }
    .page-contact .social-button {
        width: 100%;
    }
}

/* Ensure contrast for all elements */
.page-contact .hero-section .highlight {
    color: var(--secondary-color); /* Gold on dark blue */
}
.page-contact .contact-info-section .highlight {
    color: var(--primary-color); /* Dark blue on light background */
}
.page-contact .contact-form-section .highlight {
    color: var(--secondary-color); /* Gold on dark background */
}
.page-contact .faq-section .highlight {
    color: var(--primary-color); /* Dark blue on light background */
}
.page-contact .register-promo-section .highlight,
.page-contact .final-cta-section .highlight {
    color: var(--secondary-color); /* Gold on dark blue */
}

/* Specific contrast check for text on buttons */
.page-contact .cta-button.primary {
    color: var(--primary-color);
}
.page-contact .cta-button.primary:hover {
    color: var(--primary-color);
}
.page-contact .cta-button.secondary {
    color: var(--primary-color);
}
.page-contact .cta-button.secondary:hover {
    color: var(--secondary-color);
}
.page-contact .card-button, .page-contact .social-button {
    color: var(--secondary-color);
}
.page-contact .card-button:hover, .page-contact .social-button:hover {
    color: var(--secondary-color);
}
.page-contact .submit-button {
    color: var(--primary-color);
}
.page-contact .submit-button:hover {
    color: var(--primary-color);
}

/* Ensure no image filters */
.page-contact img {
    filter: none !important;
}