/* style/contact.css */

/* Base Styles */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background #f5f5f5 */
    background-color: #f5f5f5; /* Explicitly set for content area if needed, though body handles it */
}

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

.page-contact__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand primary 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: 100px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-contact__dark-section {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
}

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

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

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

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

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.7); /* Slightly darken image for text contrast, but not color change */
}

.page-contact__hero-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;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Ensure padding doesn't push width */
}

.page-contact__btn-primary {
    background-color: #EA7C07; /* Login/CTA button color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

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

.page-contact__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0; /* Brand primary color */
}

/* Contact Methods Section */
.page-contact__contact-methods {
    padding: 80px 0;
    background-color: #f5f5f5; /* Light background */
}

.page-contact__light-bg .page-contact__section-title {
    color: #26A9E0;
}

.page-contact__light-bg .page-contact__section-description {
    color: #555555;
}

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

.page-contact__method-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

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

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

.page-contact__contact-detail {
    font-weight: bold;
    color: #333333;
    margin-bottom: 15px;
}

.page-contact__contact-detail a {
    color: #26A9E0;
    text-decoration: none;
}

.page-contact__contact-detail a:hover {
    text-decoration: underline;
}

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

.page-contact__social-icon {
    display: inline-block;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.page-contact__social-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* No filter to change color */
}

/* Contact Form Section */
.page-contact__contact-form-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
}

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

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

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

.page-contact__form-label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    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;
    color: #333333;
}

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

.page-contact__form-textarea {
    resize: vertical;
    min-height: 120px;
}

.page-contact__form-submit-btn {
    width: auto; /* Allow button to size itself */
    margin-top: 20px;
    background-color: #EA7C07; /* Login/CTA button color */
    color: #ffffff;
    border-color: #EA7C07;
}

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

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

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

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

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

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

.page-contact__faq-title {
    font-size: 1.2em;
    color: #333333;
    margin: 0;
    font-weight: bold;
}

.page-contact__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #26A9E0;
    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; /* Sufficiently large to show content */
    padding: 15px 25px 25px 25px;
}

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

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

.page-contact__cta-container {
    max-width: 900px;
}

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

.page-contact__cta-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #ffffff;
}

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

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

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding: 80px 0;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header spacing */
    }

    .page-contact__hero-title {
        font-size: 2em;
    }

    .page-contact__hero-description {
        font-size: 1em;
    }

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

    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-contact__container {
        padding: 0 15px;
    }

    .page-contact__section-title {
        font-size: 1.8em;
    }

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

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

    .page-contact__contact-form {
        padding: 30px 20px;
    }

    .page-contact__faq-question {
        padding: 15px 20px;
    }

    .page-contact__faq-title {
        font-size: 1.1em;
    }

    .page-contact__faq-answer {
        padding: 0 20px;
    }

    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px 20px 20px 20px;
    }

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

    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* Mobile image responsiveness */
    .page-contact img {
      max-width: 100% !important;
      width: 100% !important; /* Ensure content area images are full width */
      height: auto !important;
      display: block !important;
    }

    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__methods-grid,
    .page-contact__contact-form-section,
    .page-contact__faq-section,
    .page-contact__cta-section {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      /* padding-left: 15px; */ /* Handled by .page-contact__container for consistency */
      /* padding-right: 15px; */
      overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Ensure content area images are not smaller than 200px (if they are not icons) */
    .page-contact__hero-image {
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-contact__social-icon img {
        /* These are small icons, excluded from the 200px rule for content images */
        min-width: unset !important;
        min-height: unset !important;
        width: 100%;
        height: 100%;
    }
}

/* Ensure content area images are at least 200x200px, but allow social icons to be smaller */
.page-contact img:not(.page-contact__social-icon img) {
    min-width: 200px;
    min-height: 200px;
}

/* Color contrast fixes */
.page-contact__light-bg {
  color: #333333; /* Default text for light backgrounds */
}
.page-contact__dark-bg {
  color: #ffffff; /* Default text for dark backgrounds */
}