/* style/contact.css */

/* Base styles for the page-contact scope */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default for dark background, will be overridden for light sections */
    background: var(--dark-bg-1, #0d0d0d); /* Assuming shared.css defines --dark-bg-1 as dark */
}

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

.page-contact__dark-bg {
    background: #017439; /* Main brand color for dark sections */
    color: #ffffff;
}

.page-contact__light-bg {
    background: #ffffff; /* Auxiliary color for light sections */
    color: #333333; /* Dark text for light background */
}

/* Header offset for fixed header */
.page-contact__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    padding-bottom: 60px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.page-contact__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
}

.page-contact__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__section-title {
    font-size: 2.2em;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    color: inherit; /* Inherit from section, either white or dark grey */
}

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

/* Buttons */
.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

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

.page-contact__btn-secondary {
    background-color: transparent;
    color: #017439; /* Brand color for secondary button text on light background */
    border: 2px solid #017439;
}

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

/* Override for secondary button on dark backgrounds */
.page-contact__dark-bg .page-contact__btn-secondary {
    color: #ffffff;
    border-color: #ffffff;
}

.page-contact__dark-bg .page-contact__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

/* Form Section */
.page-contact__form-section {
    padding: 80px 0;
}

.page-contact__grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-contact__form-content {
    padding: 20px;
}

.page-contact__contact-form {
    margin-top: 30px;
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    color: #333333;
    background-color: #f9f9f9;
}

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

.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.3);
}

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

.page-contact__form-submit-btn {
    width: auto;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    background-color: #017439;
    color: #ffffff;
}

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

.page-contact__form-note {
    margin-top: 20px;
    font-size: 0.9em;
    color: #666666;
    text-align: center;
}

.page-contact__form-image-wrapper {
    text-align: center;
}

.page-contact__form-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* Info Section */
.page-contact__info-section {
    padding: 80px 0;
}

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

.page-contact__info-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
}

.page-contact__info-card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
    color: #ffffff;
}

.page-contact__info-card-text {
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-contact__info-card-subtext {
    margin-top: 15px;
    font-weight: bold;
    color: #FFFF00;
}

.page-contact__info-card-address {
    font-style: normal;
    margin-top: 15px;
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-contact__info-card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 0;
}

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

.page-contact__faq-item {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background: #f0f0f0;
    color: #333333;
    transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
    background: #e5e5e5;
}

.page-contact__faq-title {
    font-size: 1.2em;
    margin: 0;
    font-weight: bold;
    color: #333333;
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg);
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show all content */
    padding: 20px 25px;
}

.page-contact__faq-answer p {
    margin: 0;
    padding-bottom: 10px; /* Add some spacing for readability */
    color: #555555;
}

.page-contact__faq-answer a {
    color: #017439;
    text-decoration: underline;
}

.page-contact__faq-answer a:hover {
    color: #005f2f;
}

/* Video Section */
.page-contact__video-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.page-contact__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1280px; /* Max width for video */
    margin: 40px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-contact__video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    cursor: pointer;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-contact__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Ensure it's above the video */
    cursor: pointer;
}

.page-contact__video-caption {
    margin-top: 20px;
    font-size: 1em;
    color: #f0f0f0;
}

.page-contact__cta-buttons--bottom {
    margin-top: 40px;
}

/* More Info Section */
.page-contact__more-info-section {
    padding: 80px 0;
}

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

.page-contact__advantage-item {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    color: #333333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-contact__advantage-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: bold;
    color: #017439;
}

.page-contact__advantage-text {
    font-size: 1em;
    color: #555555;
}

.page-contact__closing-statement {
    margin-top: 60px;
    font-size: 1.1em;
    text-align: center;
    font-style: italic;
    color: #555555;
}

/* Call to Action Section */
.page-contact__call-to-action {
    padding: 80px 0;
    text-align: center;
}

.page-contact__cta-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
}

.page-contact__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* General image styling to prevent small icons */
.page-contact img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Ensures images cover their area without distortion */
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-contact__hero-title {
        font-size: 2.2em;
    }
    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__grid-layout {
        grid-template-columns: 1fr;
    }
    .page-contact__form-image-wrapper {
        order: -1; /* Image appears above form on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-contact__container {
        padding: 15px;
    }

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

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

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

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

    .page-contact__section-description {
        font-size: 0.95em;
    }

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

    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-contact__form-section,
    .page-contact__info-section,
    .page-contact__faq-section,
    .page-contact__video-section,
    .page-contact__more-info-section,
    .page-contact__call-to-action {
        padding: 40px 0;
    }

    /* Mobile image responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
        min-width: 200px; /* Ensure minimum size is maintained for content images */
        min-height: 200px;
    }

    /* Mobile video responsiveness */
    .page-contact video,
    .page-contact__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
        min-width: 200px; /* Ensure minimum size is maintained for content videos */
        min-height: 200px;
    }

    .page-contact__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to prevent overflow */
        overflow: hidden !important;
    }

    .page-contact__form-image-wrapper {
        padding: 0 15px;
        box-sizing: border-box !important;
    }

    .page-contact__form-content {
        padding: 0 15px;
    }

    .page-contact__info-grid {
        padding: 0 15px;
    }

    .page-contact__faq-list {
        padding: 0 15px;
    }

    .page-contact__faq-question {
        padding: 15px 20px;
    }

    .page-contact__faq-answer {
        padding: 0 20px;
    }

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

    .page-contact__advantages-grid {
        padding: 0 15px;
    }
}

/* Ensure all content containers are responsive */
.page-contact__section,
.page-contact__card,
.page-contact__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .page-contact__section,
  .page-contact__card,
  .page-contact__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure text elements have sufficient contrast */
.page-contact p,
.page-contact li,
.page-contact label,
.page-contact input,
.page-contact textarea {
    color: inherit; /* Inherit from parent section, which handles contrast */
}

/* Specific contrast fixes if needed for brand color on brand color */
.page-contact__dark-bg h2,
.page-contact__dark-bg h3,
.page-contact__dark-bg p,
.page-contact__dark-bg li {
    color: #ffffff; /* Ensure white text on dark brand background */
}

.page-contact__light-bg h2,
.page-contact__light-bg h3,
.page-contact__light-bg p,
.page-contact__light-bg li {
    color: #333333; /* Ensure dark text on light background */
}

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

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

.page-contact__btn-secondary {
  background-color: transparent;
  color: #017439; /* Brand color for secondary button text on light background */
  border: 2px solid #017439;
}

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