/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

.page-contact__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

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

.page-contact__dark-bg {
    background-color: rgba(139, 0, 0, 0.2); /* Dark red transparent for sections */
    padding: 60px 0;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    background: linear-gradient(135deg, #8B0000, #4a0000);
    overflow: hidden;
}

.page-contact__hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.page-contact__hero-content {
    flex: 1;
    text-align: left;
    z-index: 1;
}

.page-contact__hero-title {
    font-size: 3.2em;
    color: #FFD700; /* Gold */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-contact__hero-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-contact__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-contact__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* CTA Buttons */
.page-contact__cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center; /* Center buttons in CTA section */
}

.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__social-btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-contact__btn-primary {
    background-color: #FFD700; /* Gold */
    color: #8B0000; /* Dark Red text for contrast */
    border: 2px solid #FFD700;
}

.page-contact__btn-primary:hover {
    background-color: #e6c200;
    color: #6a0000;
}

.page-contact__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.page-contact__btn-secondary:hover {
    background-color: #FFD700;
    color: #8B0000;
}

/* Contact Methods Section */
.page-contact__methods-section {
    padding: 60px 0;
    background-color: rgba(26, 26, 46, 0.8); /* Slightly lighter dark background */
}

.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-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 400px; /* Ensure cards have similar height */
}

.page-contact__card-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-contact__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-contact__card-text {
    color: #f0f0f0;
    font-size: 1em;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-contact__social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-contact__social-btn {
    background-color: #8B0000;
    color: #ffffff;
    border: 2px solid #8B0000;
}

.page-contact__social-btn:hover {
    background-color: #6a0000;
    border-color: #6a0000;
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 60px 0;
    background-color: rgba(139, 0, 0, 0.3); /* Dark red transparent */
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto 0 auto;
    background-color: rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

.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: #FFD700;
    outline: none;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

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

.page-contact__form-submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    cursor: pointer;
    border: none;
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 60px 0;
    background-color: rgba(26, 26, 46, 0.8);
}

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

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

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
    background-color: rgba(255, 215, 0, 0.2);
}

.page-contact__faq-question h3 {
    margin: 0;
    color: #FFD700;
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFD700;
    transition: transform 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
    background-color: rgba(255, 255, 255, 0.05);
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px 25px;
}

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

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

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

/* CTA Section at bottom */
.page-contact__cta-section {
    background: linear-gradient(45deg, #8B0000, #FFD700);
    padding: 80px 0;
    text-align: center;
}

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

.page-contact__cta-section .page-contact__section-description {
    color: #ffffff;
    margin-bottom: 30px;
}

.page-contact__cta-section .page-contact__cta-buttons {
    justify-content: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.8em;
    }

    .page-contact__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-contact__hero-container {
        flex-direction: column;
        text-align: center;
    }

    .page-contact__hero-content {
        order: 2;
    }

    .page-contact__hero-image-wrapper {
        order: 1;
        margin-bottom: 30px;
    }

    .page-contact__hero-title {
        font-size: 2.2em;
    }

    .page-contact__hero-description {
        font-size: 1em;
    }

    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact__social-btn {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-contact__methods-grid {
        grid-template-columns: 1fr;
    }

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

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

    .page-contact__contact-form {
        padding: 30px 20px;
    }

    .page-contact__faq-question,
    .page-contact__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Images responsive */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-contact__hero-image-wrapper,
    .page-contact__method-card,
    .page-contact__container,
    .page-contact__contact-form,
    .page-contact__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 1.8em;
    }

    .page-contact__section-title {
        font-size: 1.6em;
    }

    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px;
    }

    .page-contact__form-submit-btn {
        font-size: 1em;
    }
}