/* style/contact.css */

/* General page styling */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #ffffff; /* Explicitly set for clarity */
}

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

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

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

/* 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); /* Fixed header offset */
    background: linear-gradient(135deg, #e0ffe0, #ffffff); /* Light gradient for hero */
    overflow: hidden; /* Ensure no overflow from image */
}

.page-contact__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2; /* Ensure content is above image if image is positioned absolutely */
}

.page-contact__hero-title {
    font-size: 48px;
    color: #017439;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

.page-contact__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-contact__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.page-contact__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #C30808; /* Login/Register color for CTA */
    color: #FFFF00; /* Login/Register font color */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-contact__cta-button:hover {
    background: #a30707; /* Slightly darker on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

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

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

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

.page-contact__feature-title {
    font-size: 24px;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__feature-item p {
    font-size: 16px;
    color: #555555;
}

/* Contact Methods Section */
.page-contact__contact-methods-section {
    padding: 80px 0;
    background-color: #017439; /* Dark background from brand color */
    color: #ffffff; /* Light text for dark background */
}

.page-contact__contact-methods-section .page-contact__section-title {
    color: #ffffff; /* White title on dark background */
}

.page-contact__contact-methods-section .page-contact__section-description {
    color: #f0f0f0; /* Lighter text for description on dark background */
}

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

.page-contact__method-card {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-contact__method-card img {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-contact__method-title {
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__method-card p {
    font-size: 16px;
    color: #f0f0f0;
    flex-grow: 1; /* Allow paragraph to take available space */
    margin-bottom: 20px;
}

.page-contact__email-link,
.page-contact__phone-link {
    color: #FFFF00; /* Highlighted links */
    text-decoration: underline;
}

.page-contact__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: #C30808;
    color: #FFFF00;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: auto; /* Push button to bottom */
}

.page-contact__btn-primary:hover {
    background: #a30707;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-contact__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: #ffffff;
    color: #017439;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #017439;
    cursor: pointer;
    margin-top: auto; /* Push button to bottom */
}

.page-contact__btn-secondary:hover {
    background: #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-contact__social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.page-contact__social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #C30808;
    color: #FFFF00;
    border-radius: 50%;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-contact__social-icon:hover {
    background: #a30707;
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
    color: #333333;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

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

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

.page-contact__form-submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border-radius: 5px;
    background: #017439;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-weight: bold;
}

.page-contact__form-submit-btn:hover {
    background: #005f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

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

/* FAQ容器样式 */
.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.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 15px;
  opacity: 0;
  background: #f9f9f9;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng!important để đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

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

.page-contact__faq-item.active .page-contact__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #d0d0d0;
}

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

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

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

/* Toggle icon */
.page-contact__faq-toggle {
  font-size: 24px;
  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 events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  color: #017439; /* Brand color when active */
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-contact__faq-answer p {
    font-size: 16px;
    color: #555555;
    margin: 0;
}

/* Commitment Section */
.page-contact__commitment-section {
    padding: 80px 0;
    text-align: center;
    background-color: #017439; /* Brand color background */
    color: #ffffff; /* White text for dark background */
}

.page-contact__commitment-section .page-contact__section-title {
    color: #ffffff;
}

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

/* Responsive design */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 40px;
    }
    .page-contact__section-title {
        font-size: 30px;
    }
    .page-contact__hero-description {
        font-size: 18px;
    }
    .page-contact__section-description {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    /* Mobile General */
    .page-contact__container {
        padding: 0 15px;
    }

    /* Mobile Hero Section */
    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* 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: 16px;
    }
    .page-contact__hero-image img {
        border-radius: 4px;
    }
    .page-contact__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Mobile Sections */
    .page-contact__why-us-section,
    .page-contact__contact-methods-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__commitment-section {
        padding: 40px 0;
    }

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

    /* Mobile Feature Grid */
    .page-contact__feature-grid {
        gap: 20px;
    }
    .page-contact__feature-item {
        padding: 20px;
    }
    .page-contact__feature-title {
        font-size: 20px;
    }

    /* Mobile Contact Methods Grid */
    .page-contact__methods-grid {
        gap: 20px;
    }
    .page-contact__method-card {
        padding: 25px;
    }
    .page-contact__method-title {
        font-size: 20px;
    }
    .page-contact__method-card img {
        
    }

    /* Mobile Form */
    .page-contact__contact-form {
        padding: 25px;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
        font-size: 15px;
    }
    .page-contact__form-submit-btn {
        padding: 12px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Mobile FAQ */
    .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: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-contact__faq-answer {
        padding: 0 15px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px !important;
    }
    .page-contact__faq-answer p {
        font-size: 15px;
    }

    /* Mobile Image Responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__contact-form {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    /* Button containers for mobile */
    .page-contact__social-links {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-contact__social-icon {
        flex-grow: 1; /* Allow icons to grow to fill space */
        max-width: calc(50% - 10px); /* Two icons per row */
        height: 45px; /* Slightly larger touch target */
    }
}