/* style/contact.css */

/* Biến màu */
:root {
    --primary-color: #FFD700; /* Vàng kim */
    --secondary-color: #8B0000; /* Đỏ đậm */
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --background-light: #f5f5f5;
    --background-dark: #2c2c2c;
    --border-color: #e0e0e0;
}

/* Thiết lập chung cho trang liên hệ */
.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

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

.page-contact .section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
}

.page-contact .section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.page-contact .section-description {
    text-align: center;
    font-size: 1.1em;
    color: var(--text-dark);
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-contact .hero-contact-section {
    position: relative;
    padding: 100px 0;
    color: var(--text-light);
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #a00000 100%); /* Nền đỏ đậm */
}

.page-contact .hero-overlay {
    position: relative;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.3); /* Lớp phủ nhẹ */
    padding: 40px 0;
}

.page-contact .main-heading {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: bold;
}

.page-contact .sub-heading {
    font-size: 1.3em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: var(--text-light);
}

.page-contact .cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-dark);
    padding: 18px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact .cta-button:hover {
    background-color: #ffd200; /* Vàng đậm hơn khi hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Why Contact Section */
.page-contact .section-why-contact {
    padding: 80px 0;
    background-color: var(--background-light);
}

.page-contact .why-contact-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-contact .why-contact-content .text-content {
    flex: 2;
    font-size: 1.1em;
}

.page-contact .why-contact-content .text-content p {
    margin-bottom: 20px;
}

.page-contact .why-contact-content .image-container {
    flex: 1;
    min-width: 300px;
}

.page-contact .why-contact-content .feature-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    min-height: 250px;
}

/* Contact Methods Section */
.page-contact .section-contact-methods {
    padding: 80px 0;
    background-color: #fcfcfc;
}

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

.page-contact .method-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-contact .method-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-contact .method-icon {
    width: 150px; /* Tăng kích thước ảnh */
    height: 150px; /* Tăng kích thước ảnh */
    margin-bottom: 25px;
    object-fit: contain;
}

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

.page-contact .method-description {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.page-contact .btn-small {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-dark);
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-contact .btn-small:hover {
    background-color: #ffd200;
}

/* Contact Form Section */
.page-contact .section-contact-form {
    padding: 80px 0;
    background-color: var(--background-light);
}

.page-contact .contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.page-contact .form-group {
    margin-bottom: 25px;
}

.page-contact .form-label {
    display: block;
    font-size: 1.1em;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-contact .form-input,
.page-contact .form-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    color: var(--text-dark);
    background-color: #f9f9f9;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-contact .submit-button {
    display: block;
    width: 100%;
    padding: 18px;
    background-color: var(--secondary-color);
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact .submit-button:hover {
    background-color: #a00000; /* Đỏ đậm hơn khi hover */
    transform: translateY(-2px);
}

/* FAQ Section */
.page-contact .section-faq {
    padding: 80px 0;
    background-color: #fcfcfc;
}

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

.page-contact .faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-contact .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-contact .faq-question:hover {
    background-color: #f0f0f0;
}

.page-contact .faq-title {
    font-size: 1.25em;
    color: var(--text-dark);
    margin: 0;
    font-weight: bold;
    flex-grow: 1;
    text-align: left;
}

.page-contact .faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

.page-contact .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 20px;
    color: var(--text-dark);
    background-color: #f9f9f9;
}

.page-contact .faq-item.active .faq-answer {
    max-height: 500px; /* Đủ lớn để chứa nội dung */
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.page-contact .faq-answer p {
    margin: 0;
    font-size: 1em;
}

/* Commitment Section */
.page-contact .section-commitment {
    padding: 80px 0;
    background-color: var(--background-dark);
    color: var(--text-light);
}

.page-contact .section-commitment .section-title {
    color: var(--primary-color);
}

.page-contact .commitment-content {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.page-contact .commitment-image {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-height: 250px;
}

.page-contact .commitment-content .text-content {
    flex: 2;
    font-size: 1.1em;
}

.page-contact .commitment-content .text-content p {
    margin-bottom: 20px;
}

/* Call to Action Bottom Section */
.page-contact .section-cta-bottom {
    padding: 80px 0;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--text-dark);
}

.page-contact .section-cta-bottom .section-title {
    color: var(--secondary-color);
}

.page-contact .section-cta-bottom .section-description {
    color: var(--text-dark);
}

.page-contact .section-cta-bottom .cta-button {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.page-contact .section-cta-bottom .cta-button:hover {
    background-color: #a00000;
    transform: translateY(-3px);
}

/* Link styles */
.page-contact a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-contact a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-contact .text-link {
    color: inherit; /* Kế thừa màu văn bản */
    text-decoration: underline;
    font-weight: bold;
}

.page-contact .text-link:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-contact .main-heading {
        font-size: 2.8em;
    }
    .page-contact .sub-heading {
        font-size: 1.1em;
    }
    .page-contact .section-title {
        font-size: 2em;
    }
    .page-contact .why-contact-content {
        flex-direction: column;
        text-align: center;
    }
    .page-contact .why-contact-content .image-container {
        order: -1; /* Đẩy ảnh lên trên */
        margin-bottom: 30px;
    }
    .page-contact .commitment-content {
        flex-direction: column;
        text-align: center;
    }
    .page-contact .commitment-image {
        margin-bottom: 30px;
    }
    .page-contact .hero-contact-section {
        padding: 80px 0;
    }
    .page-contact .method-card {
        padding: 25px;
    }
    .page-contact .method-icon {
        width: 120px;
        height: 120px;
    }
    .page-contact .method-title {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .page-contact .main-heading {
        font-size: 2.2em;
    }
    .page-contact .sub-heading {
        font-size: 1em;
    }
    .page-contact .section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-contact .section-description {
        margin-bottom: 40px;
    }
    .page-contact .cta-button {
        padding: 15px 30px;
        font-size: 1em;
    }
    .page-contact .methods-grid {
        grid-template-columns: 1fr;
    }
    .page-contact .form-input,
    .page-contact .form-textarea {
        padding: 12px;
    }
    .page-contact .submit-button {
        padding: 15px;
        font-size: 1em;
    }
    .page-contact .faq-question {
        padding: 15px;
    }
    .page-contact .faq-title {
        font-size: 1.1em;
    }
    .page-contact .faq-toggle {
        font-size: 1.5em;
    }
    .page-contact .faq-answer {
        padding: 0 15px;
    }
    .page-contact .faq-item.active .faq-answer {
        padding: 15px;
    }
    .page-contact .why-contact-content .feature-image,
    .page-contact .commitment-image {
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .page-contact .hero-contact-section {
        padding: 60px 0;
    }
    .page-contact .main-heading {
        font-size: 1.8em;
    }
    .page-contact .sub-heading {
        font-size: 0.9em;
    }
    .page-contact .section-title {
        font-size: 1.5em;
    }
    .page-contact .container {
        padding: 15px;
    }
    .page-contact .method-icon {
        width: 100px;
        height: 100px;
    }
    .page-contact .method-title {
        font-size: 1.4em;
    }
    .page-contact .contact-form {
        padding: 25px;
    }
}