/* style/contact.css */

/* Base Styles */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--background-color, #FFFFFF); /* Assuming light background, will adjust if needed */
}

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

.page-contact__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #017439; /* Brand primary color */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-contact__section-description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #555555;
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background-color: #f8f8f8; /* Light background for hero section */
}

.page-contact__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-contact__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.page-contact__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.page-contact__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.page-contact__hero-title {
    font-size: 48px;
    font-weight: bold;
    color: #017439; /* Primary brand color */
    margin-bottom: 20px;
    line-height: 1.1;
}

.page-contact__hero-description {
    font-size: 20px;
    color: #555555;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-contact__btn-primary {
    background: #017439; /* Brand primary color */
    color: #ffffff;
    border: 2px solid transparent;
}

.page-contact__btn-primary:hover {
    background: #005f2e; /* Darker shade */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Contact Info Section */
.page-contact__info-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
}

.page-contact__contact-channels {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.page-contact__channel-item {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-contact__channel-item img {
     /* Adjust size for channel icons */
    
    object-fit: contain;
    margin-bottom: 20px;
}

.page-contact__channel-title {
    font-size: 24px;
    color: #017439;
    margin-bottom: 10px;
}

.page-contact__channel-text {
    font-size: 16px;
    color: #555555;
    margin-bottom: 20px;
}

.page-contact__channel-link {
    display: inline-block;
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #017439;
    padding-bottom: 5px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-contact__channel-link:hover {
    color: #005f2e;
    border-color: #005f2e;
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 80px 0;
    background-color: #017439; /* Dark background for this section */
    color: #ffffff;
}

.page-contact__form-layout {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.page-contact__form-content {
    flex: 1;
    min-width: 300px;
}

.page-contact__form-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-contact__form-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.page-contact__contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    color: #ffffff;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.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 {
    border-color: #FFFFFF;
    background: rgba(0, 0, 0, 0.3);
    outline: none;
}

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

.page-contact__submit-button {
    display: block;
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    background: #FFFFFF; /* Auxiliary color */
    color: #017439; /* Primary color for text */
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-contact__submit-button:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 0;
    background-color: #f8f8f8; /* Light background */
}

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

/* FAQ item styles */
.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 8px; /* Slightly larger border-radius */
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Subtle shadow */
}

/* FAQ default state - answer hidden */
.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px; /* Increased horizontal padding */
  opacity: 0;
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important to ensure priority, value large enough to contain any content */
  padding: 20px !important; /* Uniform padding */
  opacity: 1;
  background: #f0f0f0; /* Slightly darker background for answer */
  border-radius: 0 0 8px 8px; /* Match item border-radius */
  color: #333333; /* Ensure dark text on light background */
}

/* Question style */
.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px; /* Match item border-radius */
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-contact__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-contact__faq-question:active {
  background: #eeeeee;
}

/* Question title style */
.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px; /* Slightly larger font size */
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: #017439; /* Brand primary color for question title */
}

/* Toggle icon */
.page-contact__faq-toggle {
  font-size: 28px; /* Larger icon */
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Larger hit area */
  height: 32px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  color: #017439; /* Brand primary color when active */
  transform: rotate(45deg); /* Example: rotate to become an 'X' or '-' */
}

/* CTA Banner Section */
.page-contact__cta-banner {
    padding: 60px 20px;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    text-align: center;
}

.page-contact__cta-title {
    font-size: 40px;
    font-weight: bold;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.page-contact__cta-description {
    font-size: 20px;
    max-width: 900px;
    margin: 0 auto 40px;
    color: #f0f0f0;
}

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

.page-contact__btn-register,
.page-contact__btn-login {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    max-width: 100%; /* Ensure button doesn't overflow */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
}

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

.page-contact__btn-register:hover {
    background: #a30606; /* Darker red */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

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

.page-contact__btn-login:hover {
    background: #a30606; /* Darker red */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 42px;
    }
    .page-contact__section-title {
        font-size: 32px;
    }
    .page-contact__cta-title {
        font-size: 36px;
    }
    .page-contact__form-layout {
        flex-direction: column;
    }
    .page-contact__form-image {
        order: -1; /* Image above form on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-contact {
        font-size: 16px;
        line-height: 1.6;
    }

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

    .page-contact__hero-title {
        font-size: 32px;
    }
    .page-contact__hero-description {
        font-size: 17px;
    }
    .page-contact__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }

    .page-contact__section-title {
        font-size: 28px;
    }
    .page-contact__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__cta-banner {
        padding: 50px 0;
    }

    .page-contact__container {
        padding: 0 15px;
    }

    .page-contact__contact-channels {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .page-contact__channel-item {
        width: 100%;
        max-width: 100%;
        padding: 25px;
    }

    .page-contact__contact-form {
        padding: 30px 20px;
    }
    .page-contact__form-label {
        font-size: 15px;
    }
    .page-contact__form-input,
    .page-contact__form-textarea,
    .page-contact__submit-button {
        font-size: 16px;
        padding: 12px 15px;
    }

    /* FAQ Mobile */
    .page-contact__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-contact__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-contact__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    .page-contact__faq-answer {
        padding: 0 15px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px !important;
    }

    .page-contact__cta-title {
        font-size: 28px;
    }
    .page-contact__cta-description {
        font-size: 17px;
    }
    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-contact__btn-register,
    .page-contact__btn-login,
    .page-contact__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile image responsive optimization */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .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;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 28px;
    }
    .page-contact__section-title {
        font-size: 24px;
    }
    .page-contact__cta-title {
        font-size: 24px;
    }
    .page-contact__hero-description,
    .page-contact__section-description,
    .page-contact__cta-description {
        font-size: 15px;
    }
    .page-contact__cta-button,
    .page-contact__btn-register,
    .page-contact__btn-login {
        font-size: 15px;
        padding: 12px 25px;
    }
}