/* style/contact.css */
.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 or default to white */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 500px;
    color: #ffffff; /* Text color for dark background */
}

.page-contact__hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.5); /* Darken image for text readability */
}

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

.page-contact__main-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

/* Section Titles */
.page-contact__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand color for titles on light backgrounds */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Buttons */
.page-contact__btn-primary {
    display: inline-block;
    background-color: #017439;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
}

.page-contact__btn-primary:hover {
    background-color: #005f2e;
    transform: translateY(-2px);
}

.page-contact__btn-secondary {
    display: inline-block;
    background-color: #ffffff;
    color: #017439;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    border: 2px solid #017439;
    cursor: pointer;
    font-size: 1.1em;
}

.page-contact__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005f2e;
    transform: translateY(-2px);
}

.page-contact__btn-register {
    display: inline-block;
    background-color: #C30808; /* Custom register color */
    color: #FFFF00; /* Custom register font color */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    margin: 10px;
}

.page-contact__btn-register:hover {
    background-color: #a30606;
    transform: translateY(-2px);
}

.page-contact__btn-login {
    display: inline-block;
    background-color: #C30808; /* Custom login color */
    color: #FFFF00; /* Custom login font color */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    margin: 10px;
}

.page-contact__btn-login:hover {
    background-color: #a30606;
    transform: translateY(-2px);
}

/* Dark Sections */
.page-contact__dark-section {
    background-color: #017439; /* Primary brand color for dark sections */
    color: #ffffff; /* White text for dark backgrounds */
    padding: 60px 20px;
}
.page-contact__dark-section .page-contact__section-title,
.page-contact__dark-section .page-contact__info-title,
.page-contact__dark-section .page-contact__cta-title {
    color: #ffffff; /* Ensure titles are white on dark backgrounds */
}
.page-contact__dark-section .page-contact__section-description,
.page-contact__dark-section .page-contact__info-text,
.page-contact__dark-section .page-contact__cta-description {
    color: #f0f0f0; /* Slightly off-white for body text */
}

/* Light Sections */
.page-contact__light-bg {
    background-color: #ffffff; /* White background for light sections */
    color: #333333; /* Dark text for light backgrounds */
    padding: 60px 20px;
}

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

.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto 0 auto;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px 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 15px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
    background-color: #ffffff;
    color: #333333;
}

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

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

/* Contact Info Section */
.page-contact__info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.page-contact__info-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

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

.page-contact__info-text {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #f0f0f0;
}

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

.page-contact__info-link:hover {
    text-decoration: underline;
}

.page-contact__info-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    display: block; /* Ensure it behaves as a block element */
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Min size enforcement */
    min-height: 200px; /* Min size enforcement */
}

/* Social Media Section */
.page-contact__social-section {
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: center;
}

.page-contact__social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-contact__social-icon-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.page-contact__social-icon-link:hover {
    transform: translateY(-5px);
}

.page-contact__social-icon {
    width: 200px; /* Force to meet min size */
    height: 200px; /* Force to meet min size */
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

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

.page-contact__faq-item {
    background: #f9f9f9;
    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;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #eeeeee;
    transition: background-color 0.3s ease;
}

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

.page-contact__faq-title {
    font-size: 1.2em;
    color: #333333;
    margin: 0;
    flex-grow: 1;
}

.page-contact__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #017439;
    margin-left: 15px;
    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 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #fcfcfc;
    color: #555555;
}

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

.page-contact__faq-answer p {
    margin: 0;
}
.page-contact__faq-answer a {
    color: #017439;
    text-decoration: none;
}
.page-contact__faq-answer a:hover {
    text-decoration: underline;
}

/* Call to Action Section */
.page-contact__cta-section {
    text-align: center;
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-contact__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__main-title {
        font-size: 2.5em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-contact {
        font-size: 16px;
        line-height: 1.6;
        padding-top: 0; /* Reset global padding-top if hero takes it */
    }
    .page-contact__hero-section {
        padding: 80px 15px;
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset is applied on mobile */
        padding-bottom: 80px; /* Adjust bottom padding for mobile */
    }
    .page-contact__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-contact__intro-text {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-contact__info-grid {
        grid-template-columns: 1fr;
    }
    .page-contact__contact-form,
    .page-contact__info-card,
    .page-contact__faq-list {
        padding: 20px;
    }
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact__btn-register,
    .page-contact__btn-login {
        padding: 12px 25px;
        font-size: 1em;
        margin: 5px;
    }
    .page-contact__cta-title {
        font-size: 1.8em;
    }
    .page-contact__cta-description {
        font-size: 1em;
    }
    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* Mobile responsive images/videos/buttons with !important */
    .page-contact img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-contact video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Ensure all containing elements for images/videos/buttons are responsive */
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__form-section,
    .page-contact__info-section,
    .page-contact__social-section,
    .page-contact__faq-section,
    .page-contact__cta-section,
    .page-contact__contact-form,
    .page-contact__info-card,
    .page-contact__social-links,
    .page-contact__faq-list,
    .page-contact__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact__btn-register,
    .page-contact__btn-login,
    .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;
      margin-left: 0 !important;
      margin-right: 0 !important;
    }

    .page-contact__cta-buttons {
      flex-wrap: wrap !important;
      gap: 10px;
      flex-direction: column; /* Stack buttons vertically on mobile */
    }
}

@media (max-width: 480px) {
    .page-contact__main-title {
        font-size: 1.8em;
    }
    .page-contact__section-title {
        font-size: 1.5em;
    }
    .page-contact__cta-title {
        font-size: 1.5em;
    }
    .page-contact__hero-section {
        padding: 60px 10px;
        min-height: 350px;
    }
    .page-contact__social-icon {
        width: 150px; /* Adjust for smaller screens but keep above 200px if possible */
        height: 150px;
    }
    .page-contact__social-links {
      gap: 15px;
    }
}

/* Text contrast fixes if needed, though assumed light background for most text */
.page-contact__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-contact__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}