/* style/contact.css */

/* Biến CSS */
:root {
    --page-contact-primary-color: #007bff;
    --page-contact-secondary-color: #ffc107;
    --page-contact-text-dark: #212529;
    --page-contact-text-light: #f8f9fa;
    --page-contact-bg-light: #f8f9fa;
    --page-contact-bg-dark: #343a40;
    --page-contact-border-color: #ced4da;
}

.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-contact-text-dark);
    background-color: var(--page-contact-bg-light);
}

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

/* Hero Section */
.page-contact__hero {
    position: relative;
    background-image: url('[IMAGE:contact_hero_bg]');
    background-size: cover;
    background-position: center;
    color: var(--page-contact-text-light);
    padding: 100px 0;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-contact__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-contact__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.page-contact__title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--page-contact-secondary-color); /* Sử dụng màu phụ để nổi bật */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-contact__btn-primary {
    display: inline-block;
    background-color: var(--page-contact-primary-color);
    color: var(--page-contact-text-light);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
}

.page-contact__btn-primary:hover {
    background-color: #0056b3; /* Màu tối hơn của primary */
    transform: translateY(-2px);
}

/* General Section Styling */
.page-contact__info-section, .page-contact__form-section, .page-contact__social-section, .page-contact__location-section {
    padding: 60px 0;
    text-align: center;
}

.page-contact__info-section {
    background-color: var(--page-contact-bg-light);
}

.page-contact__form-section {
    background-color: var(--page-contact-bg-dark);
    color: var(--page-contact-text-light);
}

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

.page-contact__location-section {
    background-color: var(--page-contact-bg-light);
}

.page-contact__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--page-contact-primary-color); /* Mặc định là màu chính */
}

.page-contact__form-section .page-contact__section-title,
.page-contact__social-section .page-contact__section-title {
    color: var(--page-contact-secondary-color); /* Màu phụ cho tiêu đề trên nền tối */
}

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

.page-contact__form-section .page-contact__section-description,
.page-contact__social-section .page-contact__section-description {
    color: var(--page-contact-text-light);
}

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

.page-contact__info-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-contact__info-card:hover {
    transform: translateY(-5px);
}

.page-contact__icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

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

.page-contact__card-text {
    font-size: 1em;
    margin-bottom: 20px;
    color: #6c757d;
}

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

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

/* Contact Form */
.page-contact__form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #495057; /* Nền form tối hơn */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.page-contact__label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--page-contact-secondary-color);
}

.page-contact__input, .page-contact__textarea {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid var(--page-contact-border-color);
    border-radius: 5px;
    font-size: 1em;
    background-color: #6c757d; /* Nền input tối */
    color: var(--page-contact-text-light);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__input::placeholder, .page-contact__textarea::placeholder {
    color: #dee2e6;
    opacity: 0.8;
}

.page-contact__input:focus, .page-contact__textarea:focus {
    border-color: var(--page-contact-secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
    outline: none;
}

.page-contact__textarea {
    resize: vertical;
}

.page-contact__btn-submit {
    background-color: var(--page-contact-secondary-color);
    color: var(--page-contact-text-dark);
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact__btn-submit:hover {
    background-color: #e0a800; /* Màu tối hơn của secondary */
    transform: translateY(-2px);
}

/* Social Media */
.page-contact__social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}

.page-contact__social-icon-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.page-contact__social-icon-link:hover {
    transform: translateY(-5px) scale(1.1);
}

.page-contact__social-icon {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

/* Location Section */
.page-contact__address-map {
    margin-top: 40px;
}

.page-contact__address {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--page-contact-text-dark);
}

.page-contact__map-placeholder {
    width: 100%;
    height: 400px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-contact__map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-contact__title {
        font-size: 2.5em;
    }

    .page-contact__subtitle {
        font-size: 1em;
    }

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

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

    .page-contact__hero, .page-contact__map-placeholder {
        height: 300px;
    }

    .page-contact__info-section, .page-contact__form-section, .page-contact__social-section, .page-contact__location-section {
        padding: 40px 0;
    }

    .page-contact__form {
        padding: 25px;
    }

    .page-contact__btn-primary, .page-contact__btn-submit {
        padding: 12px 25px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-contact__title {
        font-size: 2em;
    }

    .page-contact__hero {
        padding: 80px 0;
    }

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

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

    .page-contact__icon {
        width: 50px;
        height: 50px;
    }

    .page-contact__social-links {
        gap: 15px;
    }

    .page-contact__social-icon {
        width: 40px;
        height: 40px;
    }
}