/* style/contact.css */

/* --- General Styling for .page-contact --- */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css var(--black-color) */
}

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

.page-contact__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff; /* Default for dark sections */
    line-height: 1.2;
}

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

/* --- Hero Section --- */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden;
    background-color: var(--black-color); /* Fallback for dark section */
    color: #ffffff;
}

.page-contact__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px; /* Space between image and content */
    overflow: hidden;
    box-sizing: border-box;
}

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

.page-contact__hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1; /* Ensure content is above any background elements if present */
}

.page-contact__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFFFFF;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-contact__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    text-align: center;
}

.page-contact__btn-primary {
    background-color: #26A9E0; /* Main brand color */
    color: #FFFFFF;
    border: 2px solid #26A9E0;
    margin: 10px;
}

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

.page-contact__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    margin: 10px;
}

.page-contact__btn-secondary:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
}

/* Specific button for login/register from custom colors */
.page-contact__btn-login {
    background-color: #EA7C07; /* Login color */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}

.page-contact__btn-login:hover {
    background-color: #c46806;
    border-color: #c46806;
}

/* --- Contact Info Section --- */
.page-contact__info-section {
    padding: 80px 0;
    background-color: #FFFFFF; /* Light background */
    color: #333333; /* Dark text for light background */
}

.page-contact__info-section .page-contact__section-title {
    color: #000000; /* Black for titles on light background */
}

.page-contact__info-section .page-contact__section-description {
    color: #333333; /* Dark text for descriptions on light background */
}

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

.page-contact__method-card {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    color: #333333;
}

.page-contact__method-card:hover {
    transform: translateY(-5px);
}

.page-contact__method-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__method-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #26A9E0; /* Brand color for titles */
}

.page-contact__method-text {
    font-size: 1em;
    margin-bottom: 20px;
    color: #555555;
}

/* --- Contact Form Section --- */
.page-contact__form-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Dark section using main brand color */
    color: #FFFFFF;
}

.page-contact__form-section .page-contact__section-title {
    color: #FFFFFF;
}

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

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

.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;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

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

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

.page-contact__form-submit-btn {
    width: auto; /* Allow button to size itself */
    margin: 0 auto;
    display: block;
}

/* --- FAQ Section --- */
.page-contact__faq-section {
    padding: 80px 0;
    background-color: #f8f8f8; /* Light background */
    color: #333333; /* Dark text */
}

.page-contact__faq-section .page-contact__section-title {
    color: #000000;
}

.page-contact__faq-section .page-contact__section-description {
    color: #333333;
}

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

.page-contact__faq-item {
    background-color: #FFFFFF;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    color: #333333;
}

.page-contact__faq-item summary {
    list-style: none; /* Hide default marker */
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000000;
    background-color: #FFFFFF;
    transition: background-color 0.3s ease;
}

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

.page-contact__faq-item summary:hover {
    background-color: #f0f0f0;
}

.page-contact__faq-qtext {
    flex-grow: 1;
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    margin-left: 15px;
    color: #26A9E0;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
    content: "−"; /* Change to minus when open */
}

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

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

.page-contact__faq-link {
    color: #26A9E0;
    text-decoration: underline;
}

.page-contact__faq-link:hover {
    text-decoration: none;
}

/* --- CTA Section --- */
.page-contact__cta-section {
    padding: 80px 0;
    background-color: var(--black-color); /* Dark background from shared */
    color: #FFFFFF;
    text-align: center;
}

.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width for flex-wrap */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }
    .page-contact__description {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    /* Mobile specific overrides */
    .page-contact__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles header offset, small top padding */
    }

    .page-contact__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-contact__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-contact__main-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
    }

    .page-contact__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__hero-image-wrapper,
    .page-contact__contact-methods,
    .page-contact__contact-form,
    .page-contact__faq-list,
    .page-contact__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Buttons responsiveness */
    .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;
        margin: 10px 0 !important; /* Stack buttons vertically */
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-contact__cta-buttons {
        flex-direction: column !important; /* Stack CTA buttons vertically */
        gap: 10px;
    }

    .page-contact__contact-methods {
        grid-template-columns: 1fr; /* Stack contact cards */
    }

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

    .page-contact__form-section,
    .page-contact__info-section,
    .page-contact__faq-section,
    .page-contact__cta-section {
        padding: 40px 0;
    }

    .page-contact__contact-form {
        padding: 25px;
    }

    .page-contact__faq-item summary {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-contact__faq-answer {
        padding: 0 20px 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-contact__section-title {
        font-size: 1.5em;
    }
    .page-contact__main-title {
        font-size: clamp(1.2em, 7vw, 2em);
    }
    .page-contact__description {
        font-size: 0.9em;
    }
}

/* --- Color Contrast Assurance --- */
/* Body background is var(--black-color), so default text is #ffffff for sections with dark background. */
/* Light background sections will explicitly set dark text. */
.page-contact__dark-bg {
    background-color: var(--black-color); /* From shared.css */
    color: #ffffff;
}

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

.page-contact__dark-section {
    background-color: #26A9E0; /* Using brand color as dark background */
    color: #ffffff;
}

.page-contact__dark-section .page-contact__section-title,
.page-contact__dark-section .page-contact__form-label {
    color: #ffffff;
}