/* style/contact.css */

/* Base styles for .page-contact */
.page-contact {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Default text color for dark body background */
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    background: #017439; /* Brand primary color for hero */
    color: #ffffff;
    overflow: hidden;
}

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

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

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

/* General Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__social-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
}

.page-contact__btn-primary {
    background: #C30808; /* Custom color for Register/Login */
    color: #000000; /* WCAG AA compliant text color */
    border: 2px solid #C30808;
}

.page-contact__btn-primary:hover {
    background: #a30606;
    border-color: #a30606;
    color: #ffffff; /* Hover text color */
}

.page-contact__btn-secondary {
    background: #ffffff;
    color: #017439; /* Brand primary color for text */
    border: 2px solid #017439;
}

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

/* Section Titles and Descriptions */
.page-contact__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #017439;
    font-weight: bold;
}

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

/* Channels Section */
.page-contact__channels-section {
    padding: 80px 0;
    background: #f8f8f8;
    color: #333333;
}

.page-contact__channels-section .page-contact__section-title,
.page-contact__channels-section .page-contact__section-description {
    color: #333333;
}

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

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

.page-contact__channel-card:hover {
    transform: translateY(-10px);
}

.page-contact__channel-icon {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin: 0 auto 25px auto;
    border-radius: 8px;
    display: block;
}

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

.page-contact__card-text {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
}

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

.page-contact__social-btn {
    background: #017439;
    color: #ffffff;
    border: 1px solid #017439;
    padding: 8px 15px;
}

.page-contact__social-btn:hover {
    background: #005f2e;
    border-color: #005f2e;
}

/* Form Section */
.page-contact__form-section {
    padding: 80px 0;
    background: #017439; /* Brand primary color */
    color: #ffffff;
}

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

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 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: 25px;
}

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    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 {
    border-color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.page-contact__contact-form .page-contact__btn-primary {
    width: auto;
    padding: 15px 40px;
    font-size: 1.1em;
    margin-top: 20px;
    background: #C30808; /* Custom color for submit button */
    color: #000000; /* WCAG AA compliant text color */
    border: 2px solid #C30808;
}

.page-contact__contact-form .page-contact__btn-primary:hover {
    background: #a30606;
    border-color: #a30606;
    color: #ffffff;
}

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

.page-contact__faq-section .page-contact__section-title,
.page-contact__faq-section .page-contact__section-description {
    color: #333333;
}

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

.page-contact__faq-item {
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 20px;
    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: #ffffff;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
}

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

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

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

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(0deg); /* +/- is handled by JS textContent */
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
    font-size: 1em;
    line-height: 1.7;
}

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

.page-contact__faq-answer .page-contact__btn-secondary {
    margin-top: 10px;
    display: inline-block;
}

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

/* Location Section */
.page-contact__location-section {
    padding: 80px 0;
    background: #017439; /* Brand primary color */
    color: #ffffff;
}

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

.page-contact__location-info {
    max-width: 700px;
    margin: 0 auto 40px auto;
    text-align: center;
    font-size: 1.1em;
    line-height: 1.8;
}

.page-contact__location-info strong {
    color: #ffffff;
}

.page-contact__map-placeholder {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    height: auto;
    background: #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

/* Image responsiveness for all images */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-contact {
        font-size: 15px;
        line-height: 1.5;
    }

    .page-contact__hero-section {
        padding: 60px 0;
    }

    .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__social-btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px;
        font-size: 1em;
    }

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

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

    .page-contact__channels-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__location-section {
        padding: 40px 0;
    }

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

    .page-contact__channel-card {
        padding: 25px;
    }

    .page-contact__channel-icon {
        max-width: 200px;
    }

    .page-contact__card-title {
        font-size: 1.5em;
    }

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

    .page-contact__form-label {
        font-size: 1em;
    }

    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 12px;
    }

    .page-contact__contact-form .page-contact__btn-primary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px;
        font-size: 1em;
    }

    .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;
    }

    /* Mobile image and video responsiveness */
    .page-contact img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    
    .page-contact video,
    .page-contact__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-contact__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

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