/* style/contact.css */

/* Biến CSS */
:root {
    --primary-color: #8B0000; /* Deep Red */
    --secondary-color: #FFD700; /* Gold */
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-dark: #111111;
    --background-light: #f1f3f5;
    --card-background: #ffffff;
    --border-color: #e0e0e0;
}

/* Đảm bảo nội dung không bị che bởi fixed header */
.page-contact {
    padding-top: 120px; /* Giá trị mặc định cho desktop */
    color: var(--text-light); /* Body background is dark (#111), so use light text */
}

@media (max-width: 768px) {
    .page-contact {
        padding-top: 100px !important; /* Giá trị cho mobile */
    }
}

/* HERO Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: var(--primary-color); /* Sử dụng màu chủ đạo */
    color: var(--text-light);
    background: linear-gradient(135deg, var(--primary-color), #4a0000); /* Gradient từ đỏ đậm sang đỏ nhạt hơn */
}

.page-contact__hero-container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.page-contact__page-title {
    font-size: 3.2em;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--secondary-color); /* Tiêu đề nổi bật với màu vàng */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact__hero-description {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-contact__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border: none;
}

.page-contact__cta-button:hover {
    background: #e6c200; /* Màu vàng đậm hơn khi hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Contact Info Section */
.page-contact__info-section {
    padding: 60px 20px;
    background: var(--background-dark); /* Nền tối để tương phản */
    color: var(--text-light);
}

.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.page-contact__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.page-contact__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
    color: #cccccc;
}

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

.page-contact__method-card {
    background: rgba(255, 255, 255, 0.1); /* Nền hơi trong suốt */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.page-contact__method-icon {
    width: 120px; /* Tăng kích thước icon */
    height: auto;
    margin-bottom: 20px;
    filter: brightness(1.2); /* Làm sáng icon để nổi bật trên nền tối */
}

.page-contact__method-title {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-contact__method-description {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #bbbbbb;
}

.page-contact__btn-contact {
    display: inline-block;
    padding: 12px 25px;
    background: var(--secondary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
}

.page-contact__btn-contact:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 60px 20px;
    background: var(--primary-color);
    color: var(--text-light);
    background: linear-gradient(135deg, #4a0000, var(--primary-color)); /* Gradient ngược lại */
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.3); /* Nền form hơi tối */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--text-light);
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #555555;
    border-radius: 6px;
    background: #333333; /* Nền input tối */
    color: var(--text-light);
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: #aaaaaa;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
    outline: none;
}

.page-contact__form-textarea {
    resize: vertical;
}

.page-contact__btn-submit {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background: var(--secondary-color);
    color: var(--text-dark);
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-contact__btn-submit:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 60px 20px;
    background: var(--background-dark);
    color: var(--text-light);
}

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

.page-contact__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

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

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: rgba(255, 255, 255, 0.05); /* Nền hơi sáng hơn cho câu trả lời */
    border-radius: 0 0 5px 5px;
    color: #cccccc;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.1); /* Nền câu hỏi hơi trong suốt */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-contact__faq-question:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.1);
}

.page-contact__faq-question:active {
    background: rgba(255, 255, 255, 0.2);
}

.page-contact__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--text-light);
}

.page-contact__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color);
    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: 28px;
    height: 28px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(45deg); /* Xoay dấu '+' thành 'x' */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__page-title {
        font-size: 2.8em;
    }

    .page-contact__section-title {
        font-size: 2em;
    }

    .page-contact__method-icon {
        width: 100px;
    }

    .page-contact__method-title {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding: 40px 15px;
    }
    
    .page-contact__page-title {
        font-size: 2.2em;
    }

    .page-contact__hero-description {
        font-size: 1em;
    }

    .page-contact__cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }

    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__faq-section {
        padding: 40px 15px;
    }

    .page-contact__section-title {
        font-size: 1.8em;
    }

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

    .page-contact__contact-methods {
        grid-template-columns: 1fr;
    }

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

    .page-contact__method-icon {
        width: 80px;
    }

    .page-contact__method-title {
        font-size: 1.4em;
    }

    .page-contact__method-description {
        font-size: 0.9em;
    }

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

    .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-submit {
        font-size: 1.1em;
        padding: 12px 15px;
    }

    .page-contact__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-contact__faq-question h3 {
        font-size: 1em;
        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;
    }
    
    /* Global image responsive for mobile */
    .page-contact img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    
    .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;
    }
}

@media (max-width: 480px) {
    .page-contact__page-title {
        font-size: 1.8em;
    }

    .page-contact__section-title {
        font-size: 1.6em;
    }

    .page-contact__cta-button {
        width: 100%;
    }

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

    .page-contact__method-icon {
        width: 60px;
    }

    .page-contact__method-title {
        font-size: 1.2em;
    }

    .page-contact__contact-form {
        padding: 25px 15px;
    }
}