.page-contact {
    color: #333333; /* Dark text for default light body background */
}

.page-contact__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    overflow: hidden; /* Hide overflowing image parts */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.page-contact__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    border-radius: 15px;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-contact__hero-title {
    font-size: 3.2em;
    color: #FFD700; /* Gold primary color */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #f0f0f0;
}

.page-contact__info-section {
    padding: 80px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.page-contact__info-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-contact__card {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-contact__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-contact__card-icon {
    width: 200px; /* Min size for content images */
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-contact__card-title {
    font-size: 1.8em;
    color: #8B0000; /* Dark red auxiliary color */
    margin-bottom: 15px;
}

.page-contact__card-description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-contact__link, .page-contact__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.page-contact__link {
    color: #8B0000;
    border: 2px solid #8B0000;
    background-color: transparent;
}

.page-contact__link:hover {
    background-color: #8B0000;
    color: #ffffff;
}

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

.page-contact__social-link {
    color: #FFD700;
    background-color: #8B0000;
    border: 2px solid #8B0000;
    padding: 10px 20px;
    border-radius: 25px;
}

.page-contact__social-link:hover {
    background-color: #FFD700;
    color: #8B0000;
    border-color: #FFD700;
}

.page-contact__form-section {
    padding: 80px 20px;
    background-color: #FFD700; /* Gold primary color background */
    color: #333333;
}

.page-contact__form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.page-contact__form-title {
    font-size: 2.5em;
    color: #8B0000; /* Dark red auxiliary color */
    margin-bottom: 20px;
}

.page-contact__form-description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
}

.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-weight: bold;
    margin-bottom: 8px;
    color: #333333;
}

.page-contact__form-input, .page-contact__form-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
}

.page-contact__form-input:focus, .page-contact__form-textarea:focus {
    border-color: #FFD700;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.page-contact__form-textarea {
    resize: vertical;
}

.page-contact__button {
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    text-align: center;
}

.page-contact__button--primary {
    background-color: #FFD700; /* Gold primary color */
    color: #8B0000; /* Dark red text */
    border: 2px solid #FFD700;
}

.page-contact__button--primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

.page-contact__button--secondary {
    background-color: #8B0000; /* Dark red auxiliary color */
    color: #FFD700; /* Gold text */
    border: 2px solid #8B0000;
}

.page-contact__button--secondary:hover {
    background-color: #a01010;
    border-color: #a01010;
}

.page-contact__button--submit {
    background-color: #8B0000;
    color: #FFD700;
    border: 2px solid #8B0000;
    margin-top: 20px;
    align-self: center;
    max-width: 250px;
}

.page-contact__button--submit:hover {
    background-color: #a01010;
    border-color: #a01010;
}

.page-contact__cta-section {
    padding: 80px 20px;
    background-color: #8B0000; /* Dark red auxiliary color background */
    color: #ffffff;
    text-align: center;
}

.page-contact__cta-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-contact__cta-title {
    font-size: 2.8em;
    color: #FFD700; /* Gold primary color */
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-contact__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-contact__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 80px);
    }

    .page-contact__hero-title {
        font-size: 2.2em;
    }

    .page-contact__hero-description {
        font-size: 1em;
    }

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

    .page-contact__info-section, .page-contact__form-section, .page-contact__cta-section {
        padding: 60px 15px;
    }

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

    .page-contact__cta-title {
        font-size: 2.2em;
    }

    /* Enforce mobile image responsiveness */
    .page-contact__hero-image,
    .page-contact__card-icon {
        max-width: 100%;
        height: auto;
    }

    /* Ensure content area images are responsive */
    .page-contact__info-section .page-contact__card img,
    .page-contact__form-section img,
    .page-contact__cta-section img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-section {
        min-height: 350px;
    }

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

    .page-contact__hero-description {
        font-size: 0.9em;
    }

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

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

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

    .page-contact__social-links {
        flex-direction: column;
        align-items: center;
    }
}