/* style/contact.css */

/* Base styles for the page-contact scope */
.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #1a1a2e; /* Inherited from body via shared.css, but good to keep in mind */
}

/* Fixed header offset */
.page-contact__hero-section {
    padding-top: var(--header-offset, 120px);
}

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

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

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

.page-contact__text-block {
    color: #f0f0f0;
    margin-bottom: 15px;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    max-width: 100%; /* For mobile responsiveness */
    box-sizing: border-box; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

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

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

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

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    padding-bottom: 60px;
}

.page-contact__hero-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: 900px;
    padding: 20px;
}

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

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

/* Channels Section */
.page-contact__channels-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Darker background for contrast with cards */
    color: #ffffff; /* Ensure white text on dark background */
}

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

.page-contact__channel-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card background */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
}

.page-contact__channel-icon {
    width: 100%; /* Ensure large images are responsive */
    height: 200px; /* Fixed height for consistency, object-fit will handle aspect ratio */
    object-fit: contain; /* Keep aspect ratio and fit within content box */
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-contact__channel-title {
    font-size: 1.8em;
    color: #017439; /* Brand color for titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__channel-text {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 25px;
    flex-grow: 1; /* Allow text to take available space */
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Body background color */
    color: #ffffff;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for form */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.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 #017439;
    border-radius: 8px;
    background-color: 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: #a0a0a0;
}

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

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

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

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

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439; /* Brand color for questions */
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* For details/summary, remove default marker */
.page-contact__faq-item summary {
    list-style: none;
}
.page-contact__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-contact__faq-qtext {
    flex-grow: 1;
    color: #ffffff; /* Question text in white */
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #FFFF00; /* Yellow for toggle icon */
}

.page-contact__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #f0f0f0;
    line-height: 1.7;
}

/* Location Section */
.page-contact__location-section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Body background color */
    color: #ffffff;
}

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

.page-contact__address-card,
.page-contact__legal-card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    height: 100%;
    box-sizing: border-box;
}

.page-contact__card-title {
    font-size: 1.8em;
    color: #017439; /* Brand color for titles */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__location-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 50px;
    display: block;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}


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

@media (max-width: 768px) {
    /* Mobile specific adjustments */
    .page-contact__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
        padding-bottom: 40px;
    }
    .page-contact__hero-title {
        font-size: 2.2em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }
    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__section-description {
        font-size: 0.95em;
    }

    /* Images responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-contact__channel-icon {
        height: 150px; /* Adjust height for mobile */
    }

    /* Container padding for mobile */
    .page-contact__container {
        padding: 0 15px;
    }
    .page-contact__channels-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__location-section {
        padding: 40px 0;
    }

    /* Buttons responsiveness */
    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        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;
        margin-bottom: 10px; /* Stack buttons */
    }

    /* Button containers (if multiple buttons) */
    .page-contact__hero-content .page-contact__btn-primary {
        margin-top: 20px;
    }
    .page-contact__channels-grid .page-contact__btn-secondary {
        margin-top: auto; /* Push button to bottom of card */
    }

    /* FAQ adjustments */
    .page-contact__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-contact__faq-answer {
        padding: 15px 20px;
        font-size: 0.95em;
    }

    /* Form adjustments */
    .page-contact__contact-form {
        padding: 25px;
    }

    /* Ensure all containing elements for images/videos/buttons are responsive */
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__channels-grid,
    .page-contact__location-details,
    .page-contact__faq-list {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow: hidden !important; /* Ensure no horizontal scroll */
    }
    /* Specific overrides for padding on containers */
    .page-contact__channels-section .page-contact__container,
    .page-contact__form-section .page-contact__container,
    .page-contact__faq-section .page-contact__container,
    .page-contact__location-section .page-contact__container {
      padding-left: 15px !important;
      padding-right: 15px !important;
    }
}

@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__channel-title {
        font-size: 1.4em;
    }
    .page-contact__card-title {
        font-size: 1.4em;
    }
}

/* Contrast Fixes - Ensure white text on dark backgrounds */
.page-contact__dark-section {
    color: #ffffff;
}
.page-contact__channel-card,
.page-contact__contact-form,
.page-contact__faq-item,
.page-contact__address-card,
.page-contact__legal-card {
    background-color: rgba(255, 255, 255, 0.08); /* Light semi-transparent on dark body bg */
    color: #ffffff; /* White text on these elements */
}
.page-contact__faq-question {
    background-color: rgba(255, 255, 255, 0.05);
}
.page-contact__btn-primary {
    background-color: #C30808;
    color: #FFFF00;
}
.page-contact__btn-secondary {
    background-color: transparent;
    color: #017439; /* Brand green text */
    border-color: #017439;
}
.page-contact__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}