/* style/contact.css */

/* Biến CSS cho màu sắc và font */
.page-contact {
    --primary-color: #003366;
    --secondary-color: #FFCC00;
    --accent-color: #CC0000;
    --text-dark: #001a33; /* Darker text for light backgrounds */
    --text-light: #ffffff; /* Light text for dark backgrounds */
    --background-light: #f4f7f6;
    --background-dark: #002244;
    --border-color: #cccccc;
    --button-hover-dark: #004488;
    --button-hover-light: #e6b800;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Reset cơ bản cho khu vực nội dung */
.page-contact * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

.page-contact__hero-section {
    position: relative;
    background-color: var(--background-dark);
    color: var(--text-light);
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
}

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

.page-contact__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.8), rgba(255, 204, 0, 0.4));
    z-index: 1;
}

.page-contact__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--text-light);
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact__hero-subtitle {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
}

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

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

.page-contact__info-section {
    background-color: var(--background-light);
    padding: 60px 0;
    text-align: center;
}

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

.page-contact__contact-card {
    background-color: var(--text-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

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

.page-contact__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 1em;
}

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

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

.page-contact__form-section {
    background-color: var(--text-light);
    padding: 60px 0;
}

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

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

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--background-light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    color: var(--text-dark);
    background-color: #ffffff;
}

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

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

.page-contact__btn--submit {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    width: 100%;
    font-size: 1.1em;
    border-radius: 5px;
}

.page-contact__btn--submit:hover {
    background-color: var(--button-hover-dark);
}

.page-contact__cta-section {
    position: relative;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
}

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

.page-contact__cta-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--text-light);
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-contact__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.page-contact__btn--cta {
    padding: 15px 35px;
    font-size: 1.1em;
    border-radius: 8px;
    min-width: 250px;
}

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

.page-contact__btn--register:hover {
    background-color: var(--button-hover-light);
    border-color: var(--button-hover-light);
}

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

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

.page-contact__social-section {
    background-color: var(--background-light);
    padding: 60px 0;
    text-align: center;
}

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

.page-contact__social-icon {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact__social-icon img {
    width: 60%;
    height: 60%;
    filter: invert(100%); /* Make icons white for dark background */
}

.page-contact__social-icon:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.page-contact__social-icon:hover img {
    filter: invert(0%); /* Make icons dark for light background */
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-contact__hero-title {
        font-size: 2.8em;
    }
    .page-contact__hero-subtitle {
        font-size: 1.1em;
    }
    .page-contact__section-title,
    .page-contact__cta-title {
        font-size: 2em;
    }
    .page-contact__cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-title {
        font-size: 2.2em;
    }
    .page-contact__hero-subtitle {
        font-size: 1em;
    }
    .page-contact__grid-layout {
        grid-template-columns: 1fr;
    }
    .page-contact__contact-card {
        margin-bottom: 20px;
    }
    .page-contact__contact-form {
        padding: 25px;
    }
    .page-contact__cta-title {
        font-size: 1.8em;
    }
    .page-contact__cta-description {
        font-size: 1em;
    }
    .page-contact__btn--cta {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 1.8em;
    }
    .page-contact__hero-subtitle {
        font-size: 0.9em;
    }
    .page-contact__section-title,
    .page-contact__cta-title {
        font-size: 1.5em;
    }
    .page-contact__contact-form {
        padding: 15px;
    }
    .page-contact__btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-contact__social-links {
        gap: 15px;
    }
    .page-contact__social-icon {
        width: 40px;
        height: 40px;
    }
}