/* 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: var(--background-color, #FFFFFF); /* Inherit from shared, default to white */
    overflow-x: hidden; /* Prevent horizontal scroll on desktop too */
}

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

.page-contact__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand color */
    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;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff; /* White text for dark background */
    overflow: hidden;
    background-color: #017439; /* Brand color as background */
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.6; /* Slightly dim the image for text readability */
}

.page-contact__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 10px;
}

.page-contact__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFFFF;
}

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

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

/* 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;
    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: #a00606;
    border-color: #a00606;
}

.page-contact__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #FFFF00;
}

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

/* Contact Info Section */
.page-contact__contact-info {
    padding: 80px 0;
    background-color: #FFFFFF;
}

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

.page-contact__info-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-contact__card-text,
.page-contact__card-email,
.page-contact__card-phone,
.page-contact__card-address {
    font-size: 1em;
    color: #555555;
    margin-bottom: 15px;
}

.page-contact__info-image {
    display: block;
    margin: 40px auto 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}


/* Contact Form Section */
.page-contact__contact-form-section {
    padding: 80px 0;
    background-color: #017439; /* Dark background */
    color: #ffffff; /* White text */
}

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

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

.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

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

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

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    outline: none;
    border-color: #FFFF00; /* Highlight with yellow */
    box-shadow: 0 0 0 3px rgba(255, 255, 0, 0.3);
}

.page-contact__form-submit-btn {
    width: auto; /* Allow button to size itself */
    margin-top: 20px;
    padding: 15px 40px;
    background-color: #C30808;
    color: #FFFF00;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.page-contact__form-submit-btn:hover {
    background-color: #a00606;
}

.page-contact__form-image {
    display: block;
    margin: 40px auto 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 0;
    background-color: #f5f5f5; /* Light background */
}

.page-contact__faq-list {
    max-width: 800px;
    margin: 40px auto;
    position: relative;
}

.page-contact__faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

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

.page-contact__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #017439;
    font-weight: bold;
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg);
}

.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; /* Important to override any other max-height */
    padding: 15px 25px;
}

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

.page-contact__faq-answer .page-contact__btn-primary {
    margin-top: 10px;
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-contact__faq-image {
    display: block;
    margin: 40px auto 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Social Media Section */
.page-contact__social-media-section {
    padding: 80px 0;
    background-color: #017439; /* Brand color */
    color: #ffffff;
}

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

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

.page-contact__social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-contact__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.8em;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact__social-icon:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

.page-contact__social-image {
    display: block;
    margin: 40px auto 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 3em;
    }
    .page-contact__hero-description {
        font-size: 1.1em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-contact__hero-title {
        font-size: 2.2em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }
    .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__cta-buttons,
    .page-contact__button-group,
    .page-contact__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-contact__info-grid {
        grid-template-columns: 1fr;
    }
    .page-contact__contact-form {
        padding: 30px 20px;
    }
    .page-contact__form-submit-btn {
        width: 100%;
    }
    .page-contact__faq-question h3 {
        font-size: 1.1em;
    }
    .page-contact__faq-toggle {
        font-size: 1.3em;
    }

    /* Mobile image responsiveness */
    .page-contact img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-contact__section,
    .page-contact__card,
    .page-contact__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 1.8em;
    }
    .page-contact__hero-description {
        font-size: 0.9em;
    }
    .page-contact__section-title {
        font-size: 1.5em;
    }
    .page-contact__info-card {
        padding: 20px;
    }
    .page-contact__social-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5em;
    }
}

/* Color Contrast Enforcement */
.page-contact__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

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

/* Ensure all links and buttons have sufficient contrast */
.page-contact a {
    color: #017439;
}
.page-contact a:hover {
    color: #005f2e;
}