/* style/contact.css */

/* --- Base Styles --- */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF; /* Body background from shared, ensuring contrast */
}

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

.page-contact__section {
    padding: 60px 0;
    text-align: center;
}

.page-contact__section-title {
    font-size: 36px;
    color: #26A9E0; /* Primary brand color for titles */
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* --- Color Schemes for Sections --- */
.page-contact__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-contact__dark-bg {
    background-color: #26A9E0; /* Primary brand color as background */
    color: #FFFFFF; /* White text for contrast */
}

.page-contact__dark-bg .page-contact__section-title,
.page-contact__dark-bg .page-contact__section-description,
.page-contact__dark-bg .page-contact__topic-title,
.page-contact__dark-bg .page-contact__topic-list li,
.page-contact__dark-bg .page-contact__cta-text,
.page-contact__dark-bg .page-contact__why-title,
.page-contact__dark-bg .page-contact__why-text {
    color: #FFFFFF; /* Ensure all text in dark sections is white */
}

/* --- 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); /* Fixed header spacing */
    background: linear-gradient(135deg, #26A9E0, #a8dcf0); /* Soft gradient background */
    color: #FFFFFF;
}

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

.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;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-contact__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-contact__main-heading {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-contact__intro-text {
    font-size: 20px;
    color: #f0f8ff;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-contact__cta-button {
    background: #EA7C07; /* Login color for primary CTA */
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__cta-button:hover {
    background: #d46c06;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-contact__btn-primary {
    background: #26A9E0; /* Primary brand color */
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-contact__btn-primary:hover {
    background: #1e87b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-secondary {
    background: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-contact__btn-secondary:hover {
    background: #f0f0f0;
    color: #1e87b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-small {
    padding: 10px 25px;
    font-size: 16px;
    margin-top: 20px;
    background: #26A9E0;
    color: #FFFFFF;
    border-radius: 4px;
    text-decoration: none;
}

.page-contact__btn-small:hover {
    background: #1e87b3;
}


/* --- Contact Methods Section --- */
.page-contact__contact-methods {
    background-color: #f8f9fa; /* Light background for this section */
}

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

.page-contact__method-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-contact__method-card img {
    width: 100%;
    max-width: 400px; /* Constrain image width within card */
    height: 300px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
}

.page-contact__card-title {
    font-size: 24px;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__card-description {
    font-size: 16px;
    color: #555555;
    margin-bottom: 25px;
    flex-grow: 1; /* Allow description to take available space */
}

.page-contact__email-address {
    font-size: 16px;
    color: #333333;
    margin-bottom: 20px;
}

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

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

.page-contact__social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    width: 100%; /* Ensure social buttons fill card width on mobile */
    flex-wrap: wrap;
}

.page-contact__social-btn {
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 5px;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: bold;
    min-width: 120px; /* Minimum width for social buttons */
}

.page-contact__social-btn--facebook {
    background-color: #3b5998;
}

.page-contact__social-btn--facebook:hover {
    background-color: #2d4373;
}

.page-contact__social-btn--telegram {
    background-color: #0088cc;
}

.page-contact__social-btn--telegram:hover {
    background-color: #006b9f;
}

/* --- Support Topics Section --- */
.page-contact__support-topics {
    background-color: #26A9E0; /* Primary brand color as background */
}

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

.page-contact__topic-item {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for items */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__topic-title {
    font-size: 22px;
    color: #FFFFFF;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__topic-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-contact__topic-list li {
    font-size: 16px;
    color: #f0f8ff;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-contact__topic-list li::before {
    content: '✓';
    color: #FFFFFF;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.page-contact__cta-block {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.page-contact__cta-text {
    font-size: 20px;
    color: #FFFFFF;
    margin-bottom: 30px;
    font-weight: 500;
}

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

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

.page-contact__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    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: 18px 25px;
    background: #fff;
    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;
}

.page-contact__faq-item.active .page-contact__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #26A9E0;
    background-color: #eaf6fc;
}

.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;
    color: #333333;
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-contact__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #26A9E0;
    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: 32px;
    height: 32px;
    transform: rotate(0deg);
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    color: #26A9E0;
    transform: rotate(45deg); /* Change to X when active */
}

.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.3s ease;
    padding: 0 25px;
    opacity: 0;
    background: #f9f9f9;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 2000px !important; /* Use !important and large value */
    padding: 20px 25px !important;
    opacity: 1;
}

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

/* --- Why Contact Section --- */
.page-contact__why-contact {
    background-color: #1a87b3; /* A slightly darker shade of primary for contrast */
}

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

.page-contact__why-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-contact__why-title {
    font-size: 22px;
    color: #FFFFFF;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__why-text {
    font-size: 16px;
    color: #f0f8ff;
    line-height: 1.6;
}

/* --- Final CTA Section --- */
.page-contact__final-cta {
    background-color: #f0f8ff; /* Very light blue background */
    padding: 80px 0;
}

.page-contact__final-cta-content {
    max-width: 900px;
}

.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-contact__main-heading {
        font-size: 42px;
    }
    .page-contact__intro-text {
        font-size: 18px;
    }
    .page-contact__section-title {
        font-size: 32px;
    }
    .page-contact__section-description {
        font-size: 16px;
    }
}

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

    .page-contact__hero-image img {
        border-radius: 4px;
    }
    
    .page-contact__main-heading {
        font-size: 32px;
        line-height: 1.3;
    }
    .page-contact__intro-text {
        font-size: 16px;
    }
    .page-contact__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }

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

    .page-contact__section {
        padding: 40px 0;
    }

    .page-contact__section-title {
        font-size: 28px;
    }
    .page-contact__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .page-contact__methods-grid,
    .page-contact__topics-grid,
    .page-contact__why-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-contact__method-card img {
        height: 200px; /* Adjust image height for mobile cards */
        max-width: 100% !important; /* Ensure images are responsive */
        width: 100% !important; /* Force width */
        height: auto !important; /* Force auto height */
    }
    
    .page-contact__topic-item,
    .page-contact__why-item {
        padding: 25px;
    }

    .page-contact__card-title,
    .page-contact__topic-title,
    .page-contact__why-title {
        font-size: 20px;
    }

    .page-contact__card-description,
    .page-contact__topic-list li,
    .page-contact__why-text,
    .page-contact__faq-answer p {
        font-size: 15px;
    }

    .page-contact__email-address {
        font-size: 15px;
    }

    .page-contact__social-links {
        flex-direction: column; /* Stack social buttons */
        gap: 10px;
    }
    .page-contact__social-btn {
        width: 100%; /* Full width for social buttons */
        max-width: 100% !important;
        padding: 12px 15px;
        font-size: 16px;
    }

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

    .page-contact__cta-block {
        margin-top: 40px;
    }
    .page-contact__cta-text {
        font-size: 18px;
    }

    .page-contact__cta-buttons {
        flex-direction: column; /* Stack CTA buttons */
        gap: 15px;
    }
    .page-contact__cta-button,
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact__btn-small {
        width: 100%;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Ensure all images are responsive and don't overflow */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__method-card,
    .page-contact__topic-item,
    .page-contact__why-item,
    .page-contact__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Specific padding for sections to avoid content touching edges */
    .page-contact__section:not(.page-contact__hero-section) .page-contact__container {
        padding-left: 15px;
        padding-right: 15px;
    }
}