/* style/contact.css */

/* Biến CSS */
:root {
    --page-contact-primary-color: #1A2E44;
    --page-contact-secondary-color: #FFD700;
    --page-contact-text-light: #ffffff;
    --page-contact-text-dark: #1A2E44;
    --page-contact-bg-light: #f8f8f8;
    --page-contact-bg-dark: #101e2e;
    --page-contact-border-color: #3a4f6a;
}

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

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

.page-contact__section-title {
    font-size: 2.5em;
    color: var(--page-contact-primary-color);
    text-align: center;
    margin-bottom: 40px;
    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(--page-contact-secondary-color);
    border-radius: 2px;
}

.page-contact .highlight {
    color: var(--page-contact-secondary-color);
    font-weight: bold;
}

/* Phần Hero */
.page-contact__hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.page-contact__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 46, 68, 0.8), rgba(26, 46, 68, 0.6)); /* #1A2E44 */
    z-index: -1;
}

.page-contact__hero-content {
    color: var(--page-contact-text-light);
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.page-contact__title {
    font-size: 3.5em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact__subtitle {
    font-size: 1.3em;
    line-height: 1.5;
}

/* Phần thông tin liên hệ */
.page-contact__info-section {
    padding: 60px 0;
    background-color: var(--page-contact-bg-light);
}

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

.page-contact__info-card {
    background-color: var(--page-contact-text-light);
    border-radius: 10px;
    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;
}

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

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

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

.page-contact__info-text {
    font-size: 1em;
    color: #555;
    margin-bottom: 25px;
}

/* Nút chung */
.page-contact__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1em;
    cursor: pointer;
    border: none;
}

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

.page-contact__btn--primary:hover {
    background-color: #e6c200; /* Darker shade of gold */
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

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

.page-contact__btn--secondary:hover {
    background-color: var(--page-contact-primary-color);
    color: var(--page-contact-text-light);
    border-color: var(--page-contact-primary-color);
}

.page-contact__btn--large {
    padding: 15px 35px;
    font-size: 1.1em;
}

/* Phần biểu mẫu liên hệ */
.page-contact__form-section {
    padding: 80px 0;
    background-color: var(--page-contact-bg-dark);
    position: relative;
    color: var(--page-contact-text-light);
    overflow: hidden;
}

.page-contact__form-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    z-index: 0;
}

.page-contact__form-section .page-contact__section-title {
    color: var(--page-contact-text-light);
    z-index: 1;
    position: relative;
}

.page-contact__form-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-size: 1.1em;
    color: #ccc;
    z-index: 1;
    position: relative;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1;
    position: relative;
}

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

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

.page-contact__form-group input[type="text"],
.page-contact__form-group input[type="email"],
.page-contact__form-group textarea {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid var(--page-contact-border-color);
    border-radius: 5px;
    background-color: var(--page-contact-primary-color);
    color: var(--page-contact-text-light);
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-contact__contact-form .page-contact__btn--primary {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}

/* Phần CTA cuối trang */
.page-contact__cta-section {
    padding: 80px 0;
    background-color: var(--page-contact-bg-light);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-contact__cta-content {
    text-align: center;
    z-index: 1;
    position: relative;
}

.page-contact__cta-section .page-contact__section-title {
    margin-bottom: 20px;
}

.page-contact__cta-text {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #444;
}

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

.page-contact__cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    z-index: 0;
}

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

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

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

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

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

    .page-contact__cta-buttons {
        flex-direction: column;
    }

    .page-contact__btn--large {
        width: 100%;
    }
}

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

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

    .page-contact__hero {
        height: 300px;
    }

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

    .page-contact__info-heading {
        font-size: 1.5em;
    }

    .page-contact__form-section, .page-contact__cta-section {
        padding: 50px 0;
    }
}