/* Base styles for .page-contact */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #1F2D3D; /* Text Main */
    background-color: #F4F7FB; /* Background */
    padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
}

/* Container for consistent spacing */
.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background-color: #2F6BFF; /* Primary color as background */
    color: #ffffff; /* White text for contrast */
}

.page-contact__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
    overflow: hidden;
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-contact__hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-contact__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-contact__description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: #f0f8ff;
}

.page-contact__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Section Titles and Intros */
.page-contact__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #1F2D3D; /* Text Main */
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

.page-contact__section-intro {
    font-size: 1.05rem;
    color: #333333;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Contact Methods Section */
.page-contact__methods-section {
    padding: 60px 0;
    background-color: #F4F7FB; /* 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: #FFFFFF; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-contact__method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-contact__method-icon {
    width: 100%;
    max-width: 250px; /* Ensure images are not too wide */
    height: auto;
    margin: 0 auto 25px;
    border-radius: 8px;
    object-fit: cover;
    min-height: 200px; /* Min size for images */
    min-width: 200px;
}

.page-contact__method-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #2F6BFF; /* Primary color */
    margin-bottom: 15px;
}

.page-contact__method-text {
    font-size: 1rem;
    color: #333333;
    margin-bottom: 25px;
    flex-grow: 1; /* Make text take available space */
}

.page-contact__method-text ul {
    text-align: left;
    margin-top: 10px;
    margin-left: 20px;
    list-style: disc;
    color: #333333;
}

.page-contact__method-text ul li {
    margin-bottom: 5px;
}

.page-contact__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 6px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    margin-top: auto; /* Push button to bottom */
    width: auto;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: auto;
    flex-wrap: wrap; /* Allow wrapping on mobile */
}

.page-contact__social-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    background-color: #6FA3FF; /* Auxiliary color */
    color: #ffffff;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__social-btn:hover {
    background-color: #2F6BFF; /* Primary color on hover */
    transform: translateY(-2px);
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 60px 0;
    background-color: #F4F7FB; /* Background */
}

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

.page-contact__faq-item {
    background-color: #FFFFFF; /* Card BG */
    border: 1px solid #D6E2FF; /* Border color */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1F2D3D; /* Text Main */
    cursor: pointer;
    background-color: #ffffff;
    user-select: none;
    list-style: none; /* Hide default details marker */
}

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

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

.page-contact__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: #2F6BFF; /* Primary color */
}

.page-contact__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: #333333;
    line-height: 1.6;
    max-height: 0; /* Managed by details open state or JS if not details */
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-contact__faq-item[open] .page-contact__faq-answer {
    max-height: 500px; /* Arbitrary large value for smooth transition */
}
.page-contact__faq-answer p {
    margin-top: 10px;
}
.page-contact__faq-answer ul, .page-contact__faq-answer ol {
    margin-left: 20px;
    margin-top: 10px;
    list-style-position: inside;
}
.page-contact__faq-answer a {
    color: #2F6BFF;
    text-decoration: underline;
}

/* Why Us Section */
.page-contact__why-us-section {
    padding: 60px 0;
    background-color: #F4F7FB; /* Background */
}

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

.page-contact__feature-card {
    background-color: #FFFFFF; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-contact__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-contact__feature-icon {
    width: 100%;
    max-width: 200px; /* Feature icons can be slightly smaller */
    height: auto;
    margin: 0 auto 20px;
    border-radius: 8px;
    object-fit: cover;
    min-height: 200px; /* Min size for images */
    min-width: 200px;
}

.page-contact__feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2F6BFF; /* Primary color */
    margin-bottom: 10px;
}

.page-contact__feature-text {
    font-size: 0.95rem;
    color: #333333;
    flex-grow: 1;
}

.page-contact__cta-bottom {
    text-align: center;
    padding-top: 60px;
    margin-top: 60px;
    border-top: 1px solid #D6E2FF; /* Border color */
}

.page-contact__cta-text {
    font-size: 1.2rem;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 30px;
    font-weight: 500;
}

.page-contact__cta-button--large {
    padding: 18px 40px;
    font-size: 1.25rem;
}

/* General image and button responsive rules */
.page-contact img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-contact a[class*="button"],
.page-contact a[class*="btn"] {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__cta-buttons,
.page-contact__button-group,
.page-contact__btn-container,
.page-contact__social-links {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .page-contact__container {
        padding: 20px 30px;
    }
    .page-contact__hero-section {
        padding: 40px 30px;
    }
    .page-contact__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .page-contact__description {
        font-size: 1.1rem;
    }
    .page-contact__section-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }
    .page-contact__methods-grid,
    .page-contact__features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    .page-contact__method-card,
    .page-contact__feature-card {
        padding: 25px;
    }
    .page-contact__method-title {
        font-size: 1.4rem;
    }
    .page-contact__feature-title {
        font-size: 1.2rem;
    }
}