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

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

.page-contact__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset, 120px);
    overflow: hidden;
}

.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.7);
    z-index: -1;
}

.page-contact__hero-content {
    position: relative;
    z-index: 1;
    color: #ffffff;
    max-width: 900px;
    padding: 0 20px;
}

.page-contact__hero-title {
    font-size: 3.5em;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: bold;
    color: #ffffff;
}

.page-contact__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
}

.page-contact__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__btn-primary {
    background-color: #C30808; /* Register color */
    color: #ffffff; /* Ensures WCAG AA contrast for #C30808 background */
    border: 2px solid #C30808;
}

.page-contact__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-contact__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-contact__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Info Section */
.page-contact__info-section {
    background-color: #000000;
    padding: 80px 0;
    color: #ffffff;
}

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

.page-contact__channel-card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for light-bg on dark body */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-contact__channel-card:hover {
    transform: translateY(-10px);
}

.page-contact__channel-icon {
    width: 100%; /* Ensure large image for card */
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    max-width: 100%;
    display: block;
    border-radius: 8px;
}

.page-contact__channel-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__channel-description {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-contact__channel-link {
    display: inline-block;
    background-color: #017439;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-contact__channel-link:hover {
    background-color: #005a2b;
}

/* Form Section */
.page-contact__form-section {
    background-color: #017439;
    padding: 80px 0;
    color: #ffffff;
}

.page-contact__form-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.page-contact__form-image {
    flex: 1;
    max-width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__contact-form {
    flex: 1;
    background-color: rgba(0, 0, 0, 0.5); /* Darker background for form on green section */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #005a2b;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.page-contact__submit-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background-color: #C30808; /* Register color */
    color: #ffffff; /* Ensures WCAG AA contrast for #C30808 background */
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-contact__submit-btn:hover {
    background-color: #a00606;
}

/* FAQ Section */
.page-contact__faq-section {
    background-color: #000000;
    padding: 80px 0;
    color: #ffffff;
}

.page-contact__faq-list {
    margin-top: 40px;
    margin-bottom: 50px;
}

.page-contact__faq-item {
    background-color: rgba(255, 255, 255, 0.05); /* Light background for FAQ items on dark body */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-contact__faq-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
}

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

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

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

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

.page-contact__faq-answer p {
    margin: 0;
    color: #f0f0f0;
}

.page-contact__faq-image {
    display: block;
    margin: 40px auto 0;
    max-width: 800px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

    .page-contact__hero-description {
        font-size: 1.1em;
    }

    .page-contact__form-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .page-contact__form-image {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .page-contact {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-contact__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-contact__hero-title {
        font-size: 2.2em;
    }

    .page-contact__hero-description {
        font-size: 1em;
    }

    .page-contact__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        padding: 12px 20px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-contact__section-intro {
        font-size: 0.95em;
    }

    .page-contact__channels-grid {
        grid-template-columns: 1fr;
    }

    .page-contact__form-image {
        max-width: 100%;
    }

    .page-contact__contact-form {
        padding: 30px 20px;
    }

    .page-contact__faq-question {
        padding: 15px 20px;
    }

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

    .page-contact__faq-answer {
        padding: 0 20px;
    }

    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 10px 20px 20px;
    }

    /* Mobile image responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__form-wrapper,
    .page-contact__hero-section,
    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
}

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

    .page-contact__hero-title {
        font-size: 1.8em;
    }

    .page-contact__hero-description {
        font-size: 0.9em;
    }

    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        font-size: 0.9em;
        padding: 10px 15px;
    }

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

    .page-contact__channel-title {
        font-size: 1.5em;
    }

    .page-contact__contact-form {
        padding: 25px 15px;
    }

    .page-contact__faq-title {
        font-size: 1em;
    }
}