/* style/contact.css */

/* --- General Styles --- */
.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light body background */
    background-color: #f0f2f5; /* Body background from shared */
}

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

.page-contact__section {
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.page-contact__section:last-of-type {
    border-bottom: none;
}

.page-contact__section-title {
    font-size: 36px;
    color: #1A202C;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__section-title--light {
    color: #ffffff;
}

.page-contact__section-description {
    font-size: 18px;
    color: #555555;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__section-description--light {
    color: #f0f0f0;
}

.page-contact__dark-bg {
    background-color: #1A202C;
    color: #ffffff;
}

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

/* --- Buttons --- */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__cta-button,
.page-contact__social-btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-contact__btn-primary,
.page-contact__cta-button {
    background-color: #FFD700;
    color: #1A202C;
    border: 2px solid #FFD700;
}

.page-contact__btn-primary:hover,
.page-contact__cta-button:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-secondary,
.page-contact__social-btn {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-contact__btn-secondary:hover,
.page-contact__social-btn:hover {
    background-color: #FFD700;
    color: #1A202C;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* --- Hero Section --- */
.page-contact__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    overflow: hidden; /* Prevent content overflow */
}

.page-contact__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-contact__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-contact__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-contact__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-contact__hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

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

/* --- Intro Section --- */
.page-contact__intro-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

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

.page-contact__channel-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
}

.page-contact__channel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.page-contact__channel-icon {
    width: 100%; /* Ensure images take full width */
    height: auto;
    max-width: 250px; /* Adjust max-width as needed */
    margin-bottom: 25px;
    border-radius: 8px;
    object-fit: cover;
}

.page-contact__channel-title {
    font-size: 24px;
    color: #1A202C;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__channel-text {
    font-size: 16px;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows text to take available space */
}

.page-contact__email-link {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
}

.page-contact__email-link:hover {
    text-decoration: underline;
    color: #e6c200;
}

.page-contact__social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
    margin-top: 15px;
}

/* --- Contact Form Section --- */
.page-contact__form-section {
    padding: 80px 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.page-contact__contact-form {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    width: 100%;
    margin-right: 30px;
    box-sizing: border-box;
    text-align: left;
    color: #333333;
}

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

.page-contact__form-label {
    display: block;
    font-size: 16px;
    color: #1A202C;
    margin-bottom: 8px;
    font-weight: 600;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    color: #333333;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
    outline: none;
}

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

.page-contact__form-submit {
    width: auto;
    padding: 15px 40px;
    font-size: 18px;
    margin-top: 10px;
}

.page-contact__form-image-wrapper {
    max-width: 500px;
    width: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-contact__form-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

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

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

.page-contact__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
    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: 18px 25px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: #1A202C;
}

.page-contact__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-contact__faq-question:active {
    background: #eeeeee;
}

.page-contact__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-contact__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    color: #1A202C;
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    color: #555555;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 2000px !important; /* Use !important and sufficiently large value */
    padding: 20px 25px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 8px 8px;
}

.page-contact__faq-answer p {
    margin: 0;
    font-size: 16px;
}

.page-contact__faq-answer a {
    color: #FFD700;
    text-decoration: none;
}

.page-contact__faq-answer a:hover {
    text-decoration: underline;
    color: #e6c200;
}

.page-contact__faq-image-wrapper {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-contact__faq-image {
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}


/* --- Feedback Section --- */
.page-contact__feedback-section {
    padding: 80px 0;
    background-color: #1A202C;
}

.page-contact__btn-feedback {
    margin-top: 30px;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .page-contact__hero-title {
        font-size: 40px;
    }

    .page-contact__hero-description {
        font-size: 19px;
    }

    .page-contact__section-title {
        font-size: 30px;
    }

    .page-contact__section-description {
        font-size: 16px;
    }

    .page-contact__contact-form {
        margin-right: 0;
        margin-bottom: 30px;
    }

    .page-contact__form-section .page-contact__container {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    /* Mobile General */
    .page-contact__section {
        padding: 40px 0;
    }

    .page-contact__container {
        padding: 15px;
    }

    /* Mobile Hero */
    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-contact__hero-title {
        font-size: 32px;
    }

    .page-contact__hero-description {
        font-size: 17px;
    }

    .page-contact__cta-button {
        padding: 12px 25px;
        font-size: 15px;
    }

    /* Mobile Images */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__channels-grid,
    .page-contact__contact-form,
    .page-contact__form-image-wrapper,
    .page-contact__faq-list,
    .page-contact__faq-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Mobile Buttons */
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact__cta-button,
    .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__social-links {
        flex-direction: column; /* Stack social buttons vertically */
        gap: 10px;
    }

    .page-contact__social-btn {
        width: 100%;
    }

    /* Mobile Contact Form */
    .page-contact__contact-form {
        padding: 30px 15px;
    }

    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
        font-size: 15px;
    }

    .page-contact__form-submit {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }

    /* Mobile FAQ */
    .page-contact__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-contact__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-contact__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-contact__faq-answer {
        padding: 0 15px;
    }
    
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 28px;
    }
    .page-contact__hero-description {
        font-size: 16px;
    }
    .page-contact__section-title {
        font-size: 24px;
    }
    .page-contact__channel-title {
        font-size: 20px;
    }
    .page-contact__channel-text {
        font-size: 15px;
    }
}