.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* body background is #0d0d0d from shared.css */
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding: 100px 0;
    padding-top: calc(var(--header-offset, 120px) + 60px); /* Ensure space below fixed header */
    text-align: center;
    overflow: hidden;
    background-color: #0d0d0d; /* Explicitly set for this section for image overlay */
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3; /* Darken image for better text contrast */
}

.page-contact__hero-title {
    font-size: 3em;
    color: #FFFFFF;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-contact__hero-description {
    font-size: 1.2em;
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__btn-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-contact__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom font color for Register/Login */
    border: 2px solid #C30808;
}

.page-contact__btn-primary:hover {
    background-color: #e00b0b;
    border-color: #e00b0b;
}

.page-contact__btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.page-contact__btn-secondary:hover {
    background-color: #FFFFFF;
    color: #017439;
}

.page-contact__btn-link {
    background-color: #017439;
    color: #FFFFFF;
    border: 2px solid #017439;
    padding: 10px 20px;
    font-size: 1em;
}

.page-contact__btn-link:hover {
    background-color: #005f2c;
    border-color: #005f2c;
}

/* General Section Styling */
.page-contact__section {
    padding: 60px 0;
}

.page-contact__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #FFFFFF; /* Default for dark body */
}

.page-contact__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
    color: #f0f0f0; /* Slightly lighter for descriptions */
}

/* Contact Methods Grid */
.page-contact__contact-methods {
    background-color: #0d0d0d; /* Dark background for this section */
}

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

.page-contact__card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
}

.page-contact__card-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 8px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
    object-fit: cover;
}

.page-contact__card-title {
    font-size: 1.8em;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.page-contact__card-text {
    font-size: 1em;
    color: #cccccc;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to grow */
}

.page-contact__email-address,
.page-contact__phone-number {
    font-size: 1.1em;
    margin-top: 15px;
    color: #FFFFFF;
}

.page-contact__link {
    color: #017439; /* Brand color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-contact__link:hover {
    color: #00a04c;
    text-decoration: underline;
}

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

.page-contact__social-link {
    color: #FFFFFF;
    background-color: #017439;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.page-contact__social-link:hover {
    background-color: #005f2c;
}

/* Contact Form Section */
.page-contact__contact-form {
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
    color: #ffffff;
}

.page-contact__form {
    max-width: 700px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #FFFFFF;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.3);
    color: #FFFFFF;
    font-size: 1em;
    box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: #cccccc;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #017439;
    outline: none;
    box-shadow: 0 0 5px rgba(1, 116, 57, 0.5);
}

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

.page-contact__form-submit {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    border-radius: 8px;
    cursor: pointer;
    background-color: #017439;
    color: #FFFFFF;
    border: none;
    transition: background-color 0.3s ease;
}

.page-contact__form-submit:hover {
    background-color: #005f2c;
}

/* FAQ Section */
.page-contact__faq-section {
    background-color: #0d0d0d;
}

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

.page-contact__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #FFFFFF; /* Ensure text is light */
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    list-style: none; /* For details/summary */
}

.page-contact__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-contact__faq-item summary {
    list-style: none;
}

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

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #017439; /* Brand color for toggle icon */
}

.page-contact__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #cccccc;
    text-align: left;
}

/* Office Info Section */
.page-contact__office-info {
    background-color: #0d0d0d; /* Dark background */
    text-align: center;
}

.page-contact__office-info .page-contact__section-title {
    color: #FFFFFF;
}

.page-contact__office-info .page-contact__section-description {
    color: #f0f0f0;
}

.page-contact__info-block {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__info-subtitle {
    font-size: 1.5em;
    color: #017439; /* Brand color for subtitles */
    margin-bottom: 10px;
}

.page-contact__info-text {
    font-size: 1.1em;
    color: #cccccc;
    margin-bottom: 5px;
}

/* Bottom CTA Section */
.page-contact__cta-bottom {
    background-color: #1a1a1a; /* Slightly lighter dark background */
    text-align: center;
}

.page-contact__cta-bottom .page-contact__section-title {
    color: #FFFFFF;
}

.page-contact__cta-bottom .page-contact__section-description {
    color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.5em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset */
        padding-bottom: 60px;
    }
    .page-contact__hero-title {
        font-size: 2em;
    }
    .page-contact__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
}