/* style/contact.css */

/* Biến CSS */
:root {
    --primary-color: #007bff; /* Deep Blue */
    --secondary-color: #28a745; /* Green */
    --accent-color: #FFD700; /* Gold */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #000000;
    --bg-light: #f8f9fa;
    --card-bg-dark: rgba(255, 255, 255, 0.1);
    --card-bg-light: #ffffff;
    --border-color: #e0e0e0;
}

/* --- General Page Styles (scoped to .page-contact) --- */
.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Body background is dark, so text is light */
    background-color: var(--bg-dark); /* Inherited from shared.css, specified for clarity */
    padding-top: 120px; /* Adjust for fixed header on desktop */
}

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

.page-contact__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--accent-color); /* Gold for titles */
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.page-contact__section-intro {
    font-size: 18px;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Hero Section --- */
.page-contact__hero-section {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #007bff, #0056b3); /* Dark blue gradient */
    color: var(--text-light);
    text-align: center;
}

.page-contact__main-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--accent-color); /* Gold for main title */
    line-height: 1.2;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.page-contact__description {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-contact__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-contact__btn-primary {
    background: var(--accent-color); /* Gold */
    color: var(--text-dark);
}

.page-contact__btn-primary:hover {
    background: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-contact__btn-secondary {
    background: var(--primary-color); /* Deep Blue */
    color: var(--text-light);
    border: 2px solid var(--accent-color);
}

.page-contact__btn-secondary:hover {
    background: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* --- Contact Methods Section --- */
.page-contact__methods-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

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

.page-contact__method-item {
    background: var(--card-bg-dark);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-contact__method-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    filter: brightness(1.2); /* Enhance icon visibility on dark background */
}

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

.page-contact__method-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.page-contact__method-info {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-light);
    margin-bottom: 10px;
}

.page-contact__email-link, .page-contact__phone-link, .page-contact__method-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-contact__email-link:hover, .page-contact__phone-link:hover, .page-contact__method-link:hover {
    color: #32cd32; /* Lighter green on hover */
    text-decoration: underline;
}

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

.page-contact__social-link {
    color: var(--primary-color);
    background-color: var(--text-light);
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-contact__social-link:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-contact__cta-text {
    font-size: 18px;
    text-align: center;
    margin-top: 60px;
    color: var(--text-light);
}

/* --- Support Section --- */
.page-contact__support-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Slightly lighter dark background */
    color: var(--text-light);
}

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

.page-contact__support-item {
    background: var(--card-bg-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-contact__support-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.page-contact__support-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.page-contact__conclusion-text {
    font-size: 18px;
    text-align: center;
    margin-top: 60px;
    color: var(--text-light);
}

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

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

.page-contact__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--card-bg-dark);
    border-radius: 8px;
    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);
}

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

.page-contact__faq-toggle {
    font-size: 28px;
    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: 32px;
    height: 32px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg); /* Change to X or rotate for active */
    color: var(--text-light);
}

.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 25px;
    opacity: 0;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0 0 8px 8px;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 2000px !important; /* Sufficiently large */
    padding: 20px 25px !important;
    opacity: 1;
    color: rgba(255, 255, 255, 0.8);
}

.page-contact__faq-answer p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.page-contact__faq-answer ol, .page-contact__faq-answer ul {
    margin-left: 20px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.page-contact__faq-answer li {
    margin-bottom: 8px;
}

.page-contact__faq-answer strong {
    color: var(--accent-color);
}

.page-contact__faq-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-contact__cta-buttons--faq {
    margin-top: 30px;
    margin-bottom: 15px;
}

/* --- Commitment Section --- */
.page-contact__commitment-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0d0d0d, #1a1a1a);
    color: var(--text-light);
}

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

.page-contact__commitment-item {
    background: var(--card-bg-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-contact__commitment-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.page-contact__commitment-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.page-contact__cta-buttons--commitment {
    margin-top: 60px;
}

/* --- Contact Form Section --- */
.page-contact__form-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--card-bg-dark);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
}

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

.page-contact__submit-button {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background: var(--accent-color);
    color: var(--text-dark);
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-contact__submit-button:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-contact__form-note {
    font-size: 14px;
    text-align: center;
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Global Image Styles (scoped to .page-contact) --- */
.page-contact img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

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

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

@media (max-width: 768px) {
    .page-contact {
        padding-top: 100px !important; /* Adjust for fixed header on mobile */
        font-size: 16px;
        line-height: 1.6;
    }

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

    .page-contact__hero-section {
        padding: 60px 0 40px;
    }

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

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

    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-contact__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-contact__section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

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

    .page-contact__methods-section, .page-contact__support-section, .page-contact__faq-section, .page-contact__commitment-section, .page-contact__form-section {
        padding: 50px 0;
    }

    .page-contact__method-list, .page-contact__support-grid, .page-contact__commitment-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-contact__method-item, .page-contact__support-item, .page-contact__commitment-item, .page-contact__contact-form {
        padding: 25px !important;
    }

    .page-contact__method-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .page-contact__method-title, .page-contact__support-title, .page-contact__commitment-title {
        font-size: 20px;
    }

    .page-contact__method-description, .page-contact__support-description, .page-contact__commitment-description {
        font-size: 15px;
    }

    .page-contact__social-links {
        flex-wrap: wrap;
        gap: 10px;
    }

    .page-contact__faq-question {
        padding: 15px 20px;
    }

    .page-contact__faq-question h3 {
        font-size: 16px;
    }

    .page-contact__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }

    .page-contact__faq-answer {
        padding: 0 20px;
    }

    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px 20px !important;
    }

    .page-contact__form-label {
        font-size: 15px;
    }

    .page-contact__form-input, .page-contact__form-textarea {
        padding: 10px 12px;
        font-size: 15px;
    }

    .page-contact__submit-button {
        padding: 12px 15px;
        font-size: 16px;
    }

    /* Ensure all images are responsive */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .page-contact__main-title {
        font-size: 28px;
    }

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

    .page-contact__cta-button {
        font-size: 15px !important;
        padding: 10px 15px !important;
    }
}