/* style/contact-us.css */
:root {
    --primary-color: #0A192F;
    --secondary-color: #FFD700;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f9f9f9;
    --bg-dark: #0A192F;
    --border-color: #e0e0e0;
}

.page-contact-us {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light); /* Assuming shared.css body background is light */
}

/* Top padding for the first content module */
.page-contact-us__hero-banner {
    padding-top: 120px; /* Desktop fixed header offset */
    background-color: var(--primary-color);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-contact-us__hero-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 1;
}

.page-contact-us__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    line-height: 1.2;
}

.page-contact-us__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-contact-us__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    opacity: 0.1;
}

.page-contact-us__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.page-contact-us__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

.page-contact-us__section-description {
    font-size: 1.1em;
    color: var(--text-dark);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-contact-us__info-section {
    background-color: var(--bg-light);
    padding: 60px 0;
}

.page-contact-us__contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-contact-us__method-card {
    background: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    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;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-contact-us__method-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--secondary-color);
}

.page-contact-us__method-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Makes icon white on golden background */
}

.page-contact-us__method-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-contact-us__method-text {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.page-contact-us__social-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-contact-us__social-link:hover {
    color: var(--secondary-color);
}

.page-contact-us__form-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0;
}

.page-contact-us__form-section .page-contact-us__section-title {
    color: var(--secondary-color);
}

.page-contact-us__form-section .page-contact-us__section-description {
    color: var(--text-light);
}

.page-contact-us__contact-form {
    max-width: 700px;
    margin: 40px auto 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.page-contact-us__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-light);
}

.page-contact-us__form-input,
.page-contact-us__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text-light);
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.page-contact-us__form-input::placeholder,
.page-contact-us__form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.page-contact-us__form-input:focus,
.page-contact-us__form-textarea:focus {
    border-color: var(--secondary-color);
    background-color: rgba(0, 0, 0, 0.3);
    outline: none;
}

.page-contact-us__form-textarea {
    resize: vertical;
}

.page-contact-us__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    border: none;
}

.page-contact-us__btn--primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.page-contact-us__btn--primary:hover {
    background-color: #e6c200; /* Darken secondary color */
    color: var(--primary-color);
}

.page-contact-us__btn--secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-contact-us__btn--secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.page-contact-us__faq-section {
    background-color: var(--bg-light);
    padding: 60px 0;
}

.page-contact-us__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

/* FAQ container styles */
.page-contact-us__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ default state - answer hidden */
.page-contact-us__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 expanded state - 🚨 Use !important and sufficiently large max-height to ensure it expands */
.page-contact-us__faq-item.active .page-contact-us__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 styles */
.page-contact-us__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

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

/* Question title styles */
.page-contact-us__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 tag from blocking click event */
  color: var(--primary-color);
}

/* Toggle icon */
.page-contact-us__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 event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-contact-us__faq-item.active .page-contact-us__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg);
}

.page-contact-us__cta-section {
    background-color: var(--primary-color);
    padding: 80px 0;
    text-align: center;
    color: var(--text-light);
}

.page-contact-us__cta-title {
    font-size: 2.8em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.page-contact-us__cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-light);
}

.page-contact-us__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-contact-us a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-contact-us a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact-us__hero-title {
        font-size: 2.8em;
    }
    .page-contact-us__section-title {
        font-size: 2em;
    }
    .page-contact-us__cta-title {
        font-size: 2.2em;
    }
    .page-contact-us__method-card {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .page-contact-us {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-contact-us__hero-banner {
        padding-top: 100px; /* Mobile fixed header offset */
        padding-bottom: 40px;
    }
    .page-contact-us__hero-title {
        font-size: 2.2em;
    }
    .page-contact-us__hero-description {
        font-size: 1em;
    }
    .page-contact-us__section-title {
        font-size: 1.8em;
    }
    .page-contact-us__section-description {
        font-size: 0.95em;
    }
    .page-contact-us__container {
        padding: 30px 15px;
    }
    .page-contact-us__contact-methods {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-contact-us__contact-form {
        padding: 30px 20px;
    }
    .page-contact-us__btn {
        padding: 10px 20px;
        font-size: 1em;
    }
    .page-contact-us__cta-title {
        font-size: 1.8em;
    }
    .page-contact-us__cta-description {
        font-size: 1em;
    }
    .page-contact-us__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-contact-us__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-contact-us__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-contact-us__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-contact-us__faq-answer {
        padding: 0 15px;
    }
    .page-contact-us__faq-item.active .page-contact-us__faq-answer {
        padding: 15px !important;
    }
    /* Mobile image responsive adaptation */
    .page-contact-us img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-contact-us__hero-image-wrapper,
    .page-contact-us__method-icon,
    .page-contact-us__container,
    .page-contact-us__contact-form,
    .page-contact-us__faq-list,
    .page-contact-us__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-contact-us__method-icon {
        width: 60px;
        height: 60px;
    }
    .page-contact-us__method-img {
        width: 40px;
        height: 40px;
    }
}

/* Ensuring image colors are not altered */
.page-contact-us img {
    filter: none; /* No CSS filters to change image color */
}

/* Color contrast fixes */
.page-contact-us a {
    color: var(--secondary-color);
}
.page-contact-us a:hover {
    color: #e6c200; /* Darken secondary color on hover */
}

/* Specific contrast adjustments for text on primary-color background */
.page-contact-us__hero-description a,
.page-contact-us__form-section .page-contact-us__section-description a,
.page-contact-us__cta-description a {
    color: var(--secondary-color); /* Ensure links are visible on dark background */
}
.page-contact-us__hero-description a:hover,
.page-contact-us__form-section .page-contact-us__section-description a:hover,
.page-contact-us__cta-description a:hover {
    color: var(--text-light); /* Hover state is also visible */
}

/* Ensure method card icons are white on golden background */
.page-contact-us__method-icon img {
    filter: brightness(0) invert(1); 
}