/* style/contact.css */

/* General Page Styling */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Explicitly set for contrast */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

.page-contact__section-title {
    font-size: 36px;
    color: #017439; /* Brand color for titles */
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__section-description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #017439 0%, #017439 50%, #02944b 100%); /* Green gradient */
    color: #ffffff; /* White text for dark background */
}

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

.page-contact__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-contact__intro-description {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-contact__cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

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

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

.page-contact__btn-primary:hover {
    background-color: #e00b0b;
    border-color: #e00b0b;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.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);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-small {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
}

/* Contact Methods Section */
.page-contact__contact-methods {
    padding: 80px 20px;
    background-color: #f9f9f9; /* Light background for this section */
    color: #333333;
}

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

.page-contact__method-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    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: flex-start;
    min-height: 400px; /* Ensure cards have similar height */
}

.page-contact__method-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-contact__method-icon {
    width: 200px; /* Min size 200x200 */
    height: 150px;
    object-fit: cover;
    margin-bottom: 25px;
    border-radius: 8px;
    max-width: 100%;
    height: auto;
    display: block;
}

.page-contact__card-title {
    font-size: 24px;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__card-text {
    font-size: 16px;
    color: #555555;
    margin-bottom: 25px;
    flex-grow: 1; /* Push button to bottom */
}

.page-contact__link-text {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    font-size: 17px;
    transition: color 0.3s ease;
}

.page-contact__link-text:hover {
    color: #02944b;
    text-decoration: underline;
}

/* Contact Form Section */
.page-contact__contact-form {
    padding: 80px 20px;
    background-color: #ffffff;
    color: #333333;
}

.page-contact__form {
    max-width: 700px;
    margin: 50px auto 0 auto;
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    color: #333333;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #017439;
    outline: none;
    box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.2);
}

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

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 20px;
    background-color: #017439; /* Dark background for FAQ */
    color: #ffffff;
}

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

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

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

.page-contact__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px 25px !important;
    opacity: 1;
    background: #02944b; /* Slightly lighter green for expanded answer */
    border-radius: 0 0 8px 8px;
    color: #ffffff;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #028042; /* Slightly different green for question */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: #ffffff;
}

.page-contact__faq-question:hover {
    background: #03a055;
    border-color: rgba(255, 255, 255, 0.3);
}

.page-contact__faq-question:active {
    background: #016030;
}

.page-contact__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #ffffff;
}

.page-contact__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #ffffff;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    color: #ffffff;
    transform: rotate(45deg); /* Rotate for 'x' effect */
}


/* Why Choose Us Section */
.page-contact__why-choose {
    padding: 80px 20px;
    background-color: #f0f0f0;
    color: #333333;
}

.page-contact__benefit-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin-top: 50px;
}

.page-contact__benefit-item {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 320px; /* Ensure consistent card height */
}

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

.page-contact__benefit-icon {
    width: 200px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 25px;
    border-radius: 8px;
    max-width: 100%;
    height: auto;
    display: block;
}

.page-contact__benefit-title {
    font-size: 22px;
    color: #017439;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-contact__benefit-text {
    font-size: 16px;
    color: #555555;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__main-title {
        font-size: 40px;
    }
    .page-contact__section-title {
        font-size: 30px;
    }
    .page-contact__method-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-contact {
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing */
        font-size: 16px;
        line-height: 1.6;
    }
    .page-contact__hero-section {
        padding: 60px 15px;
    }
    .page-contact__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-contact__intro-description {
        font-size: 18px;
        margin-bottom: 30px;
    }
    .page-contact__cta-group {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-contact__contact-methods,
    .page-contact__contact-form,
    .page-contact__faq-section,
    .page-contact__why-choose {
        padding: 50px 15px;
    }
    .page-contact__section-title {
        font-size: 26px;
        margin-bottom: 10px;
    }
    .page-contact__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-contact__method-card,
    .page-contact__benefit-item {
        padding: 25px;
        min-height: auto;
    }
    .page-contact__method-icon,
    .page-contact__benefit-icon {
        width: 150px;
        height: 100px;
        margin-bottom: 20px;
    }
    .page-contact__card-title,
    .page-contact__benefit-title {
        font-size: 20px;
    }
    .page-contact__form {
        padding: 30px;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 12px;
    }
    .page-contact__faq-question {
        padding: 15px 20px;
    }
    .page-contact__faq-question h3 {
        font-size: 16px;
    }
    .page-contact__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px 20px !important;
    }

    /* Images in content area must be responsive */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-contact__container,
    .page-contact__method-grid,
    .page-contact__form,
    .page-contact__faq-list,
    .page-contact__benefit-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-contact__main-title {
        font-size: 28px;
    }
    .page-contact__intro-description {
        font-size: 16px;
    }
    .page-contact__section-title {
        font-size: 24px;
    }
    .page-contact__method-card,
    .page-contact__benefit-item {
        padding: 20px;
    }
}