/* style/contact.css */

/* Base styles for the contact page, ensuring text is visible on a dark body background */
.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 */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

.page-contact__section {
    padding: 60px 0;
    text-align: center;
}

/* Specific background and text colors for sections */
.page-contact__dark-bg {
    background-color: #26A9E0; /* Brand primary color for dark sections */
    color: #ffffff;
}

.page-contact__light-bg {
    background-color: #ffffff; /* White background for light sections */
    color: #333333;
}

.page-contact__hero-section {
    position: relative;
    padding-top: 0;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.page-contact__hero-section .page-contact__container {
    position: relative;
    z-index: 2;
    padding-top: 40px;
    padding-bottom: 40px;
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3;
}

.page-contact__main-heading {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-contact__section-heading {
    font-size: 2.5em;
    margin-bottom: 40px;
    font-weight: bold;
    color: inherit;
}

.page-contact__text-block {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: inherit;
}

.page-contact__keyword {
    font-weight: bold;
    color: #EA7C07;
}

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

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

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

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

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

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

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

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

.page-contact__cta-buttons--bottom {
    margin-top: 60px;
}

/* Reason list */
.page-contact__reason-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 1000px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-contact__reason-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #333333;
}

.page-contact__reason-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-contact__reason-text {
    font-size: 1em;
    color: #555555;
}

/* Contact Channels */
.page-contact__contact-channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-contact__channel-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    height: 100%;
    box-sizing: border-box;
}

.page-contact__channel-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

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

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

.page-contact__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
    margin-top: auto;
}

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

.page-contact__social-icon-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-contact__social-icon-link:hover {
    color: #EA7C07;
}

/* Guide list */
.page-contact__guide-list {
    list-style: decimal;
    padding-left: 25px;
    margin: 0 auto;
    max-width: 900px;
    text-align: left;
    color: #333333;
}

.page-contact__guide-item {
    margin-bottom: 30px;
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-contact__guide-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #26A9E0;
}

.page-contact__guide-text {
    font-size: 1em;
    color: #555555;
}

.page-contact__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

/* FAQ */
.page-contact__faq-list {
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
}

.page-contact__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
    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;
    font-weight: bold;
    font-size: 1.1em;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

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

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

.page-contact__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: #EA7C07;
}

details[open] .page-contact__faq-toggle {
    transform: rotate(45deg);
}

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

/* Security list */
.page-contact__security-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 1000px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-contact__security-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #333333;
}

.page-contact__security-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-contact__security-text {
    font-size: 1em;
    color: #555555;
}

/* Community cards */
.page-contact__community-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-contact__community-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    height: 100%;
    box-sizing: border-box;
}

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

.page-contact__community-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-contact__main-heading {
        font-size: 2.8em;
    }
    .page-contact__section-heading {
        font-size: 2em;
    }
    .page-contact__reason-list,
    .page-contact__contact-channels,
    .page-contact__security-list,
    .page-contact__community-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-contact {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-contact__main-heading {
        font-size: 2.2em;
    }
    .page-contact__section-heading {
        font-size: 1.8em;
    }
    .page-contact__description,
    .page-contact__text-block,
    .page-contact__reason-text,
    .page-contact__channel-description,
    .page-contact__guide-text,
    .page-contact__faq-answer,
    .page-contact__security-text,
    .page-contact__community-text {
        font-size: 1em;
    }

    .page-contact__hero-section .page-contact__container {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .page-contact__section {
        padding: 40px 0;
    }

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