:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --card-bg: #FFFFFF;
    --page-bg: #F4F7FB;
    --text-main: #1F2D3D;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --light-gray: #f5f5f5;
    --dark-text-contrast: #333333; /* For light backgrounds */
    --light-text-contrast: #ffffff; /* For dark backgrounds */
}

.page-contact {
    background-color: var(--page-bg);
    color: var(--dark-text-contrast); /* Default text color for light page background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    font-size: 16px;
}

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

.page-contact__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-contact__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.page-contact__text-block {
    margin-bottom: 20px;
    color: var(--dark-text-contrast);
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* 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;
    padding-top: 10px; /* Small top padding as body handles header offset */
    background-color: var(--page-bg); /* Ensure a consistent background */
    overflow: hidden;
}

.page-contact__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure full width within container */
}

.page-contact__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-contact__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.page-contact__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.page-contact__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 20px;
}

.page-contact__hero-description {
    font-size: 18px;
    color: var(--dark-text-contrast);
    margin-bottom: 30px;
}

.page-contact__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: var(--light-text-contrast);
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.page-contact__cta-button--small {
    padding: 12px 30px;
    font-size: 16px;
}

/* Intro Section */
.page-contact__intro-section {
    padding: 80px 0;
    background-color: var(--card-bg); /* Using card-bg for this section */
    color: var(--dark-text-contrast);
}

/* Methods Section */
.page-contact__methods-section {
    padding: 80px 0;
    background-color: var(--page-bg);
}

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

.page-contact__card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--dark-text-contrast);
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

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

.page-contact__card-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-contact__card-text {
    font-size: 15px;
    color: var(--dark-text-contrast);
    margin-bottom: 20px;
    flex-grow: 1; /* Push buttons to bottom */
}

.page-contact__card-detail {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 15px;
    max-width: 100%; /* Button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__btn-primary {
    background: var(--button-gradient);
    color: var(--light-text-contrast);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-contact__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-secondary {
    background: var(--card-bg);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-contact__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--light-text-contrast);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.page-contact__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--light-text-contrast);
    font-size: 18px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-weight: bold;
    max-width: 100%; /* Button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__social-icon:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Form Section */
.page-contact__form-section {
    padding: 80px 0;
    background-color: var(--page-bg); /* Using page-bg for this section */
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto 0;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

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

.page-contact__form-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
    text-align: left;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    color: var(--dark-text-contrast);
    background-color: #fcfdff;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.2);
    outline: none;
}

.page-contact__form-textarea {
    resize: vertical;
    min-height: 120px;
}

.page-contact__contact-form .page-contact__btn-primary {
    width: auto;
    padding: 15px 40px;
    font-size: 18px;
    margin-top: 20px;
    display: block; /* Make it block to center easier or use flex */
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 0;
    background-color: var(--card-bg); /* Using card-bg for this section */
}

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

details.page-contact__faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
details.page-contact__faq-item summary.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--text-main);
    font-size: 18px;
    font-weight: 600;
}
details.page-contact__faq-item summary.page-contact__faq-question::-webkit-details-marker {
    display: none;
}
details.page-contact__faq-item summary.page-contact__faq-question:hover {
    background: var(--light-gray);
}
.page-contact__faq-qtext {
    flex: 1;
    line-height: 1.5;
    text-align: left;
}
.page-contact__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}
details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 25px 25px;
    background: var(--light-gray);
    border-radius: 0 0 12px 12px;
    color: var(--dark-text-contrast);
}
details.page-contact__faq-item .page-contact__faq-answer p {
    margin: 0;
    padding-top: 15px;
}
.page-contact__faq-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    display: inline-block;
}
.page-contact__faq-link:hover {
    text-decoration: underline;
}

/* Commitment Section */
.page-contact__commitment-section {
    padding: 80px 0;
    background-color: var(--primary-color); /* Dark background */
    color: var(--light-text-contrast); /* Light text */
}

.page-contact__commitment-section .page-contact__section-title {
    color: var(--light-text-contrast);
}
.page-contact__commitment-section .page-contact__section-title::after {
    background-color: var(--light-text-contrast);
}

.page-contact__commitment-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-contact__commitment-content img {
    flex: 1;
    min-width: 300px;
    max-width: 550px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    min-height: 200px; /* Minimum size requirement */
}

.page-contact__commitment-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-contact__commitment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.page-contact__commitment-list li {
    font-size: 17px;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    color: var(--light-text-contrast);
}

.page-contact__commitment-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 20px;
    line-height: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__section-title {
        font-size: 32px;
    }
    .page-contact__hero-section {
        padding: 50px 15px;
    }
    .page-contact__hero-description {
        font-size: 17px;
    }
    .page-contact__methods-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-contact__card {
        padding: 25px;
    }
    .page-contact__card-title {
        font-size: 22px;
    }
    .page-contact__commitment-content {
        flex-direction: column;
        text-align: center;
    }
    .page-contact__commitment-text {
        text-align: center;
    }
    .page-contact__commitment-list {
        text-align: left;
        margin: 0 auto 30px;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .page-contact {
        font-size: 15px;
        line-height: 1.6;
    }
    .page-contact__section-title {
        font-size: 28px;
        margin-bottom: 30px;
        padding-bottom: 10px;
    }
    .page-contact__main-title {
        font-size: clamp(24px, 6vw, 36px); /* clamp for H1 */
        margin-bottom: 15px;
    }
    .page-contact__hero-section {
        padding-top: 10px !important; /* Fixed header spacing */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-contact__hero-image {
        margin-bottom: 20px;
        border-radius: 8px;
    }
    .page-contact__hero-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-contact__hero-description {
        font-size: 16px;
    }
    .page-contact__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: auto;
        margin-right: auto;
    }

    /* All images and their containers */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__contact-form {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-contact__intro-section,
    .page-contact__methods-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__commitment-section {
        padding: 50px 0;
    }
    .page-contact__methods-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-contact__card {
        padding: 20px;
        border-radius: 8px;
    }
    .page-contact__card img {
        margin-bottom: 20px;
    }
    .page-contact__card-title {
        font-size: 20px;
    }
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact a[class*="button"],
    .page-contact a[class*="btn"] {
        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;
        margin-left: auto;
        margin-right: auto;
    }
    .page-contact__social-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .page-contact__contact-form {
        padding: 30px 20px;
        border-radius: 8px;
    }
    .page-contact__form-label {
        font-size: 15px;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 12px;
        font-size: 15px;
        border-radius: 6px;
    }
    .page-contact__contact-form .page-contact__btn-primary {
        padding: 12px 30px;
        font-size: 16px;
    }
    details.page-contact__faq-item summary.page-contact__faq-question {
        padding: 15px 20px;
        font-size: 16px;
    }
    .page-contact__faq-qtext {
        font-size: 15px;
    }
    .page-contact__faq-toggle {
        font-size: 24px;
        width: 25px;
    }
    details.page-contact__faq-item .page-contact__faq-answer {
        padding: 0 20px 20px;
    }
    .page-contact__commitment-list li {
        font-size: 16px;
        padding-left: 25px;
    }
    .page-contact__commitment-list li::before {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .page-contact__section-title {
        font-size: 24px;
    }
    .page-contact__hero-description {
        font-size: 15px;
    }
    .page-contact__card-title {
        font-size: 18px;
    }
    .page-contact__card-text {
        font-size: 14px;
    }
    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        padding: 10px 20px;
        font-size: 14px;
    }
}