.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Explicitly set for content area if needed, but body is already white */
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding-top: 10px; /* As per fixed header rule, assuming body padding-top is handled by shared.css */
    background-color: #f5f5f5; /* Light background for hero section */
    text-align: center;
    overflow: hidden; /* Ensure image and content are contained */
}

.page-contact__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-contact__hero-content {
    padding: 40px 20px;
    text-align: center;
    background-color: #ffffff; /* Explicit white background for content block */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin-top: -80px; /* Adjust to slightly overlap the image section */
    position: relative;
    z-index: 10;
}

.page-contact__main-title {
    font-size: 3em;
    font-weight: 700;
    color: #017439; /* Brand primary color for H1 */
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 90%; /* Prevent long titles from being too wide */
    margin-left: auto;
    margin-right: auto;
}

.page-contact__description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Titles */
.page-contact__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand primary color for H2 */
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-contact__section-description {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.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: #e02020;
    border-color: #e02020;
}

.page-contact__btn-secondary {
    background-color: #FFFFFF;
    color: #017439; /* Brand primary color for text */
    border: 2px solid #017439;
}

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

/* Contact Methods Section */
.page-contact__methods-section {
    padding: 60px 0;
}

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

.page-contact__contact-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

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

.page-contact__phone-number {
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
    margin-top: 15px;
}

/* Form Section */
.page-contact__form-section {
    background-color: #017439; /* Brand primary color for dark section */
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    color: #ffffff; /* White text for dark background */
}

.page-contact__title-white {
    color: #ffffff;
}

.page-contact__text-white {
    color: #f0f0f0;
}

.page-contact__contact-form {
    max-width: 600px;
    margin: 0 auto 30px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

.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;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    outline: none;
    border-color: #FFFF00; /* Highlight with custom font color */
    box-shadow: 0 0 0 2px rgba(255, 255, 0, 0.5);
}

.page-contact__form-image {
    position: absolute;
    bottom: 0;
    right: -100px;
    width: 500px;
    height: auto;
    opacity: 0.2;
    z-index: 0;
    display: block;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

/* Why Us Section */
.page-contact__why-us-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

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

.page-contact__why-us-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.page-contact__why-us-item img {
    max-width: 100%; /* Ensure it fits its container */
    height: auto;
    display: block;
    margin: 0 auto 20px; /* Center the image */
    min-width: 200px; /* Enforce min width */
    min-height: 200px; /* Enforce min height */
}

.page-contact__why-us-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 10px;
}

.page-contact__why-us-text {
    font-size: 0.95em;
    color: #666666;
}

/* FAQ Section */
.page-contact__faq-section {
    background-color: #017439; /* Brand primary color for dark section */
    padding: 60px 0;
}

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

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-contact__faq-item summary.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
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: #f5f5f5;
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333; /* Ensure dark text on light background */
}
.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555; /* Ensure dark text on light background */
}
.page-contact__faq-answer p {
    margin: 0;
}
.page-contact__faq-answer a {
    color: #017439; /* Link color for brand primary */
    text-decoration: none;
}
.page-contact__faq-answer a:hover {
    text-decoration: underline;
}

/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
    .page-contact__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero Section */
    .page-contact__hero-section {
        padding-top: 10px !important; /* Ensure minimal top padding */
    }

    .page-contact__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-contact__hero-content {
        padding: 30px 15px;
        margin-top: -60px; /* Adjust overlap for mobile */
    }

    .page-contact__main-title {
        font-size: 2em; /* Smaller H1 for mobile */
        margin-bottom: 15px;
    }

    .page-contact__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    /* Section Titles */
    .page-contact__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-contact__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    /* Buttons */
    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px;
        margin-bottom: 10px;
    }
    
    .page-contact__contact-card a.page-contact__btn-secondary {
        margin-top: 15px;
    }

    /* Contact Methods Section */
    .page-contact__contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-contact__contact-card {
        padding: 20px;
    }

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

    /* Form Section */
    .page-contact__contact-form {
        padding: 20px;
    }

    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px;
    }

    .page-contact__form-image {
        display: none; /* Hide decorative image on small screens */
    }

    /* Why Us Section */
    .page-contact__why-us-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-contact__why-us-item {
        padding: 20px;
    }

    .page-contact__why-us-item img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-contact__why-us-title {
        font-size: 1.3em;
    }

    /* FAQ Section */
    details.page-contact__faq-item summary.page-contact__faq-question { padding: 15px; }
    .page-contact__faq-qtext { font-size: 15px; }
    details.page-contact__faq-item .page-contact__faq-answer { padding: 0 15px 15px; }
}

/* --- Mobile Responsive Styles (max-width: 1024px) --- */
@media (max-width: 1024px) {
    .page-contact__main-title {
        font-size: 2.5em; /* Adjust H1 for tablet */
    }
    .page-contact__section-title {
        font-size: 2em; /* Adjust H2 for tablet */
    }
    .page-contact__hero-image {
        max-width: 100%;
        height: auto;
    }
    .page-contact__contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-contact__form-image {
        right: -150px;
        width: 400px;
    }
    .page-contact__why-us-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablet */
    }
}