/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Rely on body background from shared.css */
}

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

.page-contact__dark-bg {
    background-color: #1a1a1a; /* A slightly lighter dark for sections */
    color: #ffffff;
}

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

.page-contact__dark-text {
    color: #333333;
}

.page-contact__section-title {
    font-size: 2.5em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

.page-contact__card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
}

.page-contact__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__link {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-contact__link:hover {
    color: #000080;
    text-decoration: underline;
}

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

.page-contact__btn-primary {
    background-color: #FFD700;
    color: #000080;
    border: 2px solid #FFD700;
}

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

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

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

/* Hero Section */
.page-contact__hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px);
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.page-contact__hero-content {
    flex: 1;
    max-width: 50%;
    padding-right: 40px;
    z-index: 1;
}

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

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

.page-contact__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 50%;
    z-index: 0;
}

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

/* Channels Section */
.page-contact__channels-section {
    padding: 80px 20px;
}

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

.page-contact__channel-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

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

.page-contact__channel-description {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-contact__channel-info {
    font-size: 1em;
    color: #f0f0f0;
    margin-top: 15px;
}

.page-contact__social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.page-contact__social-link {
    color: #FFD700;
    font-size: 1.1em;
    text-decoration: none;
}

.page-contact__social-link:hover {
    color: #e6c200;
    text-decoration: underline;
}

/* Form Section */
.page-contact__form-section {
    padding: 80px 20px;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto 0;
    padding: 40px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 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: #333333;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    color: #333333;
    background-color: #fefefe;
}

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

.page-contact__form-button {
    width: auto;
    margin-top: 20px;
    display: block; /* Make it block to take full width on small screens if needed */
}

/* Office Section */
.page-contact__office-section {
    padding: 80px 20px;
}

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

.page-contact__office-detail {
    text-align: left;
}

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

.page-contact__office-address,
.page-contact__office-hours,
.page-contact__office-note {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 10px;
}

.page-contact__map-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 20px;
}

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

.page-contact__faq-item {
    margin-bottom: 20px;
    overflow: hidden;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

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

.page-contact__faq-heading {
    font-size: 1.2em;
    color: #FFD700;
    margin: 0;
}

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

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
    background: rgba(255, 255, 255, 0.05);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

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

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

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(0deg); /*  becomes "-" */
}

/* Security Section */
.page-contact__security-section {
    padding: 80px 20px;
}

.page-contact__security-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-contact__security-item {
    background: rgba(0, 0, 128, 0.2); /* Semi-transparent midnight blue */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-contact__security-heading {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 10px;
}

.page-contact__security-item p {
    color: #f0f0f0;
}

/* CTA Section */
.page-contact__cta-section {
    padding: 80px 20px;
    text-align: center;
}

.page-contact__cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Copyright */
.page-contact__copyright {
    padding: 20px;
    text-align: center;
    background-color: #000080; /* Darker blue for footer-like area */
    color: #ffffff;
    font-size: 0.9em;
}

.page-contact__copyright p {
    margin: 0;
}

/* General image styling for content images */
.page-contact__content-image {
    display: block;
    margin: 40px auto;
    width: 80%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

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

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

    .page-contact__hero-content {
        max-width: 60%;
        padding-right: 20px;
    }

    .page-contact__hero-image-wrapper {
        max-width: 40%;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-contact__hero-content {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 30px;
    }

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

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

    .page-contact__hero-image-wrapper {
        max-width: 100%;
    }

    .page-contact__hero-image,
    .page-contact__content-image,
    .page-contact__map-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-contact__container,
    .page-contact__channels-section,
    .page-contact__form-section,
    .page-contact__office-section,
    .page-contact__faq-section,
    .page-contact__security-section,
    .page-contact__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-contact__channels-grid,
    .page-contact__office-info-grid,
    .page-contact__security-list {
        grid-template-columns: 1fr;
    }

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

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

    .page-contact__section-intro {
        font-size: 0.95em;
    }

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

    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact__form-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

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

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

    .page-contact__channel-title,
    .page-contact__office-title,
    .page-contact__security-heading {
        font-size: 1.5em;
    }

    .page-contact__faq-heading {
        font-size: 1em;
    }
}