/* style/contact.css */
/* General styling for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #F5F7FA); /* Ensure light background for text-main */
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above content */
    align-items: center;
    text-align: center;
    padding-bottom: 60px; /* Space below content */
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: #F5F7FA; /* Light background for hero */
}

.page-contact__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height for large images */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-contact__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.page-contact__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    color: #E53935; /* Primary brand color for main title */
    margin-bottom: 20px;
}

.page-contact__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #333333;
}

/* Primary Button Style */
.page-contact__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__btn-primary:hover {
    background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
}

/* Secondary Button Style */
.page-contact__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 6px;
    background: #ffffff;
    color: #E53935;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #E53935;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

/* Section Titles and Descriptions */
.page-contact__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    font-weight: 700;
    color: #E53935;
    text-align: center;
    margin-bottom: 20px;
}

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

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

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

/* Light Background Section */
.page-contact__light-bg {
    background-color: #F5F7FA; /* Background color for light sections */
    color: #333333;
    padding: 60px 0;
}

/* Dark Background Section */
.page-contact__dark-bg {
    background-color: #E53935; /* Primary brand color as dark background */
    color: #ffffff;
    padding: 60px 0;
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 60px 0;
}

.page-contact__contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff; /* Card BG color */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #E0E0E0; /* Border color */
}

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

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

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #FF5A4F;
    outline: none;
}

.page-contact__form-textarea {
    resize: vertical;
}

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

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

.page-contact__channel-icon {
    /* HTML has width="200" height="200" */
    width: 200px; /* Display at 200px on desktop, as per HTML attribute */
    height: 200px; /* Display at 200px on desktop */
    max-width: 100%; /* Allow shrinking, but min-width rule is tricky */
    height: auto; /* Maintain aspect ratio when shrinking */
    display: block;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-contact__channel-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

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

/* FAQ Section */
.page-contact__faq-section {
    padding: 60px 0;
}

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

.page-contact__faq-item {
    background: #ffffff; /* Card BG color */
    border: 1px solid #E0E0E0; /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-contact__faq-item summary {
    display: block; /* Important for custom styling */
    list-style: none; /* Remove default marker */
}

.page-contact__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for WebKit */
}

.page-contact__faq-question {
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

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

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #E53935;
}

.page-contact__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #555555;
    border-top: 1px solid #E0E0E0;
    margin-top: -1px; /* Overlap border to avoid double line */
}

.page-contact__faq-answer p {
    margin-bottom: 0;
    padding-top: 15px;
}

.page-contact__faq-answer a {
    color: #E53935;
    text-decoration: none;
    font-weight: 600;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
    .page-contact__hero-image-wrapper {
        max-height: 500px;
    }
    .page-contact__main-title {
        font-size: clamp(1.8em, 4.5vw, 2.8em);
    }
    .page-contact__section-title {
        font-size: clamp(1.6em, 4vw, 2.2em);
    }
    .page-contact__channel-card {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding-bottom: 40px;
        padding-top: 10px !important; /* Ensure small top padding on mobile */
    }
    .page-contact__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 20px;
    }
    .page-contact__main-title {
        font-size: clamp(1.6em, 6vw, 2.5em);
    }
    .page-contact__description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    /* Buttons responsive */
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .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; /* Add padding to buttons on mobile */
        padding-right: 15px; /* Add padding to buttons on mobile */
    }
    /* Button containers responsive */
    .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;
        flex-wrap: wrap !important; /* Allow multiple buttons to wrap */
        gap: 10px;
    }
    .page-contact__form-section,
    .page-contact__channels-section,
    .page-contact__faq-section {
        padding: 40px 0;
    }
    .page-contact__contact-form {
        padding: 30px 20px;
    }
    .page-contact__channels-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    .page-contact__channel-icon {
        /* Ensure images scale down while trying to meet min size if possible by container */
        width: 100% !important; 
        height: auto !important;
        max-width: 200px !important; /* Cap its max display size on mobile to its original size */
        max-height: 200px !important;
    }
    .page-contact__channel-title {
        font-size: 1.2em;
    }
    .page-contact__section-description {
        margin-bottom: 30px;
    }
    .page-contact__container {
        padding: 0 15px; /* Add padding for content on mobile */
    }
    /* Mobile image adaptation */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* Ensure all content sections and cards have proper mobile padding and max-width */
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__hero-section,
    .page-contact__form-section,
    .page-contact__channels-section,
    .page-contact__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    /* Specific overrides for containers that might have 0 padding-left/right by default */
    .page-contact__contact-form,
    .page-contact__faq-list {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-section {
        padding-bottom: 30px;
    }
    .page-contact__hero-image-wrapper {
        max-height: 200px;
    }
    .page-contact__main-title {
        font-size: clamp(1.4em, 8vw, 2em);
    }
    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    .page-contact__section-title {
        font-size: clamp(1.4em, 6vw, 1.8em);
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
    }
    .page-contact__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-contact__faq-answer {
        padding: 0 20px 15px 20px;
    }
}