/* style/contact.css */

/* Base styles for the contact page content */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Dark body background #1a1a1a, so light text */
    background-color: #1a1a1a; /* Ensure consistency with body background */
}

/* Container for consistent content width */
.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Section styling */
.page-contact__hero-section,
.page-contact__info-section,
.page-contact__form-section,
.page-contact__faq-section,
.page-contact__commitment-section {
    padding: 60px 20px;
    position: relative;
    overflow: hidden; /* Prevent content overflow */
}

/* Specific background colors for sections */
.page-contact__dark-section {
    background-color: #017439; /* Brand primary color for dark sections */
    color: #ffffff;
}

.page-contact__light-bg {
    background-color: #FFFFFF; /* Auxiliary color for light sections */
    color: #333333; /* Dark text for light background */
}

/* Hero Section */
.page-contact__hero-section {
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-contact__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-contact__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    color: #f0f0f0;
    z-index: 1;
}

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

/* CTA Buttons */
.page-contact__cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    z-index: 1;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
}

.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__btn-text {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Include padding in width */
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-contact__btn-primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom color for register/login font */
    border: 2px solid #C30808;
}

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

.page-contact__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Custom color for register/login font */
    border: 2px solid #FFFF00;
}

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

.page-contact__btn-text {
    background-color: transparent;
    color: #017439; /* Brand color for text buttons on light background */
    border: 2px solid #017439;
}

.page-contact__btn-text:hover {
    background-color: #017439;
    color: #ffffff;
}


/* Section titles and descriptions */
.page-contact__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: inherit; /* Inherit from section for contrast */
}

.page-contact__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: inherit; /* Inherit from section for contrast */
}

/* Contact Methods Section */
.page-contact__contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
    text-align: center;
}

.page-contact__method-item {
    background-color: #f0f0f0; /* Light background for method items */
    color: #333333; /* Dark text for light background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 250px; /* Ensure consistent height */
    transition: transform 0.3s ease;
}

.page-contact__method-item:hover {
    transform: translateY(-5px);
}

.page-contact__method-title {
    font-size: 1.8em;
    color: #017439; /* Brand color for titles */
    margin-bottom: 15px;
}

.page-contact__method-text {
    margin-bottom: 15px;
}

.page-contact__method-detail a {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

.page-contact__method-detail a:hover {
    text-decoration: underline;
}

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

/* Contact Form Section */
.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.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 #555;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #017439; /* Brand color on focus */
    outline: none;
}

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

.page-contact__contact-form .page-contact__btn-primary {
    width: auto;
    display: block;
    margin: 30px auto 0;
}

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

/* FAQ Section */
.page-contact__faq-list {
    margin-top: 30px;
}

.page-contact__faq-item {
    background-color: #f0f0f0; /* Light background for FAQ items */
    color: #333333; /* Dark text for light background */
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

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

.page-contact__faq-heading {
    margin: 0;
    color: #333333;
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: #f0f0f0;
    color: #555555;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important; /* Important for JS toggle to work */
    padding: 15px 25px 25px;
}

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

.page-contact__faq-answer a {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

.page-contact__faq-answer a:hover {
    text-decoration: underline;
}

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

/* Commitment Section */
.page-contact__commitment-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-contact__point-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-contact__point-item:hover {
    transform: translateY(-5px);
}

.page-contact__point-title {
    font-size: 1.8em;
    color: #FFFF00; /* Custom color for important titles */
    margin-bottom: 15px;
}

.page-contact__point-text {
    color: #f0f0f0;
}

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

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

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

    .page-contact__container {
        padding: 30px 15px;
    }

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

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

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

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

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

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

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

    .page-contact__contact-methods,
    .page-contact__commitment-points {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-contact__method-item,
    .page-contact__point-item {
        padding: 25px;
    }

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

    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
    }

    .page-contact__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

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

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

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

    .page-contact__hero-image,
    .page-contact__info-image,
    .page-contact__form-image,
    .page-contact__faq-image,
    .page-contact__commitment-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .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;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 2em;
    }
    .page-contact__section-title {
        font-size: 1.5em;
    }
    .page-contact__method-title,
    .page-contact__point-title {
        font-size: 1.5em;
    }
}

/* Ensure images in content area are not too small */
.page-contact__info-image,
.page-contact__form-image,
.page-contact__faq-image,
.page-contact__commitment-image {
    min-width: 200px;
    min-height: 200px;
}