.page-contact {
    padding-bottom: 50px; /* General padding for the bottom of the page */
    background-color: var(--bg-color, #F4F7FB); /* Using background color from provided scheme */
    color: var(--text-main-color, #1F2D3D);
}

.page-contact__hero-section {
    display: flex;
    flex-direction: column; /* Image above content */
    align-items: center;
    text-align: center;
    padding: 10px 20px 50px; /* Small top padding, more bottom padding */
    background-color: var(--main-color, #2F6BFF); /* Main color for hero background */
    color: #FFFFFF; /* White text on blue background */
    position: relative;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
}

.page-contact__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Prevent excessively tall hero images */
}

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

.page-contact__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: #FFFFFF;
    /* font-size will be handled by browser defaults for H1, or use clamp if needed, but not fixed large value */
}

.page-contact__description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
    color: #FFFFFF;
}

.page-contact__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-contact__btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.page-contact__btn--primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-contact__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 107, 255, 0.6);
}

.page-contact__btn--secondary {
    background-color: #FFFFFF;
    color: var(--main-color, #2F6BFF);
    border: 1px solid var(--main-color, #2F6BFF);
}

.page-contact__btn--secondary:hover {
    background-color: var(--main-color, #2F6BFF);
    color: #FFFFFF;
    transform: translateY(-2px);
}

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

.page-contact__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--text-main-color, #1F2D3D);
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-contact__info-section {
    padding: 60px 0;
    background-color: var(--card-bg-color, #FFFFFF);
    border-radius: 15px;
    margin: -30px auto 50px; /* Pull up slightly into hero section */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    max-width: 1200px; /* Match container width */
}

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

.page-contact__card {
    background-color: var(--card-bg-color, #FFFFFF);
    border: 1px solid var(--border-color, #D6E2FF);
    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;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 350px; /* Ensure cards have similar height */
}

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

.page-contact__card-icon {
    width: 200px; /* Enforce minimum size for icons */
    height: 150px; /* Maintain aspect ratio or adjust as needed */
    object-fit: contain; /* Ensure image fits without cropping */
    margin-bottom: 20px;
}

.page-contact__card-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--text-main-color, #1F2D3D);
    margin-bottom: 15px;
}

.page-contact__card-text {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-main-color, #1F2D3D);
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to take available space */
}

.page-contact__card-link {
    display: inline-block;
    color: var(--main-color, #2F6BFF);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-contact__card-link:hover {
    color: var(--aux-color, #6FA3FF);
    text-decoration: underline;
}

.page-contact__form-section {
    padding: 60px 0;
    background-color: var(--bg-color, #F4F7FB);
}

.page-contact__form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--card-bg-color, #FFFFFF);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color, #D6E2FF);
}

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

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

.page-contact__form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main-color, #1F2D3D);
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color, #D6E2FF);
    border-radius: 8px;
    font-size: 1em;
    color: var(--text-main-color, #1F2D3D);
    background-color: #F8FAFC;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: #8898AA;
    opacity: 1;
}

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

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

.page-contact__btn--submit {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    font-weight: 700;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-contact__btn--submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 107, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-section {
        padding-bottom: 40px;
    }
    .page-contact__main-title {
        font-size: 2.5em;
    }
    .page-contact__section-title {
        font-size: 2em;
        margin-top: 50px;
        margin-bottom: 30px;
    }
    .page-contact__info-section {
        margin-top: -20px;
        padding: 40px 0;
    }
    .page-contact__contact-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    .page-contact__card {
        padding: 25px;
        min-height: 320px;
    }
    .page-contact__card-icon {
        width: 200px; /* Adjusted to meet minimum size */
        height: auto;
        min-height: 150px; /* Adjusted to meet minimum size */
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding: 10px 15px 30px;
        border-radius: 0 0 15px 15px;
    }
    .page-contact__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-contact__hero-image {
        max-height: 400px;
    }
    .page-contact__main-title {
        font-size: 2em;
    }
    .page-contact__description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-contact__btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .page-contact__container {
        padding: 0 15px;
    }
    .page-contact__section-title {
        font-size: 1.8em;
        margin-top: 40px;
        margin-bottom: 25px;
    }
    .page-contact__info-section {
        margin: -15px auto 40px;
        padding: 30px 0;
    }
    .page-contact__contact-cards {
        grid-template-columns: 1fr; /* Stack cards on mobile */
        gap: 25px;
    }
    .page-contact__card {
        padding: 20px;
        min-height: auto;
    }
    .page-contact__card-icon {
        width: 200px; /* Minimum width for content area images */
        height: auto; /* Maintain aspect ratio */
        min-height: 150px; /* Minimum height for content area images */
    }
    /* Ensure all images within .page-contact are responsive and don't overflow */
    .page-contact img {
        max-width: 100%;
        height: auto;
    }
}

/* Ensure color contrast */
/* All text colors are dark (#1F2D3D or #000000) on light backgrounds (#FFFFFF or #F4F7FB) or white on blue. */
/* This should meet WCAG AA contrast. */