/* style/contact.css */

/* --- General Page Styles --- */
.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

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

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

.page-contact__section-title {
    font-size: 36px;
    color: #26A9E0; /* Primary brand color for titles */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

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

.page-contact__section-intro--white {
    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); /* Fixed header offset */
    background: linear-gradient(135deg, #26A9E0, #FFFFFF);
    overflow: hidden;
}

.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;
    position: relative;
    z-index: 1;
}

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

.page-contact__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 90%;
    max-width: 800px;
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 10px;
}

.page-contact__main-title {
    font-size: 48px;
    color: #FFFFFF;
    margin-bottom: 15px;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-contact__intro-description {
    font-size: 20px;
    color: #F0F0F0;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.page-contact__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #EA7C07;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__cta-button:hover {
    background: #D46F06;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- Contact Info Section --- */
.page-contact__contact-info-section {
    background: #f9f9f9;
}

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

.page-contact__info-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
    color: #333333;
}

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

.page-contact__card-title {
    font-size: 24px;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-contact__info-card p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #555555;
    flex-grow: 1;
}

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

.page-contact__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #26A9E0;
    color: #FFFFFF;
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

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

/* --- Contact Form Section --- */
.page-contact__form-section {
    background: #26A9E0;
    color: #ffffff;
}

.page-contact__dark-bg {
    background: #26A9E0;
    color: #ffffff;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto 0;
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    text-align: left;
    color: #333333;
}

.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 15px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #26A9E0;
    outline: none;
}

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

.page-contact__submit-button {
    width: 100%;
    padding: 15px;
    background: #EA7C07;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__submit-button:hover {
    background: #D46F06;
    transform: translateY(-2px);
}

/* --- Why Us Section --- */
.page-contact__why-us-section {
    background: #f0f5f8;
}

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

.page-contact__feature-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #333333;
}

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

.page-contact__feature-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-contact__feature-title {
    font-size: 22px;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: 700;
}

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

/* --- FAQ Section --- */
.page-contact__faq-section {
    background: #ffffff;
}

.page-contact__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    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;
  background: #f9f9f9;
  color: #555555;
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height để đảm bảo mở rộng */
.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

/* 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: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #333333;
}

.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;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #26A9E0;
}

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

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

/* --- Feedback Section --- */
.page-contact__feedback-section {
    background: #26A9E0;
    color: #ffffff;
    padding: 80px 0;
}

.page-contact__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: #ffffff;
    color: #26A9E0;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: 2px solid #26A9E0;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-contact__btn-secondary--white-text {
    background: #ffffff;
    color: #26A9E0;
    border-color: #ffffff;
}

.page-contact__btn-secondary--white-text:hover {
    background: #f0f0f0;
    color: #1e87b7;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-contact__section-title {
        font-size: 32px;
    }
    .page-contact__intro-description {
        font-size: 17px;
    }
    .page-contact__main-title {
        font-size: 40px;
    }
    .page-contact__hero-content {
        padding: 25px;
    }
}

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

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

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

    .page-contact__section-intro {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* --- Hero Section Mobile --- */
    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-contact__hero-image img {
        border-radius: 4px;
    }
    .page-contact__hero-content {
        position: static;
        transform: none;
        width: 100%;
        max-width: none;
        padding: 20px;
        margin-top: -50px;
        background: rgba(0, 0, 0, 0.7);
    }
    .page-contact__main-title {
        font-size: 32px;
        margin-bottom: 10px;
    }
    .page-contact__intro-description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-contact__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* --- Contact Info Section Mobile --- */
    .page-contact__info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-contact__info-card {
        min-height: auto;
        padding: 25px;
    }
    .page-contact__card-title {
        font-size: 20px;
    }
    .page-contact__social-links {
        justify-content: center;
    }

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

    /* --- Why Us Section Mobile --- */
    .page-contact__why-us-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-contact__feature-item {
        padding: 25px;
    }
    .page-contact__feature-icon {
        width: 100px;
        height: 100px;
    }
    .page-contact__feature-title {
        font-size: 20px;
    }

    /* --- FAQ Section Mobile --- */
    .page-contact__faq-list {
        margin-top: 30px;
    }
    .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__feedback-section {
        padding: 50px 0;
    }
    .page-contact__btn-secondary {
        padding: 10px 20px;
        font-size: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* --- Image Responsiveness (Global) --- */
    .page-contact img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__info-card,
    .page-contact__feature-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-contact__hero-section {
      padding-left: 0;
      padding-right: 0;
    }
    .page-contact__hero-image {
      padding-left: 15px;
      padding-right: 15px;
    }
    .page-contact__hero-content {
      padding-left: 15px;
      padding-right: 15px;
    }

    /* --- Button Responsiveness (Global) --- */
    .page-contact__cta-button,
    .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__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-wrap: wrap !important;
      gap: 10px;
    }
    .page-contact__cta-buttons {
      display: flex;
      flex-direction: column;
    }
}