/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below header */
}

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

.page-contact__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(1, 116, 57, 0.7), rgba(0, 0, 0, 0.8)); /* Overlay with brand color */
    z-index: -1;
}

.page-contact__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

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

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

/* General Section Styling */
.page-contact__info-section,
.page-contact__form-section,
.page-contact__faq-section,
.page-contact__cta-section {
    padding: 80px 0;
    background-color: #0a0a0a; /* Dark background from body */
}

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

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

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

.page-contact__method-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    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: center;
}

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

.page-contact__method-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 50%; /* Make icons round */
    background-color: rgba(1, 116, 57, 0.2); /* Subtle background for icons */
    padding: 10px;
}

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

.page-contact__method-text {
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-contact__method-link {
    color: #FFFF00; /* Custom color for links in cards for visibility */
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.page-contact__method-link:hover {
    color: #017439; /* Brand color on hover */
}

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

.page-contact__form-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__form-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-contact__contact-form {
    margin-top: 30px;
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

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

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

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__hero-button,
.page-contact__form-submit,
.page-contact__faq-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    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; /* Ensure padding doesn't push width */
    max-width: 100%; /* Default for all buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-contact__btn-primary,
.page-contact__hero-button,
.page-contact__form-submit {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
}

.page-contact__btn-primary:hover,
.page-contact__hero-button:hover,
.page-contact__form-submit:hover {
    background-color: #005f2e;
    border-color: #005f2e;
}

.page-contact__btn-secondary,
.page-contact__faq-button {
    background-color: transparent;
    color: #017439;
    border: 2px solid #017439;
}

.page-contact__btn-secondary:hover,
.page-contact__faq-button:hover {
    background-color: #017439;
    color: #ffffff;
}

/* Custom colors for Register/Login */
.page-contact__cta-buttons .page-contact__btn-primary {
    background-color: #C30808;
    color: #FFFF00;
    border-color: #C30808;
}

.page-contact__cta-buttons .page-contact__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-contact__cta-buttons .page-contact__btn-secondary {
    background-color: transparent;
    color: #C30808;
    border-color: #C30808;
}

.page-contact__cta-buttons .page-contact__btn-secondary:hover {
    background-color: #C30808;
    color: #FFFF00;
}


/* FAQ Section */
.page-contact__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__faq-item {
    background: rgba(255, 255, 255, 0.05);
    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;
    cursor: pointer;
    background-color: rgba(1, 116, 57, 0.2); /* Subtle brand color for question background */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-contact__faq-question:hover {
    background-color: rgba(1, 116, 57, 0.3);
}

.page-contact__faq-heading {
    font-size: 1.25em;
    color: #ffffff;
    margin: 0;
}

.page-contact__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFFF00; /* Highlight toggle icon */
    transition: transform 0.3s ease;
}

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

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px 25px;
}

.page-contact__faq-answer p {
    margin-bottom: 15px;
    color: #f0f0f0;
}

.page-contact__faq-answer .page-contact__faq-button {
    margin-top: 10px;
}

/* CTA Section */
.page-contact__cta-section {
    background: #017439; /* Brand primary color background */
    text-align: center;
    padding: 60px 0;
}

.page-contact__cta-title {
    font-size: 2.8em;
    color: #ffffff;
    margin-bottom: 20px;
}

.page-contact__cta-description {
    font-size: 1.2em;
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.8em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__form-grid {
        grid-template-columns: 1fr;
    }
    .page-contact__form-image-wrapper {
        order: -1; /* Image above form on smaller screens */
        margin-bottom: 40px;
    }
}

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

    .page-contact__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-contact__hero-title {
        font-size: 2.2em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }

    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__cta-section {
        padding: 50px 0;
    }

    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-contact__contact-methods {
        grid-template-columns: 1fr;
    }

    .page-contact__method-card {
        padding: 25px;
    }
    .page-contact__method-icon {
        width: 80px;
        height: 80px;
    }
    .page-contact__method-title {
        font-size: 1.5em;
    }
    .page-contact__method-text {
        font-size: 0.9em;
    }
    .page-contact__method-link {
        font-size: 1em;
    }

    .page-contact__form-content {
        padding: 30px;
    }

    /* All images base responsive style */
    .page-contact img {
      max-width: 100%;
      height: auto;
      display: block;
    }
    
    /* Mobile forced adaptation for images */
    .page-contact img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    
    /* All image/video/button containers mobile adaptation */
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__video-section,
    .page-contact__video-container,
    .page-contact__video-wrapper,
    .page-contact__cta-buttons,
    .page-contact__button-group,
    .page-contact__btn-container,
    .page-contact__hero-section {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }

    /* Video specific mobile styles */
    .page-contact video,
    .page-contact__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    /* Button specific mobile styles */
    .page-contact__cta-button,
    .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__cta-buttons {
      flex-direction: column; /* Stack buttons vertically on mobile */
      gap: 15px;
    }

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

    .page-contact__cta-title {
        font-size: 2em;
    }
    .page-contact__cta-description {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-section {
        height: 400px;
    }
    .page-contact__hero-title {
        font-size: 1.8em;
    }
    .page-contact__hero-description {
        font-size: 0.9em;
    }

    .page-contact__method-card {
        padding: 20px;
    }
    .page-contact__method-icon {
        width: 70px;
        height: 70px;
    }
    .page-contact__method-title {
        font-size: 1.3em;
    }

    .page-contact__form-content {
        padding: 25px;
    }
    .page-contact__form-label {
        font-size: 1em;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 12px;
        font-size: 0.9em;
    }

    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact__hero-button,
    .page-contact__form-submit,
    .page-contact__faq-button {
        padding: 12px 20px;
        font-size: 1em;
    }
}

/* Ensure no CSS filter is used on images */
.page-contact img {
    filter: none !important; /* Override any potential shared filter */
}