@import url('https://fonts.cdnfonts.com/css/long-shot');
/* source-sans-3-latin-500-normal */
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-display: swap;
    font-weight: 500;
    src: url(https://cdn.jsdelivr.net/fontsource/fonts/source-sans-3@latest/latin-500-normal.woff2) format('woff2'), url(https://cdn.jsdelivr.net/fontsource/fonts/source-sans-3@latest/latin-500-normal.woff) format('woff');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

* {
    box-sizing: border-box;
}

::selection {
  background-color: #e3c136; /* Màu nền khi chọn */
  color: black;             /* Màu chữ khi chọn */
}

html {
    scroll-behavior: smooth;
    margin-bottom: 0;
    padding-bottom: 0;
}

img {
    -webkit-user-drag: none;
    user-drag: none;        
    pointer-events: auto; 
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #000000;
    padding: 10px 40px;
    color: #D9A91C;
    font-family: 'Long Shot', 'san serif';
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0 auto;
    padding: 3px 0 0;
}

.logo {
    font-weight: bold;
    font-size: 20px;
    color: #D9A91C;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 0 0;
    text-decoration: none;
}

.nav-links a {
    text-decoration: none;
    color: #D9A91C;
    font-weight: bold;
    font-size: 20px;
    transition: color 0.3s;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.navbar-left,
.navbar-right {
    display: flex;
    align-items: center;
}
.navbar-left,
.navbar-right {
    min-width: 150px; 
}

.navbar-right {
    gap: 20px;
}

.cart a {
    color: #D9A91C;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cart a:hover {
    color: #ffcc00;
}

/* Hiệu ứng rung */
@keyframes rotate-swing {
  0%   { transform: rotate(0deg); }
  20%  { transform: rotate(15deg); }
  40%  { transform: rotate(-10deg); }
  60%  { transform: rotate(8deg); }
  80%  { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}

.cart-icon i.swing {
  animation: rotate-swing 0.6s ease;
  transform-origin: center center;
  display: inline-block;
}

/* Thông báo thêm sản phẩm */
.cart-notification {
    position: fixed;
    bottom: 70px;
    right: 20px;
    background: #D9A91C;
    color: #000;
    font-weight: 700;
    padding: 12px 20px 16px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
}

.cart-notification.show {
  opacity: 1;
  transform: translateY(0);
}

.contact-button a {
    background-color: #D9A91C;
    color: black;
    text-decoration: none;
    padding: 8px 16px 6px;
    font-weight: bold;
    font-size: 18px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 2px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-button a:hover {
    background-color: #ffcc00;
}

.hamburger {
    display: none;
    font-size: 28px;
    color: #D9A91C;
    cursor: pointer;
}

.cart-responsive {
    display: none;
    font-size: 28px;
    color: #D9A91C;
    cursor: pointer;
}

.empty-cart-message {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    font-size: 1.2rem;
}
.start-shopping-button {
    display: block;
    width: 80%;
    margin: 1rem auto;
    padding: 0.75rem;
    background-color: #D9A91C;
    color: rgb(0, 0, 0);
    text-align: center;
    text-decoration: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 800;
}
.start-shopping-button:hover {
    background-color: #ffcc00;
}
#cart-total-section {
    display: none; /* Mặc định ẩn, sẽ hiện khi có sản phẩm */
}

/* Cart Sidebar Styles */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px; /* Hidden by default */
    width: 400px; /* Fixed width */
    height: 100%; /* Full height */
    background-color: #1a1a1a;
    color: #D9A91C;
    padding: 20px;
    box-sizing: border-box;
    z-index: 2000;
    transition: right 0.3s ease; /* Smooth slide-in */
    overflow-y: auto; /* Scroll if content overflows */
}

.cart-sidebar.show {
    right: 0; /* Slide in from right */
}

.cart-sidebar h2 {
    margin: 0 0 20px;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Long Shot', 'san serif';
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #D9A91C;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 10px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
}

.cart-item-details a:hover {
    text-decoration: underline;
}

.cart-item-details p {
    margin: 5px 0;
    font-size: 14px;
    color: #ccc;
}

.cart-item-price {
    font-size: 16px;
    font-weight: bold;
    margin-right: 10px;
    color: white;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-item-controls button {
    background: none;
    border: 1px solid #ccc;
    color: white;
    font-size: 16px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-controls span {
    font-size: 16px;
    width: 30px;
    text-align: center;
    color: white;
}

.cart-item-controls .remove-item {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.close-cart {
    background: none;
    border: none;
    color: #D9A91C;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}

/* Cart Total and Checkout Button */
.cart-total {
    margin-top: 20px;
    padding-top: 10px;
    color: white;
}

.cart-total p {
    margin: 5px 0;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
}

.cart-total .subtext {
    font-size: 12px;
    color: #ccc;
}

.checkout-button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #D9A91C;
    color: black;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    margin-top: 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.checkout-button:hover {
    background-color: #ffcc00;
}

/* Overlay for clicking anywhere to close */
.cart-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
}

.cart-overlay.show {
    display: block;
}

/* Responsive styles for screens 767px and below */
@media (max-width: 1025px) {
    .navbar {
        position: relative;/* Top/bottom padding only */
        box-sizing: border-box;
        width: 100%;
        padding: 6px 40px;
    }

    .navbar-right {
        display: flex;
        align-items: center;
        gap: 15px; /* Space between cart and contact-button */
        margin-left: auto; /* Push to the right */
        margin-right: 20px; /* Fixed 20px gap from right edge */
        padding: 0; /* Remove extra padding */
    }

    .hamburger {
        display: block;
        margin-top: -3px;
        font-size: 30px;
        z-index: 1001;
        position: relative;
        padding: 0;
    }

    .cart {
        display: none; /* Hide original cart in navbar-right */
    }

    .cart-responsive {
        display: block;
        font-size: 24px;
        z-index: 1001;
        position: relative;
        color: #D9A91C;
        cursor: pointer;
    }

    .cart-responsive a {
        color: #D9A91C;
        text-decoration: none;
        font-weight: bold;
        font-size: 18px;
        letter-spacing: 1px;
        text-transform: uppercase;
        margin-right: 10px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100vw;
        background: var(--background-dark);
        flex-direction: column;
        gap: 30px;
        padding-top: 100px;
        align-items: center;
        justify-content: flex-start;
        z-index: 1000;
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links a {
        font-size: 20px;
    }

    .contact-button {
        display: none;
        position: fixed;
        bottom: 240px;
        left: 50%;
        transform: translateX(-50%);
        background: none;
        z-index: 1001;
    }

    .contact-button.show {
        display: flex;
    }

    .contact-button a {
        font-size: 18px;
    }

    .menu-background {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100vw;
        background: rgba(0, 0, 0, 0.8);
        z-index: 999;
    }

    .menu-background.show {
        display: block;
    }

    .logo {
        font-size: 22px;
    }
                
    .cart-sidebar {
        width: 350px; /* Slightly smaller but still wider than original 300px */
        right: -350px;
    }

    .cart-sidebar.show {
        right: 0;
    }
}

/* Extra small screens (≤480px) */
/* Trong general.css, media query max-width: 480px */
@media (max-width: 480px) {
    .navbar {
        padding: 10px 10px; /* Giảm padding ngang để tránh tràn */
        width: 100%;
        flex-wrap: nowrap;
        box-sizing: border-box;
        justify-content: space-between; /* Đảm bảo căn đều */
    }

    .navbar-left {
        margin-left: 5px; /* Thêm khoảng cách nhỏ */
        flex-shrink: 0;
    }

    .nav-links a {
        font-size: 16px;
    }

    .navbar-right {
        margin-right: 5px; /* Thêm khoảng cách nhỏ */
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 5px; /* Giảm gap giữa cart và hamburger */
    }

    .navbar-left,
    .navbar-right {
        min-width: 0;
    }

    .cart-responsive {
        display: block;
        font-size: 14px; /* Giảm font-size để tiết kiệm không gian */
        z-index: 1001;
        position: relative;
        color: #D9A91C;
        cursor: pointer;
        flex-shrink: 0;
        white-space: nowrap;
        padding-top: 2px;
    }

    .cart-responsive i{
        font-size: 18px; /* Giảm font-size để tiết */
    }

    .cart-responsive a {
        color: #D9A91C;
        font-size: 18px; /* Giảm font-size */
        text-decoration: none;
        font-weight: bold;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        margin-right: 5px; /* Giảm margin */
    }

    .hamburger {
        display: block;
        margin-top: 0px;
        font-size: 30px; /* Giảm font-size */
        z-index: 1001;
        position: relative;
        padding: 0;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .logo {
        font-size: 20px; /* Giảm font-size */
        flex-shrink: 0;
        white-space: nowrap;
    }
}
/* Contact Section */
:root {
    --cut-size-contact: 16px;
}
  
.contact{
    background-image: url('/image/Mesage\ Background.webp');
    background-size: cover;
    background-position: center;
    padding-bottom: 70px;
}

.contact-section {
    padding: 40px;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    height: 120%;   
}
  
/* Title */
.contact-section h2 {
    font-family: 'Long Shot', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    color: #D9A91C;
    margin-bottom: 30px;
}
  
/* Nhóm form */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #DDD;
}
  
.cut-corner {
    position: relative;
    background: #444;
    clip-path: polygon(
        0 0,                       
        calc(100% - var(--cut-size-contact)) 0,
        100% var(--cut-size-contact),  
        100% 100%,               
        var(--cut-size-contact) 100%,     
        0 calc(100% - var(--cut-size-contact)));
}
  
.cut-corner input[type="text"],
.cut-corner input[type="email"],
.cut-corner select,
.cut-corner textarea {
    width: 100%;
    padding: 12px 16px;
    background: transparent; 
    color: #EEE;
    border: none;
    outline: none;
    font-size: 1rem;
}

.cut-corner {
    position: relative;  
    background: #444;
    clip-path: polygon(
        0 0,
        calc(100% - var(--cut-size-contact)) 0,
        100% var(--cut-size-contact),
        100% 100%,
        var(--cut-size-contact) 100%,
        0 calc(100% - var(--cut-size-contact)));
}
  
.cut-corner select {
    width: 100%;
    padding: 12px 16px;
    background-color: transparent;  
    color: #DDD;                   
    font-size: 0.9rem;      
    border: none;
    outline: none;
    position: relative;           
    z-index: 1;                   
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg fill="%23DDD" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;           }
  
.cut-corner select:focus {
    box-shadow: 0 0 10px rgba(217,169,28,0.8);
    z-index: 2;                   
}
  
.cut-corner select option {
    background-color: #333;       
    color: #DDD;             
}

.cut-corner select:not([value=""]) {
    color: #EEE;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg fill="%23EEE" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
}

input::placeholder, 
textarea::placeholder, 
select::placeholder {
    font-family: 'Bahnschrift', sans-serif;
    font-size: 1rem;              
    color: #888888;       
    font-weight: normal;       
}

input, textarea, select {
    font-family: 'Bahnschrift', sans-serif;
    font-size: 1rem;          
    color: #888888;     
    font-weight: normal;         
}

select {
    color: #888888;                 
    font-family: 'Bahnschrift', sans-serif;
    font-size: 1rem;           
    font-weight: normal;
    background-color: transparent;      
}

select option {
    font-family: 'Bahnschrift', sans-serif;
    font-size: 1rem;        
    color: #888888;         
}

.btn-submit {
    display: block;
    font-family: 'Long Shot', sans-serif;
    width: 100%;
    padding: 14px 0 10px 0;
    background: #D9A91C;
    color: black;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: box-shadow 0.3s;
    clip-path: polygon(
        0 0,
        calc(100% - var(--cut-size-contact)) 0,
        100% var(--cut-size-contact),
        100% 100%,
        var(--cut-size-contact) 100%,
        0 calc(100% - var(--cut-size-contact)));
}

.btn-submit a{
    font-size: 20px;
    transform: scaleX(1.4); 
    transform-origin: left; 
}
  
.btn-submit:hover {
    background-color: #ffcc00;
}

button.btn-submit a {
  pointer-events: none; /* để link không nhận sự kiện chuột */
}

/* Common Modal/Popup Styles */
.modal, .popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 500px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    color: white; 
    font-family: Arial, sans-serif;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(255, 209, 23, 0.5);
    padding: 20px;  
}

/* Nội dung modal/popup */
.modal-content, .popup-content {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.modal-content h2, .popup-content h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.modal-content ul, .popup-content p {
    font-size: 18px;
    margin-top: 10px;
}

#errorTitle {
    font-family: 'Long Shot', sans-serif;
}

#successTitle, #successMessage {
    font-family: 'Long Shot', sans-serif;
}

/* Button for closing */
.popup-btn, .close {
    background-color: #D9A91C;
    color: black;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s;
}

.popup-btn:hover, .close:hover {
    background-color: #FFD700;
}

.close {
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 25px;
}

.close:hover, .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Modal and Popup Background */
.modal, .popup {
    background-image: url('/image/Header1.webp'); 
    background-size: cover;
    background-position: center;
}

#popup {
    background-color: rgba(119, 119, 119, 0.8);
}

#popup h2, #errorModal h2 {
    color: white;
}

/* Error messages */
#errorMessages {
    color: #e74c3c;
    font-size: 16px;
}

/* min-width: 1350px */
@media screen and (min-width: 1350px) {
    .contact {
        padding-bottom: 80px;
    }
    .contact-section {
        max-width: 700px;
        padding: 48px;
    }
    .contact-section h1 {
        font-size: 2.8rem;
    }
    .form-group label {
        font-size: 1rem;
    }
    .cut-corner input,
    .cut-corner textarea,
    .cut-corner select {
        padding: 14px 18px;
        font-size: 1.1rem;
    }
    .cut-corner textarea {
        min-height: 140px;
    }
    .btn-submit a {
        font-size: 22px;
    }
    .modal, .popup {
        max-width: 550px;
        padding: 24px;
    }
    .modal-content h2, .popup-content h2 {
        font-size: 26px;
    }
    .modal-content ul, .popup-content p {
        font-size: 18px;
    }
    .popup-btn, .close {
        padding: 12px 24px;
        font-size: 18px;
    }
}

/* min-width: 1201px */
@media screen and (min-width: 1201px) and (max-width: 1349px) {
    .contact {
        padding-bottom: 72px;
    }
    .contact-section {
        max-width: 650px;
        padding: 44px;
    }
    .contact-section h1 {
        font-size: 2.6rem;
    }
    .form-group label {
        font-size: 0.95rem;
    }
    .cut-corner input,
    .cut-corner textarea,
    .cut-corner select {
        padding: 13px 16px;
        font-size: 1.05rem;
    }
    .cut-corner textarea {
        min-height: 130px;
    }
    .btn-submit a {
        font-size: 20px;
    }
    .modal, .popup {
        max-width: 500px;
        padding: 22px;
    }
    .modal-content h2, .popup-content h2 {
        font-size: 24px;
    }
    .modal-content ul, .popup-content p {
        font-size: 17px;
    }
    .popup-btn, .close {
        padding: 11px 22px;
        font-size: 17px;
    }
}

/* max-width: 1200px */
@media screen and (max-width: 1200px) {
    .contact {
        padding-bottom: 64px;
    }
    .contact-section {
        max-width: 580px;
        padding: 40px;
    }
    .contact-section h1 {
        font-size: 2.4rem;
    }
    .form-group label {
        font-size: 0.9rem;
    }
    .cut-corner input,
    .cut-corner textarea,
    .cut-corner select {
        padding: 12px 14px;
        font-size: 1rem;
    }
    .cut-corner textarea {
        min-height: 120px;
    }
    .btn-submit a {
        font-size: 18px;
    }
    .modal, .popup {
        max-width: 450px;
        padding: 20px;
    }
    .modal-content h2, .popup-content h2 {
        font-size: 22px;
    }
    .modal-content ul, .popup-content p {
        font-size: 16px;
    }
    .popup-btn, .close {
        padding: 10px 20px;
        font-size: 16px;
    }
}

/* max-width: 1024px */
@media screen and (max-width: 1024px) {
    .contact {
        padding-bottom: 56px;
    }
    .contact-section {
        max-width: 500px;
        padding: 32px;
    }
    .contact-section h1 {
        font-size: 2.1rem;
    }
    .form-group label {
        font-size: 0.85rem;
    }
    .cut-corner input,
    .cut-corner textarea,
    .cut-corner select {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    .cut-corner textarea {
        min-height: 100px;
    }
    .btn-submit a {
        font-size: 16px;
    }
    .modal, .popup {
        max-width: 400px;
        padding: 18px;
    }
    .modal-content h2, .popup-content h2 {
        font-size: 20px;
    }
    .modal-content ul, .popup-content p {
        font-size: 15px;
    }
    .popup-btn, .close {
        padding: 9px 18px;
        font-size: 15px;
    }
}

/* max-width: 767px */
@media screen and (max-width: 767px) {
    .contact {
        padding-bottom: 48px;
    }
    .contact-section {
        max-width: 90%;
        padding: 24px;
    }
    .contact-section h1 {
        font-size: 1.8rem;
        margin-bottom: 24px;
    }
    .form-group {
        margin-bottom: 16px;
    }
    .form-group label {
        font-size: 0.8rem;
    }
    .cut-corner input,
    .cut-corner textarea,
    .cut-corner select {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    .cut-corner textarea {
        min-height: 90px;
    }
    .btn-submit a {
        font-size: 14px;
    }
    .modal, .popup {
        width: 90%;
        max-width: 320px;
        padding: 16px;
    }
    .modal-content h2, .popup-content h2 {
        font-size: 18px;
    }
    .modal-content ul, .popup-content p {
        font-size: 14px;
    }
    .popup-btn, .close {
        padding: 8px 16px;
        font-size: 14px;
    }
    .close {
        font-size: 26px;
        right: 20px;
    }
}

/* max-width: 480px */
@media screen and (max-width: 480px) {
    .contact {
        padding-bottom: 40px;
    }
    .contact-section {
        max-width: 95%;
        padding: 16px;
    }
    .contact-section h1 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    .form-group {
        margin-bottom: 12px;
    }
    .form-group label {
        font-size: 0.75rem;
    }
    .cut-corner input,
    .cut-corner textarea,
    .cut-corner select {
        padding: 7px 8px;
        font-size: 0.85rem;
    }
    .cut-corner textarea {
        min-height: 80px;
    }
    .btn-submit a {
        font-size: 13px;
    }
    .modal, .popup {
        width: 95%;
        max-width: 280px;
        padding: 12px;
    }
    .modal-content h2, .popup-content h2 {
        font-size: 16px;
    }
    .modal-content ul, .popup-content p {
        font-size: 13px;
    }
    .popup-btn, .close {
        padding: 7px 14px;
        font-size: 13px;
    }
    .close {
        font-size: 24px;
        right: 15px;
    }
}

/* Ribbon Footer */
.ribbon-second {
    bottom: 0;
    width: 100%;
    background-image: url('/image/Ribbon.webp');
    background-size: cover;
    background-position: center;
    padding: 3px 10px 0;
    text-align: center;
    color: black;
    font-family: 'Long Shot', sans-serif;
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
    letter-spacing: 1px;
    font-size: 30px;
    height: 45px;
    display: flex;
    align-items: center; 
    justify-content: center; 
}

.ribbon-second span {
    margin: 0 10px;
}

/* max-width: 1200px */
@media screen and (max-width: 1200px) {
    .ribbon-second {
        font-size: 28px;
        height: 40px;
        line-height: 40px;
        padding: 10px 0 0 0;
    }
    .ribbon-second span {
        margin: 0 10px;
    }
}

/* max-width: 1024px */
@media screen and (max-width: 1024px) {
    .ribbon-second {
        font-size: 24px;
        height: 42px;
        line-height: 36px;
        padding: 8px 0 0 0;
    }
    .ribbon-second span {
        margin: 0 0 3px;
    }
}

/* max-width: 767px */
@media screen and (max-width: 767px) {
    .ribbon-second {
        font-size: 24px;
        height: 40px;
        line-height: 32px;
        padding: 6px 0 0 0;
    }
    .ribbon-second span {
        margin: 0;
    }
}

/* max-width: 480px */
@media screen and (max-width: 480px) {
    .ribbon-second {
        font-size: 18px;
        height: 30px;
        line-height: 28px;
        padding: 5px 0 0 0;
    }
    .ribbon-second span {
        margin: 0 0 2px;
    }
}

/* Footer */
.footer {
    background-image: url('/image/Footer Background.webp');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 0 40px;
    box-sizing: border-box;
}

.newsletter-contact-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 40px;
    margin-bottom: 40px;
}

.newsletter-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 8px;
}

.newsletter-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
}

.newsletter-right img {
    width: 60px;
    height: 90px;
    margin-top: 50px;
}

.newsletter-header {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    margin-top: 30px;
}

.newsletter-header h3 {
    margin-right: 10px;
    margin-bottom: 0;
    font-size: 40px;
    font-family: 'Long Shot', sans-serif;
}

.newsletter-icon {
    width: 30px;
    height: 30px;
    margin-top: 31px;
}

.newsletter-description p {
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: 16px;
}

.email-signup {
    display: flex;
    align-items: stretch; 
    gap: 10px;
    flex-wrap: wrap; 
}

.email-signup input {
    padding: 12.5px 15px;
    width: 250px;
    max-width: 100%;
    font-size: 16px;
    font-family: 'Bahnschrift', sans-serif;
    border: none;
    box-sizing: border-box;
    line-height: 1;
}

.sign-up-btn {
    padding: 12.5px 25px;
    background-color: #D9A91C;
    color: black;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Long Shot', sans-serif;

    display: flex;
    align-items: center;
    justify-content: center;

    white-space: nowrap;
    box-sizing: border-box; 
    line-height: 1;
}

.sign-up-btn:hover {
    background-color: #ffcc00;
}

.footer-logo {
    width: 150px;
}

.grab-text {
    margin-bottom: 20px;
    font-family: 'Long Shot', sans-serif;
    font-size: 20px;
}

.contact-btn-wrapper {
    position: relative;
    display: inline-block;
}

.contact-btn-background {
    position: absolute;
    top: 4px;
    left: 3px;
    width: 100%;
    height: 100%;
    background-color: #FEF631;
    border-radius: 5px;
    z-index: 0;
}

.contact-btn {
    position: relative;
    padding: 15px 50px;
    background-color: #D9A91C;
    color: #000;
    font-family: 'Long Shot', sans-serif;
    font-size: 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.contact-btn:hover {
    box-shadow: 0 0 15px 5px rgba(255, 215, 0, 0.6);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #ccc;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    padding: 20px 0; 
}

.footer-bottom .copyright {
    flex: 1;
    text-align: left;
    font-family: 'Long Shot', sans-serif;
    font-size: 16px;
}

.copyright span {
    color: #D9A91C;
}

.footer-bottom .links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.footer-bottom .links a {
    color: rgb(207, 207, 207);
    text-decoration: underline;
    font-size: 12px;
    white-space: nowrap;
}

.footer-bottom .social-icons {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.footer-bottom .social-icons img {
    width: 30px;
    height: 30px;
}

/* max-width: 1040px */
@media screen and (max-width: 1040px) {
    .newsletter-header h3{
        font-size: 35px;
    }
    .newsletter-icon {
        width: 25px;
        height: 25px;
        margin-top: 28px;
    }
    .newsletter-description p {
        font-size: 14px;
    }
    .email-signup {
        width: 80%;
        max-width: 80%;
        gap: 10px;
        justify-content: center;
    }
    .email-signup input {
        flex: 1;
        padding: 10px 12px;
        font-size: 14px;
        min-width: 0;
    }
    .sign-up-btn {
        padding: 10px 16px;
        font-size: 14px;
        line-height: 1;
        white-space: nowrap;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .newsletter-right img {
        width: 55px;
        height: 70  px;
        margin-top: 50px;
    }

    .grab-text {
        font-size: 18px;
    }

    .contact-btn-background {
        position: absolute;
        top: 4px;
        left: 3px;
        width: 100%;
        height: 100%;
        background-color: #FEF631;
        border-radius: 5px;
        z-index: 0;
    }

    .contact-btn {
        position: relative;
        padding: 15px 50px;
        background-color: #D9A91C;
        color: #000;
        font-family: 'Long Shot', sans-serif;
        font-size: 22px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        z-index: 1;
        transition: box-shadow 0.3s ease, transform 0.3s ease;
    }
}

/* max-width: 767px */
@media screen and (max-width: 767px) {
    .footer {
        padding: 0 30px;
    }
    .newsletter-contact-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        margin-bottom: 30px;
    }
    .newsletter-left {
        align-items: center;
        text-align: center;
    }
    .newsletter-right {
        display: none;
    }
    .newsletter-header h3 {
        font-size: 38px;
    }
    .newsletter-icon {
        width: 28px;
        height: 28px;
        margin-top: 30px;
    }
    .newsletter-description p {
        font-size: 15px;
    }
    .email-signup {
        display: flex;
        flex-wrap: nowrap; /* không cho xuống dòng */
        align-items: stretch;
        width: 100%;
        max-width: 100%;
        gap: 8px;
        justify-content: center;
    }

    .email-signup input {
        flex: 1;
        padding: 10px 12px;
        font-size: 14px;
        min-width: 0;
    }

    .sign-up-btn {
        padding: 10px 16px;
        font-size: 14px;
        line-height: 1;
        white-space: nowrap;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .footer-logo {
        width: 140px;
    }
    .grab-text {
        font-size: 18px;
    }
    .contact-btn {
        padding: 14px 45px;
        font-size: 28px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 15px 0;
    }
    .footer-bottom .copyright {
        font-size: 14px;
        margin-bottom: 10px;
    }
    .footer-bottom .links {
        position: static;
        transform: none;
        margin: 10px KILL0;
        gap: 15px;
    }
    .footer-bottom .links a {
        font-size: 12px;
    }
    .footer-bottom .social-icons {
        justify-content: center;
        margin-top: 10px;
    }
    .footer-bottom .social-icons img {
        width: 28px;
        height: 28px;
    }
}

/* max-width: 480px */
@media screen and (max-width: 480px) {
    .footer {
        padding: 0 10px;
    }
    .newsletter-contact-container {
        gap: 10px;
    }
    .newsletter-header h3 {
        font-size: 22px;
    }
    .newsletter-icon {
        width: 20px;
        height: 20px;
        margin-top: 20px;
    }
    .newsletter-description p {
        font-size: 12px;
    }
    .email-signup {
        flex-direction: row;
        align-items: stretch;
        gap: 8px;
    }
    .email-signup input {
        flex: 1;
        padding: 8px 10px;
        font-size: 13px;
        max-width: 180px; /* ↓ nhỏ hơn chút */
    }
    .sign-up-btn {
        padding: 8px 14px;
        font-size: 12px;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: center;
        max-width: 90px; /* ↓ nhỏ hơn chút */
    }
    .footer-logo {
        width: 100px;
    }
    .grab-text {
        font-size: 12px;
    }
    .contact-btn {
        padding: 8px 25px;
        font-size: 18px;
    }
    .footer-bottom {
        padding: 10px 0;
    }
    .footer-bottom .copyright {
        font-size: 10px;
        margin-bottom: 8px;
    }
    .footer-bottom .links {
        gap: 10px;
    }
    .footer-bottom .links a {
        font-size: 9px;
    }
    .footer-bottom .social-icons img {
        width: 20px;
        height: 20px;
    }
}

/* thêm */
@media (max-width: 980px) {
    .navbar {
        padding: 6px 40px;
    }
}

/* Quiz */
.start-btn {
    position: fixed;        
    bottom: 24px;         
    right: 24px;        
    z-index: 1001;         
    padding: 16px 32px;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #D9A91C, #ffcc00);
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(243, 232, 34, 0.3);
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(233, 199, 90, 0.4);
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Đổi từ auto → 100% để nền đen che toàn màn */
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.popup-overlay.active {
    display: flex;
}

.quiz-container {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 40px;
    width: 80%;                 /* Chiếm 80% chiều ngang màn hình */
    max-width: 800px;
    max-height: 90vh;           /* Giới hạn chiều cao theo màn hình */
    overflow-y: auto;           /* Thanh cuộn dọc khi vượt quá */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    display: block;
}


.quiz-container.active {
    display: block;
}

@keyframes gradient {
    0%, 100% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
}

.quiz-header {
    text-align: center;
}

.quiz-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: #D9A91C;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    margin-top: -10px;
}

.quiz-subtitle {
    color: #d2d2d2;
    font-size: 1.1rem;
    font-weight: 400;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e1e5e9;
    border-radius: 4px;
    margin: 30px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6f570e, #ffcc00);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

.question-container {
    display: none;
    animation: slideIn 0.5s ease-out;
}

.question-container.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question {
    font-size: 1.4rem;
    font-weight: 600;
    color: #bababa;
    margin-bottom: 30px;
    line-height: 1.5;
}

.answers {
    display: grid;
    gap: 16px;
    margin-bottom: 30px;
}

.answer-option {
    padding: 15px 24px;
    border: 2px solid #ececec;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.answer-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.answer-option:hover {
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.answer-option:hover::before {
    left: 100%;
}

.answer-option.selected {
    border-color: #ffffff;
    background: linear-gradient(135deg, #ffcc00, #6f570e);
    color: rgb(0, 0, 0);
    transform: scale(1.02);
}

.answer-text {
    font-weight: 600;
    margin-bottom: 8px;
}

.answer-description {
    font-size: 0.9rem;
    opacity: 0.8;
}

.answer-option.selected .answer-description {
    opacity: 0.9;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-popup {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #D9A91C, #ffcc00);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 15px #ffcc00;
}

.btn-secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.results {
    display: none;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.results.active {
    display: block;
}

.result-card {
    background: #D9A91C;
    color: rgb(0, 0, 0);
    padding: 20px 40px;
    border-radius: 12px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.result-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.result-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.price-tag {
    display: inline-block;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

.restart-btn {
    margin-top: 30px;
    background: #D9A91C;
    color: #000000;
    border: none;
}

.restart-btn:hover {
    background: #ffcc00;
    transform: translateY(-2px);
}

.question-counter {
    color: #aaaaaa;
    font-weight: 500;
    margin-bottom: 20px;
}

.result-buttons {
    display: flex;
    gap: 12px; /* Khoảng cách giữa 2 nút */
    margin-top: 20px;
    justify-content: center; /* Căn giữa 2 nút */
}

.btn-popup {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.result-buttons button:first-child {
    background-color: #666666; 
    color: #333333; 
}

.result-buttons button:first-child:hover {
    background-color: #6d6d6d;
}

.neon-yellow {
    background-color: #facc15; /* vàng rực */
    color: #111;
    box-shadow:
        0 0 1px #facc15,
        0 0 2px #facc15,
        0 0 3px #e8be15,
        0 0 5px #cfaa14;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.neon-yellow:hover {
    box-shadow:
        0 0 3px #fde047,
        0 0 4px #fde047,
        0 0 5px #cfb63b,
        0 0 16px #ccb33a;
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .quiz-container {
        padding: 24px;
        margin: 10px;
    }

    .quiz-title {
        font-size: 2rem;
    }

    .question {
        font-size: 1.2rem;
    }

    .answers {
        gap: 12px;
    }

    .answer-option {
        padding: 16px 20px;
    }

    .start-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}