/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Default body background */
}

/* Header offset for fixed header */
.page-contact__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset to the first content section */
}

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

.page-contact__hero-section {
    position: relative;
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
    overflow: hidden;
    padding-bottom: 50px; /* Add some padding bottom for content */
}

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

.page-contact__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.page-contact__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

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

.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin: 10px;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-contact__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

.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;
}

/* General section styling */
.page-contact__methods-section,
.page-contact__faq-section,
.page-contact__commitment-section {
    padding: 80px 0;
    text-align: center;
}

.page-contact__methods-section {
    background-color: #f8f8f8;
}

.page-contact__commitment-section {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
}

.page-contact__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand color for titles */
}

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

.page-contact__section-description {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: #555555;
}

.page-contact__commitment-section .page-contact__section-description {
    color: #e0e0e0;
}

/* Methods Grid */
.page-contact__methods-grid,
.page-contact__commitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-contact__method-card,
.page-contact__commitment-item {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.page-contact__method-card:hover,
.page-contact__commitment-item:hover {
    transform: translateY(-10px);
}

.page-contact__commitment-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__method-icon,
.page-contact__commitment-icon {
    width: 100%; /* Ensure images fill card width */
    max-width: 300px; /* Max width for icons */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    min-height: 200px; /* Minimum size for all images */
}

.page-contact__method-title,
.page-contact__commitment-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-contact__commitment-item .page-contact__commitment-title {
    color: #ffffff;
}

.page-contact__method-description,
.page-contact__commitment-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to grow */
}

.page-contact__commitment-item .page-contact__method-description,
.page-contact__commitment-item .page-contact__commitment-text {
    color: #e0e0e0;
}

.page-contact__email-address,
.page-contact__phone-number {
    font-size: 1.1em;
    font-weight: bold;
    color: #26A9E0;
    margin-bottom: 20px;
}

.page-contact__social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    margin-top: auto; /* Push to bottom of card */
}

.page-contact__social-btn {
    background-color: #26A9E0;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-contact__social-btn:hover {
    background-color: #1a7fb2;
}

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

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

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

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

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

.page-contact__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1em;
    color: #555555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-contact__faq-item[open] .page-contact__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding-top: 10px;
}

.page-contact__faq-item[open] .page-contact__faq-question .page-contact__faq-toggle {
    content: "−";
}

/* For details tag, hide default marker */
.page-contact__faq-item summary {
    list-style: none;
}
.page-contact__faq-item summary::-webkit-details-marker {
    display: none;
}

/* CTA at the bottom of commitment section */
.page-contact__cta-bottom {
    margin-top: 60px;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.15); /* Lighter background for CTA */
    border-radius: 12px;
    color: #ffffff;
    text-align: center;
}