﻿:root {
    --primary-color: #007bff; /* Màu xanh dương hiện đại */
    --secondary-color: #6c757d; /* Màu xám trung tính */
    --accent-color: #28a745; /* Màu xanh lá cây tạo điểm nhấn */
    --text-primary: #343a40; /* Màu chữ chính đậm */
    --text-secondary: #6c757d; /* Màu chữ phụ nhạt hơn */
    --bg-light: #f8f9fa; /* Nền sáng */
    --bg-white: #ffffff; /* Nền trắng */
    --border-color: #dee2e6; /* Màu viền nhạt */
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-light);
    overflow-x: hidden;
    position: relative; /* Để định vị nút back to top */
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

    a:hover {
        color: var(--accent-color);
    }

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%; /* Chiếm toàn bộ chiều rộng */
    margin: 0 auto;
    padding: 0 20px;
}
/* Header */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1368px; /* Giữ max-width cho nội dung header */
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
}

    .logo img {
        height: 40px;
        margin-right: 10px;
    }

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-item {
    margin-left: 25px;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 0;
    gap: 8px;
    position: relative;
    display: flex;
}

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0%;
        height: 2px;
        background-color: var(--primary-color);
        transition: var(--transition);
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 100%;
    }

.nav-cta {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
    transition: background-color 0.3s ease-in-out;
}

    .nav-cta:hover {
        background-color: var(--accent-color);
    }

.mobile-menu-button {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}
/* Invoice Banner */
.invoice-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-white);
    /*padding: 0.5rem 0;*/
    text-align: center;
}

    .invoice-banner .container {
        max-width: 1200px;
    }

.invoice-search-initial {
    max-width: 600px;
    margin: 0 auto;
}

    .invoice-search-initial h1 {
        margin-bottom: 1rem;
    }

    .invoice-search-initial p {
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 2rem;
    }

.invoice-banner .invoice-search-button {
    background-color: var(--accent-color);
    color: var(--bg-white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s ease-in-out;
}

    .invoice-banner .invoice-search-button:hover {
        background-color: #218838;
    }
/* Banner Slider */
.banner-slider {
    width: 100%;
    overflow: hidden;
}

    .banner-slider .slick-slide {
        margin: 0; /* Loại bỏ margin mặc định của slick-slide */
    }

    .banner-slider img {
        width: 100%;
        display: block;
        height: auto; /* Để tỷ lệ khung hình tự động */
    }
/* Content Section (Form tra cứu) */
.content-section {
    background-color: var(--bg-white);
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    max-width: 500px;
    margin: 2rem auto;
    display: none; /* Ẩn mặc định */
    text-align: center;
}

    .content-section h2 {
        color: var(--primary-color);
        margin-bottom: 1.5rem;
    }

.invoice-search-box {
    width: 100%;
}

.invoice-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.content-section .invoice-search-button {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease-in-out;
}

    .content-section .invoice-search-button:hover {
        background-color: var(--accent-color);
    }
/* Main Content (Phần giới thiệu dịch vụ và form đăng nhập) */
.main-content {
    padding: 0.5rem 0;
}

.grid-container {
    display: grid;
    grid-template-columns: 1.6fr 2.5fr;
    gap: 2rem;
    max-width: 1368px;
    margin: 0 auto;
    padding: 0 20px;
}

.sidebar {
    background-color: var(--bg-white);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
}

    .sidebar h3 {
        color: var(--primary-color);
        margin-bottom: 1rem;
        border-bottom: 2px solid var(--border-color);
        padding-bottom: 0.5rem;
    }

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.service-item {
    background-color: var(--bg-light);
    padding: 1rem;
    border-radius: 0.25rem;
    text-align: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

    .service-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08);
    }

    .service-item h4 {
        color: var(--text-primary);
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

.main-content-text {
    background-color: var(--bg-white);
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

    .main-content-text h1, .main-content-text h2 {
        color: var(--primary-color);
        margin-bottom: 1rem;
    }

    .main-content-text ul {
        margin-left: 1.5rem;
        margin-top: 0.5rem;
    }

    .main-content-text li {
        margin-bottom: 0.5rem;
        color: var(--text-secondary);
    }
/* Form Đăng Nhập */
.login-form {
    max-width: 568px;
    margin: 2rem auto;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    background-color: var(--bg-light);
    text-align: left;
}

    .login-form h2 {
        text-align: center;
        margin-bottom: 1.5rem;
        color: var(--primary-color);
    }

.form-group {
    margin-bottom: 1.2rem;
}

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        color: var(--text-primary);
        font-weight: 500;
    }

    .form-group input {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid var(--border-color);
        border-radius: 0.25rem;
        font-size: 1rem;
    }

.captcha-group {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
}

.captcha-image {
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    margin-right: 1rem;
    height: 60px; /* Điều chỉnh chiều cao phù hợp */
}

.captcha-input {
    flex-grow: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    font-size: 1rem;
}

.login-button {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    transition: background-color 0.3s ease-in-out;
}

    .login-button:hover {
        background-color: var(--accent-color);
    }

.forgot-password {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: right;
}
/* Footer */
.footer {
    background-color: #1f7ed0;
    color: var(--bg-white);
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section h3 {
    color: var(--bg-white);
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

    .footer-section a:hover {
        color: var(--bg-white);
    }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    color: #ccc;
    font-size: 0.9rem;
}
/* Back to Top Button */
.back-to-top {
    display: none; /* Ẩn mặc định */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    font-size: 16px;
    border: none;
    outline: none;
    background-color: rgba(0, 123, 255, 0.7); /* Màu xanh dương trong suốt */
    color: white;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
}

    .back-to-top:hover {
        background-color: var(--primary-color); /* Màu xanh dương đậm hơn khi hover */
    }

    .back-to-top i {
        margin-right: 5px;
    }
/* Ẩn nút back to top trên màn hình nhỏ */
@media (max-width: 767.98px) {
    .back-to-top {
        display: none !important;
    }
}
/* Responsive Design */
@media (max-width: 992px) {
    .navbar {
        padding: 0 1rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: var(--bg-white);
        padding: 3rem;
        flex-direction: column;
        align-items: flex-start;
        box-shadow: var(--box-shadow);
        transition: right 0.3s ease-in-out;
        z-index: 1000;
    }

        .nav-menu.open {
            right: 0;
        }

    .nav-item {
        margin: 1rem 0;
    }

    .nav-cta {
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }

    .mobile-menu-button {
        display: block;
    }

    .grid-container {
        grid-template-columns: 1.6fr;
    }
}

@media (max-width: 768px) {
    .invoice-search-initial {
        padding: 0 1rem;
    }

    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .grid-container {
        padding: 0 1rem;
    }
}

@media (max-width: 576px) {
    .logo-text {
        font-size: 1.2rem;
    }

    .invoice-search-initial h1 {
        font-size: 2rem;
    }

    .main-content-text h1 {
        font-size: 2rem;
    }
}
/* Slick Slider Styles */
.slick-dots {
    position: absolute;
    bottom: 10px;
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
}

    .slick-dots li {
        position: relative;
        display: inline-block;
        width: 20px;
        height: 20px;
        margin: 0 5px;
        padding: 0;
        cursor: pointer;
    }

        .slick-dots li button {
            font-size: 0;
            line-height: 0;
            display: block;
            width: 20px;
            height: 20px;
            padding: 5px;
            cursor: pointer;
            color: transparent;
            border: 0;
            outline: none;
            background: transparent;
        }

            .slick-dots li button:before {
                font-family: 'slick';
                font-size: 6px;
                line-height: 20px;
                position: absolute;
                top: 0;
                left: 0;
                width: 20px;
                height: 20px;
                content: '•';
                text-align: center;
                opacity: .25;
                color: white;
                -webkit-font-smoothing: antialiased;
                -moz-osx-font-smoothing: grayscale;
            }

        .slick-dots li.slick-active button:before {
            opacity: .75;
            color: white;
        }



.verification-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

    .verification-box label {
        font-weight: bold;
        color: #fff;
    }

    .verification-box input {
        padding: 8px 12px;
        border: none;
        border-radius: 6px;
        font-size: 1rem;
        width: 120px;
    }

.verify-button {
    background-color: #28a745; /* Màu xanh lá cây cho xác nhận */
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

    .verify-button:hover {
        background-color: #1e7e34;
    }

.tabs-container {
    background-color: #f9f9f9;
    padding: 20px;
}

.tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
}

.tab-button {
    padding: 12px 20px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid transparent;
    transition: border-bottom-color 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    font-size: 1rem;
    gap: 8px;
}

    .tab-button.active {
        border-bottom-color: #007bff;
        color: #007bff;
    }

.tab-content {
    padding: 25px 0;
    display: none;
}

    .tab-content.active {
        display: block;
    }

.form-wrapper {
    padding: 0 20px;
}

    .form-wrapper h2 {
        color: #333;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 600;
    }

.styled-form .form-group {
    margin-bottom: 20px;
}

    .styled-form .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
        color: #333;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .styled-form .form-group input {
        width: 100%;
        padding: 12px;
        border: 1px solid #ced4da;
        border-radius: 6px;
        box-sizing: border-box;
        font-size: 1rem;
        transition: border-color 0.3s ease;
    }

        .styled-form .form-group input:focus {
            outline: none;
            border-color: #007bff;
            box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
        }

.styled-form .captcha-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.styled-form .captcha-image {
    border: 1px solid #ddd;
    border-radius: 6px;
}

.styled-form .captcha-input {
    flex-grow: 1;
}

.primary-button {
    background-color: #007bff;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .primary-button:hover {
        background-color: #0056b3;
    }

.styled-form .form-actions {
    margin-top: 15px;
    text-align: right;
}

.secondary-link {
    color: #007bff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

    .secondary-link:hover {
        color: #0056b3;
        text-decoration: underline;
    }

.captcha-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .captcha-input-group input {
        flex-grow: 1;
    }

.refresh-captcha-button {
    background-color: transparent;
    color: #555;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .refresh-captcha-button:hover {
        background-color: #f8f9fa;
        color: #007bff;
        border-color: #007bff;
    }

.captcha-image-placeholder {
    margin-top: 10px;
}

.captcha-image {
    border: 1px solid #ddd;
    border-radius: 6px;
    display: block; /* Ngăn khoảng trắng thừa dưới hình ảnh */
}


