/* style/contact.css */

/* Variables and Base Styles for .page-contact */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Body background is #1a1a1a (dark), so text must be light */
    background-color: transparent; /* inherited from body, shared.css will handle body background */
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    background-color: #017439; /* Brand primary color for hero */
    color: #FFFFFF;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-contact__hero-content {
    max-width: 600px;
    text-align: left;
}

.page-contact__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFFFFF;
    line-height: 1.2;
}

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

.page-contact__cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    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;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.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;
    border-color: #e02020;
    color: #FFFFFF;
}

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

.page-contact__btn-secondary:hover {
    background-color: #e0e0e0;
    color: #017439;
    border-color: #017439;
}

.page-contact__hero-image-wrapper {
    flex-shrink: 0;
}

.page-contact__hero-image {
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

/* General Section Styling */
.page-contact__section-title {
    font-size: 2.2em;
    color: #FFFFFF; /* Default for dark background, will be adjusted for light sections */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-contact__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    opacity: 0.8;
}

/* Contact Info Section */
.page-contact__info-section {
    padding: 80px 20px;
    background-color: #1a1a1a; /* Dark background from shared.css body */
    color: #ffffff;
}

.page-contact__info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-contact__info-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-contact__card-text {
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes link to bottom */
}

.page-contact__info-link,
.page-contact__social-link {
    color: #FFFF00; /* Yellow for links on dark background */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-contact__info-link:hover,
.page-contact__social-link:hover {
    color: #FFFFFF;
}

.page-contact__social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 80px 20px;
    background-color: #f8f9fa; /* Light background for form */
    color: #333333; /* Dark text for light background */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-contact__form-section .page-contact__section-title,
.page-contact__form-section .page-contact__section-intro {
    color: #333333; /* Dark text for light section */
}

.page-contact__contact-form {
    max-width: 700px;
    width: 100%;
    margin-top: 40px;
    background-color: #FFFFFF;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px 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;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    color: #333333;
    background-color: #fefefe;
    box-sizing: border-box;
}

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

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

.page-contact__form-image-wrapper {
    margin-top: 40px;
    max-width: 800px;
    width: 100%;
}

.page-contact__form-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 20px;
    background-color: #1a1a1a; /* Dark background from shared.css body */
    color: #ffffff;
}

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

.page-contact__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFFFFF;
    cursor: pointer;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-contact__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome */
}

.page-contact__faq-item[open] .page-contact__faq-question {
    background-color: #017439; /* Brand primary color when open */
}

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

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #FFFF00;
}

.page-contact__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #e0e0e0;
    line-height: 1.7;
}

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

.page-contact__faq-link {
    color: #FFFF00; /* Yellow for links on dark background */
    text-decoration: underline;
}

.page-contact__faq-link:hover {
    color: #FFFFFF;
}

.page-contact__faq-cta {
    text-align: center;
    margin-top: 50px;
}

.page-contact__faq-cta-text {
    font-size: 1.2em;
    margin-bottom: 25px;
    color: #e0e0e0;
}

/* Why Us Section */
.page-contact__why-us-section {
    padding: 80px 20px;
    background-color: #017439; /* Brand primary color */
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.page-contact__why-us-content {
    max-width: 600px;
}

.page-contact__why-us-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-contact__why-us-list li {
    font-size: 1.1em;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.page-contact__why-us-list li::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: #FFFF00; /* Yellow checkmark */
}

.page-contact__why-us-image-wrapper {
    flex-shrink: 0;
}

.page-contact__why-us-image {
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    display: block;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.5em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__hero-section,
    .page-contact__why-us-section {
        flex-direction: column;
        text-align: center;
    }
    .page-contact__hero-content,
    .page-contact__why-us-content {
        text-align: center;
    }
    .page-contact__cta-buttons {
        justify-content: center;
    }
    .page-contact__hero-image,
    .page-contact__why-us-image {
        max-width: 100%;
    }
    .page-contact__info-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-contact {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-contact__hero-section,
    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__why-us-section {
        padding: 40px 15px;
    }
    .page-contact__hero-title {
        font-size: 2em;
    }
    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__hero-image-wrapper,
    .page-contact__why-us-image-wrapper,
    .page-contact__form-image-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Buttons responsive */
    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .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__info-card,
    .page-contact__contact-form {
        padding: 25px;
    }
    .page-contact__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-contact__faq-answer {
        padding: 0 20px 15px 20px;
    }
    .page-contact__why-us-list li {
        padding-left: 25px;
    }
    .page-contact__why-us-list li::before {
        left: 0;
    }
}