/* style/contact.css */

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

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

.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;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    padding-top: var(--header-offset, 120px);
}

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

.page-contact__hero-description {
    font-size: 1.4em;
    max-width: 900px;
    margin: 0 auto 30px auto;
    color: #f0f0f0;
}

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

/* Video Section */
.page-contact__video-section {
    padding: 60px 20px;
    text-align: center;
}

.page-contact__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    background-color: #000;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.page-contact__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
}

/* Info Section */
.page-contact__info-section {
    padding: 60px 20px;
}

.page-contact__grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-contact__info-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

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

.page-contact__card-text {
    font-size: 1.05em;
    color: #555555;
    margin-bottom: 20px;
}

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

.page-contact__link-text:hover {
    color: #005f2f;
    text-decoration: underline;
}

.page-contact__social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.page-contact__social-link img {
    
    
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.page-contact__social-link img:hover {
    transform: scale(1.1);
}

/* Form Section */
.page-contact__form-section {
    padding: 60px 20px;
}

.page-contact__form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.page-contact__form-content {
    text-align: left;
}

.page-contact__contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.page-contact__form-group {
    display: flex;
    flex-direction: column;
}

.page-contact__form-label {
    font-weight: bold;
    margin-bottom: 8px;
    color: #333333;
    font-size: 1.05em;
}

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

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

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

.page-contact__form-image-container {
    text-align: center;
}

.page-contact__form-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Why Us Section */
.page-contact__why-us-section {
    padding: 60px 20px;
}

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

.page-contact__why-us-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: #ffffff;
}

.page-contact__list-title {
    font-size: 1.8em;
    margin-bottom: 10px;
    font-weight: bold;
    color: #ffffff;
}

.page-contact__list-text {
    font-size: 1.05em;
    color: #f0f0f0;
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 60px 20px;
}

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

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

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

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

.page-contact__faq-title {
    margin: 0;
    font-size: 1.1em;
    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 20px;
    background-color: #ffffff;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 20px;
}

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

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

/* Location Section */
.page-contact__location-section {
    padding: 60px 20px;
}

.page-contact__location-map {
    max-width: 1000px;
    margin: 40px auto 20px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.page-contact__map-image {
    width: 100%;
    height: auto;
    display: block;
}

.page-contact__address-text {
    text-align: center;
    font-size: 1.1em;
    color: #f0f0f0;
    margin-top: 20px;
}

/* Final CTA Section */
.page-contact__final-cta-section {
    padding: 60px 20px;
}

.page-contact__final-cta-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.page-contact__final-cta-content {
    text-align: left;
}

.page-contact__final-cta-content .page-contact__section-title {
    text-align: left;
    font-size: 2em;
    margin-bottom: 10px;
}

.page-contact__final-cta-content .page-contact__section-description {
    text-align: left;
    margin-bottom: 0;
}

.page-contact__final-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Buttons */
.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;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
}

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

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

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

.page-contact__btn-secondary:hover {
    background-color: #e0ffe0;
    color: #005f2f;
    border-color: #005f2f;
}

/* Specific color overrides */
.page-contact__btn-primary.page-contact__hero-cta {
    background-color: #C30808; /* Register/Login red */
    border-color: #C30808;
    color: #FFFF00; /* Register/Login yellow font */
}

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

/* Text link in FAQ */
.page-contact__link-in-text {
    color: #017439;
    text-decoration: underline;
}

.page-contact__link-in-text:hover {
    color: #005f2f;
}

/* Dark/Light Background Color Management */
.page-contact__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-contact__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 3em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__form-grid {
        grid-template-columns: 1fr;
    }
    .page-contact__form-image-container {
        order: -1; /* Image above form on smaller screens */
    }
    .page-contact__final-cta-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .page-contact__final-cta-content .page-contact__section-title {
        text-align: center;
    }
    .page-contact__final-cta-content .page-contact__section-description {
        text-align: center;
    }
    .page-contact__final-cta-buttons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding: 60px 20px !important;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-contact__hero-title {
        font-size: 2.2em;
    }
    .page-contact__hero-description {
        font-size: 1.1em;
    }
    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__section-description {
        font-size: 1em;
    }
    .page-contact__grid-layout,
    .page-contact__why-us-list {
        grid-template-columns: 1fr;
    }
    .page-contact__info-card,
    .page-contact__why-us-item {
        padding: 25px;
    }
    .page-contact__card-title {
        font-size: 1.5em;
    }
    .page-contact__list-title {
        font-size: 1.5em;
    }
    .page-contact__form-section,
    .page-contact__info-section,
    .page-contact__video-section,
    .page-contact__why-us-section,
    .page-contact__faq-section,
    .page-contact__location-section,
    .page-contact__final-cta-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-contact__container {
        padding: 0;
    }

    /* Image, Video, Button responsive rules */
    .page-contact img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-contact__video,
    .page-contact__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .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 !important;
        padding-right: 15px !important;
    }
    .page-contact__hero-cta-group,
    .page-contact__final-cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 1.8em;
    }
    .page-contact__section-title {
        font-size: 1.5em;
    }
    .page-contact__info-card,
    .page-contact__why-us-item {
        padding: 20px;
    }
    .page-contact__card-title {
        font-size: 1.5em;
    }
    .page-contact__list-title {
        font-size: 1.5em;
    }
}