/* style/contact.css */

/* Base styles for the page */
.page-contact {
    font-family: Arial, sans-serif;
    color: #333333; /* Default text color for light backgrounds */
    line-height: 1.6;
    background-color: var(--bg-color, #FFFFFF);
}

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

/* Section spacing */
.page-contact__hero-section,
.page-contact__methods-section,
.page-contact__form-section,
.page-contact__video-section,
.page-contact__faq-section,
.page-contact__why-us-section {
    padding: 80px 0;
    position: relative;
}

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

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

.page-contact__highlight {
    color: #017439;
    font-weight: bold;
}

/* Hero Section */
.page-contact__hero-section {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

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

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

.page-contact__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-contact__hero-description a {
    color: #FFFF00;
    text-decoration: underline;
}

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

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

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

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

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

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

/* Contact Methods Section */
.page-contact__methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-contact__method-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-contact__method-icon {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

.page-contact__method-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-contact__method-link {
    color: #C30808;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.page-contact__method-link:hover {
    color: #e02020;
}

/* Contact Form Section */
.page-contact__form-section {
    background-color: #f8f8f8;
}

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

.page-contact__contact-form {
    flex: 2;
    min-width: 300px;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-contact__form-image {
    flex: 1;
    min-width: 250px;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

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

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

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

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

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

/* Video Section */
.page-contact__video-section {
    background-color: #017439;
    color: #ffffff;
    text-align: center;
}

.page-contact__video-section .page-contact__section-title,
.page-contact__video-section .page-contact__section-description {
    color: #ffffff;
}

.page-contact__video-section .page-contact__highlight {
    color: #FFFF00;
}

.page-contact__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 40px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-contact__video-link-overlay {
    display: block;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    cursor: pointer;
}

.page-contact__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-contact__video-cta {
    margin-top: 30px;
}

/* FAQ Section */
.page-contact__faq-section {
    background-color: #ffffff;
}

.page-contact__faq-grid {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-contact__faq-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-contact__faq-item.active {
    background-color: #e6f7ed;
    border-color: #017439;
}

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

.page-contact__faq-question h3 {
    margin: 0;
    flex-grow: 1;
    color: inherit;
}

.page-contact__faq-question h3 a {
    color: inherit;
    text-decoration: none;
}

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

.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(0deg);
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    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 25px 25px 25px;
}

.page-contact__faq-answer p {
    margin: 0;
    font-size: 1em;
}

.page-contact__faq-answer a {
    color: #C30808;
    text-decoration: underline;
}

/* Why Us Section */
.page-contact__why-us-section {
    background-color: #017439;
    color: #ffffff;
    text-align: center;
}

.page-contact__why-us-section .page-contact__section-title,
.page-contact__why-us-section .page-contact__section-description {
    color: #ffffff;
}

.page-contact__why-us-section .page-contact__highlight {
    color: #FFFF00;
}

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

.page-contact__feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: background-color 0.3s ease;
}

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

.page-contact__feature-icon {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.page-contact__feature-title {
    font-size: 1.8em;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-contact__feature-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-contact__why-us-actions {
    margin-top: 50px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 3em;
    }
    .page-contact__hero-description {
        font-size: 1.15em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-contact__hero-title {
        font-size: 2.5em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }
    .page-contact__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        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__methods-grid,
    .page-contact__why-us-grid {
        grid-template-columns: 1fr;
    }
    .page-contact__form-wrapper {
        flex-direction: column;
    }
    .page-contact__contact-form,
    .page-contact__form-image {
        width: 100%;
        max-width: 100%;
    }
    .page-contact__contact-form {
        padding: 30px;
    }
    .page-contact__video-wrapper {
        margin: 30px auto;
    }
    .page-contact__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-contact__faq-answer {
        padding: 10px 20px 20px 20px;
    }
    /* Ensure all images are responsive */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* Ensure all videos are responsive */
    .page-contact video,
    .page-contact__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* Ensure containers are responsive and prevent overflow */
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__video-section,
    .page-contact__video-container,
    .page-contact__video-wrapper,
    .page-contact__hero-actions,
    .page-contact__why-us-actions,
    .page-contact__methods-grid,
    .page-contact__why-us-grid,
    .page-contact__form-wrapper,
    .page-contact__contact-form {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }
    .page-contact__video-link-overlay {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    }
    .page-contact__hero-section {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-contact__hero-container {
        padding: 0;
    }
    .page-contact__hero-actions {
        gap: 10px;
        flex-wrap: wrap;
    }
    .page-contact__why-us-actions {
        gap: 10px;
        flex-wrap: wrap;
    }
}

@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__feature-title {
        font-size: 1.5em;
    }
    .page-contact__faq-question {
        font-size: 1em;
    }
}