/* style/contact.css */
.page-contact {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Default text color for dark body background */
    line-height: 1.6;
    background-color: #1a1a2e; /* Body background from shared.css */
}

/* Fixed header spacing - applying to the first section */
.page-contact__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    text-align: center;
    overflow: hidden;
    color: #ffffff; /* Light text for dark background */
    background-color: #017439; /* Added for consistency, though image covers it */
}

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

.page-contact__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: -1;
}

.page-contact__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFF00; /* Highlighted color for H1 */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.page-contact__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

/* Primary Button Style */
.page-contact__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-contact__btn-primary:hover {
    background-color: #e02020;
    transform: translateY(-2px);
}

/* Secondary Button Style */
.page-contact__btn-secondary {
    background-color: #017439; /* Main brand color */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-contact__btn-secondary:hover {
    background-color: #005a2c;
    transform: translateY(-2px);
}

/* Form Section */
.page-contact__form-section {
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

.page-contact__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
}

.page-contact__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333333;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    color: #333333;
    background-color: #ffffff;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: #999999;
}

.page-contact__form-textarea {
    resize: vertical;
}

.page-contact__submit-button {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Direct Contact Section */
.page-contact__direct-contact-section {
    background-color: #017439; /* Main brand color for background */
    color: #ffffff; /* White text for brand color background */
    padding: 60px 0;
}

.page-contact__direct-contact-section .page-contact__section-title {
    color: #ffffff; /* White title for brand color background */
}

.page-contact__direct-contact-section .page-contact__section-description {
    color: #f0f0f0;
}

.page-contact__contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-contact__method-item {
    background-color: rgba(0, 0, 0, 0.3); /* Darker background for contrast */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-contact__method-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #FFFF00; /* Highlighted color */
}

.page-contact__method-info {
    font-size: 1.1em;
    margin-bottom: 25px;
}

.page-contact__method-item .page-contact__btn-primary,
.page-contact__method-item .page-contact__btn-secondary {
    display: inline-block;
    width: auto;
    max-width: 100%;
    padding: 12px 25px;
    font-size: 1em;
    border-radius: 5px;
}

.page-contact__method-icon {
    position: absolute;
    bottom: -20px;
    right: -20px;
    opacity: 0.2;
    width: 150px;
    height: auto;
    z-index: 0;
}

.page-contact__social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.page-contact__social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #C30808; /* Consistent with login/register button color */
    color: #FFFF00; /* Consistent with login/register font color */
    font-size: 1.5em;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact__social-icon:hover {
    background-color: #e02020;
    transform: translateY(-2px);
}

/* FAQ Section */
.page-contact__faq-section {
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.page-contact__faq-section .page-contact__section-title {
    color: #017439;
}

.page-contact__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    border-top: 1px solid #eee;
}

.page-contact__faq-item {
    border-bottom: 1px solid #eee;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: #333333;
    transition: color 0.3s ease;
}

.page-contact__faq-question:hover {
    color: #017439;
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    transition: transform 0.3s ease;
    color: #017439;
}

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

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px;
}

.page-contact__faq-answer p {
    margin-top: 0;
    margin-bottom: 15px;
}

.page-contact__faq-image {
    position: absolute;
    bottom: -50px;
    left: -50px;
    opacity: 0.1;
    width: 400px;
    height: auto;
    z-index: 0;
    transform: rotate(-15deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 3em;
    }

    .page-contact__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        min-height: 400px;
    }

    .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__contact-methods {
        grid-template-columns: 1fr;
    }

    .page-contact__faq-question {
        font-size: 1.1em;
    }

    /* Mobile image responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-contact__hero-image,
    .page-contact__method-icon,
    .page-contact__faq-image {
        position: relative; /* Adjust positioning for mobile if needed */
        margin: 20px auto;
        opacity: 0.15; /* Make background images slightly more visible */
        transform: none;
        width: 100%;
        height: auto;
    }

    /* Video responsiveness (if any) - not directly used but included for completeness */
    .page-contact video,
    .page-contact__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-contact__video-section,
    .page-contact__video-container,
    .page-contact__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-contact__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* Button responsiveness */
    .page-contact__cta-button,
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact a[class*="button"],
    .page-contact a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-contact__cta-buttons,
    .page-contact__button-group,
    .page-contact__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-contact__cta-buttons {
        display: flex;
        flex-direction: column;
    }

    /* General container padding for mobile */
    .page-contact__section,
    .page-contact__card,
    .page-contact__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Accessibility: Ensure dark/light backgrounds have appropriate text colors */
.page-contact__dark-bg {
  color: #ffffff; /* Light text for dark background */
  background-color: #017439; /* Example dark background */
}

.page-contact__light-bg {
  color: #333333; /* Dark text for light background */
  background-color: #ffffff; /* Example light background */
}

/* Ensure form elements are readable */
.page-contact__form-input,
.page-contact__form-textarea {
    color: #333333; /* Dark text for input fields */
    background-color: #ffffff;
}
.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: #999999;
}