/* style/contact.css */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background: #FFFFFF; /* Default background */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-contact__section {
    padding: 60px 0;
    text-align: center;
}

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

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

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

/* 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;
    background: linear-gradient(135deg, #017439, #FFFFFF); /* Blending primary and auxiliary colors */
    color: #FFFFFF; /* Light text 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;
    z-index: 1; /* Ensure content is above potential background effects if any */
}

.page-contact__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.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%;
}

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

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

.page-contact__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #017439; /* Primary color for general CTA */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__cta-button:hover {
    background: #005f2c; /* Slightly darker primary on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Specific button for registration at the bottom */
.page-contact__cta-button--large {
    background: #C30808; /* Register button color */
    color: #FFFF00; /* Register button font color */
    padding: 18px 50px;
    font-size: 22px;
}

.page-contact__cta-button--large:hover {
    background: #a30606; /* Darker red on hover */
}


/* Dark Section Styling */
.page-contact__dark-section {
    background: #017439; /* Primary color as background */
    color: #FFFFFF; /* White text for dark background */
}

.page-contact__dark-section .page-contact__section-title {
    color: #FFFFFF; /* White title for dark background */
}

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

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

.page-contact__channel-card {
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    color: #333333;
}

.page-contact__channel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-contact__channel-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min- /* Ensure images have a minimum height */
}

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

.page-contact__card-description {
    font-size: 16px;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows description to take available space */
}

.page-contact__email-address,
.page-contact__phone-number {
    font-size: 18px;
    font-weight: bold;
    color: #017439;
    margin-bottom: 15px;
}

.page-contact__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: #017439;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.page-contact__btn-primary:hover {
    background: #005f2c;
    transform: translateY(-1px);
}

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

.page-contact__social-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
    text-decoration: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.page-contact__social-btn:hover {
    background: #017439;
    color: #FFFFFF;
}

/* When to Contact Section */
.page-contact__reason-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-contact__reason-item {
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    color: #333333;
}

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

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

.page-contact__reason-description {
    font-size: 16px;
    color: #555555;
}

/* Process Section */
.page-contact__process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-contact__step-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.page-contact__step-icon {
    width: 60px;
    height: 60px;
    background: #FFFFFF;
    color: #017439;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 20px auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.page-contact__step-description {
    font-size: 16px;
    color: #f0f0f0;
}

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

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

/* 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;
}

/* FAQ展开状态 - \u{26A0}️ Sử dụng!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important; /* \u{26A0}️ 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: #ffffff; /* White background for answers */
  border-radius: 0 0 5px 5px;
  color: #333333; /* Dark text for answers */
}

/* Vấn đề kiểu dáng */
.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;
  color: #333333; /* Dark text for questions */
}

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

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

/* Vấn đề tiêu đề kiểu dáng */
.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px; /* Slightly larger for better readability */
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn chặn thẻ h3 chặn sự kiện nhấp */
  color: #017439; /* Primary color for FAQ questions */
}

/* Chuyển đổi biểu tượng */
.page-contact__faq-toggle {
  font-size: 28px; /* Slightly 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; /* Ngăn chặn biểu tượng chặn sự kiện nhấp */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Larger toggle area */
  height: 32px;
}

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


/* Office Section */
.page-contact__office-info {
    font-size: 18px;
    margin-top: 30px;
    line-height: 1.8;
    color: #f0f0f0;
}

.page-contact__address-line {
    margin-bottom: 10px;
}

.page-contact__office-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: block; /* Important for centering and max-width */
    object-fit: cover;
}

/* Conclusion Section */
.page-contact__cta-bottom {
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 42px;
    }
    .page-contact__section-title {
        font-size: 32px;
    }
    .page-contact__section-description {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .page-contact {
        padding-top: var(--header-offset, 120px) !important; /* Mobile padding-top */
        font-size: 16px;
        line-height: 1.6;
    }

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

    .page-contact__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-contact__hero-description {
        font-size: 16px;
        margin-bottom: 20px;
    }

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

    .page-contact__cta-button--large {
        padding: 15px 35px;
        font-size: 18px;
    }

    .page-contact__section {
        padding: 40px 0;
    }

    .page-contact__section-title {
        font-size: 28px;
    }

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

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

    .page-contact__channels-grid,
    .page-contact__reason-grid,
    .page-contact__process-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-contact__channel-card,
    .page-contact__reason-item,
    .page-contact__step-item {
        padding: 25px;
        text-align: center;
    }
    
    .page-contact__channel-card img {
        min-
    }

    .page-contact__card-title,
    .page-contact__reason-title,
    .page-contact__step-title {
        font-size: 20px;
    }

    .page-contact__btn-primary,
    .page-contact__social-btn {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-contact__social-links {
        flex-direction: column;
    }

    /* Mobile image responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover; /* Ensure images fill their space nicely */
    }

    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__channels-grid,
    .page-contact__reason-grid,
    .page-contact__process-steps,
    .page-contact__faq-list,
    .page-contact__office-info,
    .page-contact__cta-bottom {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 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;
    }
}

/* Ensure content images meet minimum size requirements for desktop */
.page-contact__channel-card img,
.page-contact__office-image {
    min-width: 200px;
    min-height: 200px;
}