﻿/* RESET */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: black;
    min-height: 100vh;
    overflow-x: hidden;
}

/* VIDEO BACKGROUND */
.bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* LỚP TỐI PHỦ VIDEO */
.bg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: -1;
}

/* HEADER CONTACT */
.intro-overlay {
    text-align: center;
    padding: 60px 20px 20px;
    color: white;
}

    .intro-overlay h1 {
        font-size: 48px;
        letter-spacing: 4px;
    }

    .intro-overlay p {
        color: #ff4d4d;
    }

/* KHUNG FORM */
.container {
    max-width: 720px;
    margin: 0 auto 80px;
    background: rgba(0,0,0,0.7);
    padding: 30px 30px 36px;
    border-radius: 18px;
    box-shadow: 0 0 40px rgba(255,0,0,0.4);
    color: white;
}

/* MÔ TẢ */
.contact-desc {
    margin-bottom: 20px;
    color: #ddd;
    line-height: 1.6;
}

/* FORM */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        padding: 12px 14px;
        border-radius: 12px;
        border: none;
        outline: none;
        font-size: 15px;
    }

    .contact-form textarea {
        min-height: 120px;
        resize: vertical;
    }

    /* BUTTON */
    .contact-form button {
        width: 100%;
        padding: 14px;
        border-radius: 999px;
        border: none;
        font-weight: bold;
        color: white;
        cursor: pointer;
        background: linear-gradient(90deg, #ff3b3b, #b40000);
        transition: 0.25s;
    }

        .contact-form button:hover {
            transform: translateY(-2px);
            box-shadow: 0 0 20px rgba(255,0,0,0.6);
        }

/* THÔNG TIN LIÊN HỆ */
.contact-info {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

    .contact-info h3 {
        margin-bottom: 10px;
        color: #ff4d4d;
    }

.container a, .contact-form a {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #ff4d4d; /* Màu đỏ nhạt đồng bộ với thiết kế */
    text-decoration: none; /* Bỏ đường gạch chân */
    font-size: 14px;
    transition: 0.3s;
}

    .container a:hover, .contact-form a:hover {
        color: #ffffff; /* Sáng lên màu trắng khi di chuột qua */
        text-shadow: 0 0 8px rgba(255, 77, 77, 0.8); /* Thêm hiệu ứng phát sáng nhẹ */
    }
/* --- BIẾN MÀU FERRARI (Thêm vào đầu file CSS) --- */
:root {
    --rosso: #e32400;
    --rosso-dark: #b31d00;
    --nero-2: #111111;
    --nero-3: #1a1a1a;
    --nero-4: #222222;
    --bianco: #ffffff;
    --grigio: #444444;
    --grigio-light: #888888;
}

/* --- TOÀN BỘ CSS CHATBOX CỦA BẠN (Đã được tối ưu) --- */

.chat-bubble-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 60px;
    height: 60px;
    background: var(--rosso);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(227,36,0,0.45);
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 0;
}

    .chat-bubble-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 8px 36px rgba(227,36,0,0.6);
    }

    .chat-bubble-btn.open .bubble-icon-open {
        display: none;
    }

    .chat-bubble-btn.open .bubble-icon-close {
        display: block;
    }

.bubble-icon-close {
    display: none;
}

/* Hiệu ứng vòng tròn lan tỏa quanh nút */
.chat-bubble-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(227,36,0,0.4);
    animation: ping-ring 2.5s ease-out infinite;
}

@keyframes ping-ring {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.chat-notif {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    border: 2px solid var(--rosso);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: var(--rosso);
}

.chatbox {
    position: fixed;
    bottom: 108px;
    right: 32px;
    width: 360px;
    height: 520px;
    background: var(--nero-2);
    border: 1px solid #242424;
    border-top: 3px solid var(--rosso);
    display: flex;
    flex-direction: column;
    z-index: 800;
    box-shadow: 0 24px 60px rgba(0,0,0,0.7);
    transform-origin: bottom right;
    transform: scale(0.85) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.28s cubic-bezier(0.34,1.56,0.64,1);
}

    .chatbox.open {
        transform: scale(1) translateY(0);
        opacity: 1;
        pointer-events: all;
    }

.cb-header {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1a1a1a;
    border-bottom: 1px solid #222;
}

.cb-avatar {
    width: 38px;
    height: 38px;
    background: var(--rosso);
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.cb-name {
    font-size: 16px;
    color: white;
    margin: 0;
    letter-spacing: 1px;
}

.cb-status {
    font-size: 10px;
    color: #4CAF50;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .cb-status::before {
        content: '';
        width: 6px;
        height: 6px;
        background: #4CAF50;
        border-radius: 50%;
        box-shadow: 0 0 5px #4CAF50;
    }

.gemini-badge {
    font-size: 10px;
    background: linear-gradient(135deg, #4285f4, #34a853, #fbbc04, #ea4335);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.cb-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #0d0d0d;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cb-bubble {
    max-width: 85%;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 2px 12px 12px 12px;
    background: #222;
    color: #ddd;
}

.quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.quick-chip {
    background: transparent;
    border: 1px solid #333;
    color: #888;
    padding: 5px 10px;
    font-size: 10px;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.2s;
}

    .quick-chip:hover {
        border-color: var(--rosso);
        color: var(--rosso);
    }

.cb-footer {
    padding: 12px;
    display: flex;
    gap: 8px;
    background: #111;
    border-top: 1px solid #222;
}

#cb-input {
    flex: 1;
    background: #000;
    border: 1px solid #333;
    color: white;
    padding: 10px;
    border-radius: 4px;
    outline: none;
    font-size: 14px;
    resize: none;
}

    #cb-input:focus {
        border-color: var(--rosso);
    }

#cb-send {
    background: var(--rosso);
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%);
}

.cb-note {
    font-size: 9px;
    color: #444;
    text-align: center;
    padding: 5px;
}