/* style/contact.css */
/* Base styles for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #f8f8f8; /* Light background for the page content */
}

/* Fixed header offset - apply to the first main content section if shared.css doesn't apply to body */
/* Assuming shared.css DOES NOT apply padding-top to body for this page, so applying here */
.page-contact__hero-section {
    padding-top: var(--header-offset, 120px); /* Adjust based on shared.css behavior */
    position: relative;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px; /* Minimum height for hero */
}

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

.page-contact__hero-overlay {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    padding: 30px;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 20px;
}

.page-contact__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #E3B23C; /* Auxiliary color for emphasis */
    font-weight: bold;
    line-height: 1.2;
}

.page-contact__hero-description {
    font-size: 1.2em;
    line-height: 1.5;
    color: #f0f0f0;
}

/* General Section Styling */
.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-contact__section-title {
    font-size: 2.5em;
    color: #0A2463; /* Main brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

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

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

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

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

.page-contact__method-title {
    font-size: 1.8em;
    color: #0A2463;
    margin-bottom: 15px;
}

.page-contact__method-text {
    font-size: 1em;
    color: #666666;
    margin-bottom: 20px;
}

.page-contact__method-detail {
    font-size: 1.1em;
    color: #333333;
    font-weight: bold;
    margin-bottom: 25px;
}

.page-contact__link {
    color: #0A2463;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

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

.page-contact__form-section .page-contact__section-title {
    color: #E3B23C; /* Auxiliary color for titles on dark background */
}

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

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #1a3a7c; /* Slightly lighter dark background for the form */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #3a5b9e;
    border-radius: 5px;
    background-color: #0a2f77;
    color: #ffffff;
    font-size: 1em;
    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: #a0b0d0;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #E3B23C;
    background-color: #123170;
    outline: none;
}

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

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-contact__btn-primary {
    background-color: #E3B23C;
    color: #0A2463;
    border: 2px solid #E3B23C;
}

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

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

.page-contact__btn-secondary:hover {
    background-color: #0A2463;
    color: #ffffff;
}

.page-contact__btn-submit {
    width: auto;
    margin-top: 10px;
    background-color: #E3B23C;
    color: #0A2463;
}

.page-contact__btn-submit:hover {
    background-color: #d6a12e;
    color: #ffffff;
}

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

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

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

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

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

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

.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: #0A2463;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-contact__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #E3B23C;
  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;
  height: 32px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  color: #0A2463;
  transform: rotate(180deg); /* Rotate for 'minus' effect */
}

.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 25px;
  opacity: 0;
  background: #fefefe;
  border-radius: 0 0 8px 8px;
  color: #444444;
}

/* 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 accommodate any content */
  padding: 20px 25px !important;
  opacity: 1;
  border: 1px solid #e0e0e0;
  border-top: none;
}

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

/* Call to Action Section */
.page-contact__cta-section {
    padding: 80px 0;
    background-color: #0A2463; /* Dark background */
    color: #ffffff;
    text-align: center;
}

.page-contact__cta-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-contact__cta-section .page-contact__section-title {
    color: #E3B23C;
}

.page-contact__cta-section .page-contact__section-description {
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-contact__cta-button {
    padding: 15px 40px;
    font-size: 1.2em;
}

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

@media (max-width: 768px) {
    .page-contact__hero-section {
        min-height: 300px;
        padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
    }
    .page-contact__hero-overlay {
        padding: 20px;
    }
    .page-contact__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-contact__hero-description {
        font-size: 0.95em;
    }

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

    .page-contact__container {
        padding: 0 15px; /* Mobile padding */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

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

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

    .page-contact__contact-methods {
        grid-template-columns: 1fr; /* Stack cards vertically on mobile */
        gap: 20px;
    }

    .page-contact__method-card {
        padding: 25px;
    }

    .page-contact__contact-form {
        padding: 30px;
    }

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

    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
        font-size: 0.95em;
    }
    
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact a[class*="button"],
    .page-contact a[class*="btn"] {
        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;
    }

    .page-contact__btn-submit {
        width: 100%; /* Full width submit button */
    }

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

    /* Image responsive handling */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-contact__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important; /* Hero image should cover the section */
    }
    
    .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;
    }

    .page-contact__cta-buttons,
    .page-contact__button-group,
    .page-contact__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-direction: column !important; /* Stack buttons vertically */
      gap: 10px;
    }
}