/* style/contact.css */

/* Variables */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-btn-color: #C30808;
    --login-btn-color: #C30808;
    --btn-text-color: #FFFF00;
    --text-dark: #333333;
    --text-light: #ffffff;
    --light-bg: #f8f8f8;
    --dark-bg-1: #0d0d0d; /* Assuming shared.css defines --dark-bg-1 as a dark color */
}

/* Base styles for the page content, assuming body has a dark background from shared.css */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Light text for dark body background */
    background-color: transparent; /* Rely on body background from shared.css */
}

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

.page-contact__section-title {
    font-size: 2.5em;
    color: var(--secondary-color); /* White for titles on dark background */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__section-description {
    font-size: 1.1em;
    color: var(--text-light);
    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: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    font-size: 1em;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-contact__btn-primary {
    background-color: var(--register-btn-color); /* Custom color for register */
    color: var(--btn-text-color); /* Custom color for register/login font */
    border: 2px solid var(--register-btn-color);
}

.page-contact__btn-primary:hover {
    background-color: #a70707; /* Darken #C30808 */
    border-color: #a70707;
    color: var(--secondary-color);
}

.page-contact__btn-secondary {
    background-color: transparent;
    color: var(--btn-text-color); /* Custom color for login font */
    border: 2px solid var(--login-btn-color); /* Custom color for login */
}

.page-contact__btn-secondary:hover {
    background-color: var(--login-btn-color);
    color: var(--secondary-color);
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

.page-contact__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    z-index: -1;
}

.page-contact__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

.page-contact__main-title {
    font-size: 3.5em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-contact__intro-text {
    font-size: 1.2em;
    color: var(--secondary-color);
    margin-bottom: 40px;
}

.page-contact__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width for wrapping */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Contact Info Section */
.page-contact__contact-info-section {
    padding: 80px 0;
    background-color: var(--primary-color); /* Primary color background */
    color: var(--text-light);
}

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

.page-contact__info-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on primary color */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
}

.page-contact__card-title {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-contact__card-text {
    font-size: 1.1em;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-contact__email-address,
.page-contact__phone-number {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--btn-text-color); /* Use a high contrast color */
    margin-bottom: 20px;
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 80px 0;
    background-color: var(--dark-bg-1); /* Dark background for form section */
    color: var(--text-light);
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.08); /* Lighter dark background for the form itself */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-contact__form-label {
    display: block;
    font-size: 1.1em;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.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.1);
    color: var(--text-light);
    font-size: 1em;
    box-sizing: border-box;
}

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

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

.page-contact__submit-btn {
    width: auto;
    padding: 15px 30px;
    font-size: 1.1em;
    display: block; /* Make it block to take full width on mobile if needed */
    margin-top: 20px;
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 0;
    background-color: var(--primary-color); /* Primary color background */
    color: var(--text-light);
}

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

.page-contact__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-light);
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    list-style: none; /* Remove default marker for details */
}

.page-contact__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

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

.page-contact__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to cross */
}

.page-contact__faq-answer {
    padding: 20px;
    font-size: 1em;
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.03);
}

.page-contact__faq-answer p {
    margin-bottom: 10px;
}

.page-contact__faq-answer a {
    color: var(--btn-text-color); /* Highlight links in FAQ answers */
    text-decoration: underline;
}

.page-contact__faq-answer a:hover {
    color: var(--secondary-color);
}

/* Location Section */
.page-contact__location-section {
    padding: 80px 0;
    background-color: var(--dark-bg-1); /* Dark background */
    color: var(--text-light);
}

.page-contact__address-map {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.page-contact__address-text {
    font-style: normal;
    text-align: center;
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-light);
}

.page-contact__address-text strong {
    color: var(--secondary-color);
    font-size: 1.2em;
}

.page-contact__map-placeholder {
    width: 100%;
    max-width: 800px;
    height: 450px; /* Fixed height for map placeholder */
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-contact__map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Ensure it behaves as a block element */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-contact__hero-section {
        height: 500px;
    }

    .page-contact__main-title {
        font-size: 3em;
    }

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

@media (max-width: 768px) {
    /* Mobile Content Area Protection */
    .page-contact {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-contact__hero-section {
        height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

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

    .page-contact__intro-text {
        font-size: 1em;
    }

    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Ensure padding inside button */
        padding-right: 15px; /* Ensure padding inside button */
    }

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

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

    .page-contact__contact-info-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__location-section {
        padding: 50px 0;
    }

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

    .page-contact__contact-form {
        padding: 25px;
        margin: 0 15px; /* Add horizontal margin to form */
    }

    .page-contact__form-label {
        font-size: 1em;
    }

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

    .page-contact__submit-btn {
        width: 100%;
        padding: 12px 20px;
    }

    .page-contact__faq-question {
        font-size: 1em;
        padding: 15px;
    }

    .page-contact__faq-answer {
        padding: 15px;
    }

    .page-contact__map-placeholder {
        height: 300px; /* Adjust map height for mobile */
        margin: 0 15px; /* Add horizontal margin to map */
    }

    /* Mobile Image Responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-contact__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important; /* Hero image should fill its container */
        object-fit: cover !important;
    }

    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__contact-form,
    .page-contact__map-placeholder,
    .page-contact__cta-buttons,
    .page-contact__info-grid,
    .page-contact__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by specific elements like .page-contact__cta-buttons, .page-contact__contact-form */
    }

    /* Ensure no horizontal scroll for the main content area */
    .page-contact {
        overflow-x: hidden;
    }

    /* Video responsiveness - if any video were present */
    .page-contact video,
    .page-contact__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-contact__video-section,
    .page-contact__video-container,
    .page-contact__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
}

/* Color contrast enforcement (assuming --dark-bg-1 is dark) */
.page-contact {
  color: var(--text-light); /* Enforce light text on dark body background */
}

.page-contact__dark-section {
  background: var(--dark-bg-1);
  color: var(--text-light);
}

.page-contact__info-card {
  background-color: rgba(255, 255, 255, 0.1); /* Darker background, use light text */
  color: var(--text-light);
}

.page-contact__contact-form {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
}

.page-contact__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}