:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --button-color: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --card-bg-color: #FFFFFF;
    --bg-color: #F4F7FB;
    --text-main-color: #1F2D3D;
    --custom-color-1776249996415: #000000; /* Black */
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
}

.page-contact {
    padding-top: 10px; /* Small top padding for the first section */
    background-color: var(--bg-color);
    color: var(--text-main-color);
    font-family: Arial, sans-serif;
}

.page-contact__hero-section {
    display: flex;
    flex-direction: column; /* Image above, text below */
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.page-contact__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 30px; /* Space between image and content */
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.page-contact__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-contact__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    color: var(--custom-color-1776249996415);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.page-contact__description {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--text-main-color);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__cta-button {
    display: inline-block;
    padding: 14px 30px;
    background: var(--button-color);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
    min-width: 200px; /* Ensure button is not too small */
    text-align: center;
    border: none;
    cursor: pointer;
}

.page-contact__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(47, 107, 255, 0.6);
}

.page-contact__info-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

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

.page-contact__info-card {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.page-contact__card-title {
    font-size: 1.6em;
    font-weight: 600;
    color: var(--custom-color-1776249996415);
    margin-bottom: 15px;
}

.page-contact__card-text {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-main-color);
    margin-bottom: 20px;
}

.page-contact__card-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding-bottom: 2px;
}

.page-contact__card-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.page-contact__card-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.page-contact__form-section {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--card-bg-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 60px;
    border: 1px solid var(--border-color);
}

.page-contact__form-title {
    font-size: 2em;
    font-weight: 700;
    color: var(--custom-color-1776249996415);
    text-align: center;
    margin-bottom: 15px;
}

.page-contact__form-description {
    font-size: 1.1em;
    color: var(--text-main-color);
    text-align: center;
    margin-bottom: 40px;
}

.page-contact__contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-contact__form-group {
    text-align: left;
}

.page-contact__form-label {
    display: block;
    font-size: 1em;
    font-weight: 600;
    color: var(--custom-color-1776249996415);
    margin-bottom: 8px;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    color: var(--text-main-color);
    background-color: #F8F9FA;
    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 var(--glow-color);
    outline: none;
}

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

.page-contact__submit-button {
    display: inline-block;
    padding: 14px 30px;
    background: var(--button-color);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
    min-width: 200px;
    text-align: center;
    border: none;
    cursor: pointer;
    align-self: center; /* Center the button in the form */
    margin-top: 20px;
}

.page-contact__submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(47, 107, 255, 0.6);
}

.page-contact__map-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto 60px auto;
    text-align: center;
}

.page-contact__map-title {
    font-size: 2em;
    font-weight: 700;
    color: var(--custom-color-1776249996415);
    margin-bottom: 15px;
}

.page-contact__map-description {
    font-size: 1.1em;
    color: var(--text-main-color);
    margin-bottom: 30px;
}

.page-contact__map-placeholder {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.page-contact__map-image {
    width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Ensure image is not too small */
    min-height: 200px; /* Ensure image is not too small */
}

.page-contact__faq-section {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto 80px auto;
}

.page-contact__faq-main-title {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--custom-color-1776249996415);
    text-align: center;
    margin-bottom: 40px;
}

.page-contact__faq-item {
    background-color: var(--card-bg-color);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.page-contact__faq-question {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--custom-color-1776249996415);
    margin-bottom: 10px;
    cursor: pointer;
}

.page-contact__faq-answer {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-main-color);
    display: block; /* Ensure it's always visible for simplicity, or add JS for toggle */
}

.page-contact__faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.page-contact__faq-answer a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-contact__hero-section {
        padding: 30px 15px;
    }

    .page-contact__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

    .page-contact__description {
        font-size: 1em;
    }

    .page-contact__cta-button {
        padding: 12px 25px;
        font-size: 0.9em;
        min-width: unset;
        width: 100%;
        max-width: 300px; /* Constrain button width on mobile */
    }

    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__map-section,
    .page-contact__faq-section {
        padding: 40px 15px;
        margin-bottom: 40px;
    }

    .page-contact__info-grid {
        grid-template-columns: 1fr;
    }

    .page-contact__card-title {
        font-size: 1.4em;
    }

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

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

    .page-contact__faq-question {
        font-size: 1.1em;
    }

    /* Mobile content image overflow prevention */
    .page-contact__hero-image,
    .page-contact__map-image {
        max-width: 100%;
        height: auto;
    }

    /* Ensure content area images are not smaller than 200px */
    .page-contact__hero-image,
    .page-contact__map-image {
        min-width: 200px;
        min-height: 200px;
    }
}