/* style/contact.css */

/* Base styles for the page content */
.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light background */
    background-color: var(--background-color, #FFFFFF); /* Inherit or default to white */
}

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

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

.page-contact__section-description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

/* 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 */
    background: linear-gradient(135deg, #e0f2f7, #ffffff); /* Light gradient background */
    overflow: hidden; /* Prevent image 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%;
    max-width: 900px;
}

.page-contact__hero-content h1 {
    font-size: 48px;
    color: #000000; /* Darker color for contrast */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-contact__hero-description {
    font-size: 20px;
    color: #333333;
    margin-bottom: 30px;
}

/* CTA Button - General Style */
.page-contact__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #26A9E0; /* Primary brand color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-contact__cta-button:hover {
    background: #1e87bb; /* Slightly darker primary color */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Specific button styles */
.page-contact__btn-primary {
    background: #26A9E0;
    color: #ffffff;
}
.page-contact__btn-primary:hover {
    background: #1e87bb;
}

.page-contact__btn-secondary {
    background: #ffffff;
    color: #26A9E0; /* Use brand color for text */
    border: 2px solid #26A9E0; /* Border with brand color */
}
.page-contact__btn-secondary:hover {
    background: #e0f2f7; /* Lighter background on hover */
    color: #1e87bb;
    border-color: #1e87bb;
}

/* Contact Methods Section */
.page-contact__methods-section {
    padding: 80px 0;
    background-color: #f9f9f9; /* Light background */
}

.page-contact__methods-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    margin: 40px auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.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: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.page-contact__method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-contact__icon {
    font-size: 48px; /* Larger size to make it more prominent */
    color: #26A9E0;
    margin-bottom: 20px;
    display: block; /* Ensure it takes its own line */
}

.page-contact__method-card h3 {
    font-size: 22px;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-contact__method-card p {
    font-size: 16px;
    color: #555555;
    margin-bottom: 20px;
}

.page-contact__method-link {
    display: inline-block;
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #26A9E0;
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-contact__method-link:hover {
    color: #1e87bb;
    border-color: #1e87bb;
}

.page-contact__promo-cta {
    text-align: center;
    margin-top: 60px;
    padding: 30px;
    background-color: #e0f2f7; /* Light blue background */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-contact__promo-cta p {
    font-size: 18px;
    color: #333333;
    margin-bottom: 25px;
}

.page-contact__promo-cta p a {
    color: #26A9E0;
    font-weight: bold;
    text-decoration: underline;
}

/* Common Reasons Section */
.page-contact__reasons-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Darker background */
    color: #ffffff; /* Light text */
}

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

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

.page-contact__reason-item {
    background: rgba(255, 255, 255, 0.15); /* Semi-transparent white background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

.page-contact__reason-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
}

.page-contact__reason-title {
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-contact__reason-item p {
    font-size: 16px;
    color: #f0f0f0;
}

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

.page-contact__support-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-contact__support-cta {
    margin-top: 40px;
    display: flex;
    gap: 20px; /* Spacing between buttons */
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
}

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

.page-contact__faq-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin: 40px auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.page-contact__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fdfdfd;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

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

.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: 30px;
    height: 30px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect, or simply change to '-' */
    color: #1e87bb;
}

.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 20px;
    opacity: 0;
    background: #fdfdfd;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain content */
    padding: 20px !important;
    opacity: 1;
    background: #e0f2f7; /* Light background for answer */
}

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

/* Download Section */
.page-contact__download-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Primary brand color background */
    color: #ffffff; /* Light text */
    text-align: center;
    overflow: hidden;
}

.page-contact__download-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

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

.page-contact__download-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin-top: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: block; /* Ensure it's treated as a block element */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-content h1 {
        font-size: 40px;
    }
    .page-contact__section-title {
        font-size: 30px;
    }
    .page-contact__methods-grid,
    .page-contact__reasons-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-contact__hero-content h1 {
        font-size: 32px;
    }
    .page-contact__hero-description {
        font-size: 18px;
    }
    .page-contact__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-contact__methods-section,
    .page-contact__reasons-section,
    .page-contact__faq-section,
    .page-contact__download-section,
    .page-contact__support-section {
        padding: 50px 0;
    }
    
    .page-contact__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-contact__methods-grid,
    .page-contact__reasons-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-contact__method-card,
    .page-contact__reason-item {
        padding: 25px;
    }

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

    /* All images responsive for mobile */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    
    .page-contact__hero-image img,
    .page-contact__download-image,
    .page-contact__methods-image,
    .page-contact__support-image,
    .page-contact__faq-image {
        border-radius: 4px;
    }
    
    /* Ensure all containing elements for images and buttons are also responsive */
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__hero-section,
    .page-contact__methods-section,
    .page-contact__reasons-section,
    .page-contact__faq-section,
    .page-contact__download-section,
    .page-contact__support-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Mobile responsive for buttons in support section */
    .page-contact__support-cta {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100%;
    }
    .page-contact__support-cta .page-contact__cta-button {
        margin: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-content h1 {
        font-size: 28px;
    }
    .page-contact__hero-description {
        font-size: 16px;
    }
    .page-contact__section-title {
        font-size: 22px;
    }
    .page-contact__cta-button {
        font-size: 15px;
        padding: 10px 25px;
    }
}