/* ====================================================
   Newsletter / Đăng ký nhận tin Section
   ==================================================== */
.newsletter-section {
    position: relative;
    background-color: #5a5430;
    background-image: url('/assets/frontend/images/newsletter-bg.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.newsletter-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(60, 52, 20, 0.3);
    z-index: 0;
}

.newsletter-section .ctnr {
    position: relative;
    z-index: 1;
}

.newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 26px 0;
}

/* --- Info bên trái --- */
.newsletter-info {
    display: flex;
    align-items: center;
    gap: 20px;
    /* flex-shrink: 0; */
}

.newsletter-icon {
    width: 60px;
    height: 60px;
}

.newsletter-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.newsletter-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.3;
}

.newsletter-subtitle {
    font-size: 14px;
    color: #FFF;
    margin: 0;
    line-height: 1.5;
}

/* --- Form bên phải --- */
.newsletter-form-wrap {
    flex-shrink: 0;
    max-width: 480px;
    width: 100%;
}

.newsletter-form {
    display: flex;
    align-items: center;
    gap: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.07);
}

.newsletter-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 16px 16px;
    font-size: 14px;
    color: #fff;
    font-family: inherit;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-btn {
    flex-shrink: 0;
    background: var(--color-2);
    color: #1a1400;
    border: none;
    padding: 17px 30px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: background 0.25s, color 0.25s;
    font-family: inherit;
    white-space: nowrap;
    border-radius: 14px;
}

.newsletter-btn:hover {
    background: var(--color-3);
    /* color: #fff; */
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .newsletter-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 28px 0;
    }

    .newsletter-form-wrap {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .newsletter-info {
        gap: 14px;
    }

    .newsletter-icon {
        width: 44px;
        height: 44px;
    }

    .newsletter-icon svg {
        width: 22px;
        height: 22px;
    }

    .newsletter-title {
        font-size: 16px;
    }

    .newsletter-form {
        flex-direction: column;
        border-radius: 6px;
        overflow: visible;
        background: transparent;
        border: none;
        gap: 10px;
    }

    .newsletter-input {
        width: 100%;
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 4px;
        background: rgba(255, 255, 255, 0.07);
        padding: 11px 14px;
    }

    .newsletter-btn {
        width: 100%;
        border-radius: 4px;
        padding: 12px;
        text-align: center;
    }
}

/* ====================================================
   Back to top button
   ==================================================== */
.backtotop {
    position: fixed;
    bottom: 12px;
    right: 20px;
    z-index: 999;
    width: 40px;
    height: 40px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.backtotop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Vòng tròn ngoài */
.backtotop-inner {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #29271f;
    border: 1px solid #FFF;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

/* SVG progress ring */
/* .backtotop-svg {
    position: absolute;
    inset: 0;
    width: 40px;
    height: 40px;
    transform: rotate(-90deg);
    pointer-events: none;
}

.backtotop-track {
    fill: none;
    stroke: rgba(212, 167, 84, 0.18);
    stroke-width: 2.5;
}

.backtotop-progress {
    fill: none;
    stroke: var(--color-2);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 138.2;
    stroke-dashoffset: 138.2;
    transition: stroke-dashoffset 0.1s linear;
} */

/* Arrow icon */
.backtotop-arrow {
    width: 18px;
    height: 18px;
    color: var(--color-2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.25s, transform 0.25s;
}

.backtotop:hover .backtotop-arrow {
    color: #f0c860;
    transform: translateY(-2px);
}

.backtotop-arrow svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* ====================================================
   Support Widget / Contact Panel
   ==================================================== */
.support-widget {
    position: fixed;
    bottom: 69px;
    right: 15px;
    z-index: 9998;
}

.trigger-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-2);
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(212, 167, 84, 0.4);
    transition: transform 0.2s;
}

.trigger-btn:hover {
    transform: scale(1.05);
}

.trigger-btn .icon-bvc-member img {
    border-radius: 50%;
    object-fit: cover;
}

.trigger-btn .icon-close-main {
    display: none;
    width: 22px;
    height: 22px;
    fill: #111;
}

.trigger-btn.active .icon-bvc-member {
    display: none;
}

.trigger-btn.active .icon-close-main {
    display: block;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--color-2);
    animation: pulse-ring 2s ease-out infinite;
    pointer-events: none;
}

.pulse-ring:nth-child(2) {
    animation-delay: 0.8s;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.contact-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    background: #1a1c22;
    border: 1px solid rgba(212, 167, 84, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.contact-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--color-2);
    color: #111;
}

.panel-title {
    display: grid;
    grid-template-columns: 38px auto;
    align-items: center;
    gap: 10px;
}

.panel-avatar img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.panel-info h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: #111;
}

.panel-info span {
    font-size: 11px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 4px;
}

.online-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2ecc71;
    display: inline-block;
}

.close-btn {
    background: none;
    border: none;
    color: #111;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.panel-greeting {
    padding: 14px 16px;
    font-size: 13px;
    color: #bbb;
    margin: 0;
    border-bottom: 1px solid #2a2c32;
}

.contact-list {
    padding: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #eee;
    transition: background 0.2s;
    gap: 10px;
}

.contact-item:hover {
    background: rgba(212, 167, 84, 0.1);
    text-decoration: none;
}

.contact-item .icon-wrap {
    flex-shrink: 0;
}

.contact-item .icon-wrap img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
}

.contact-text strong {
    font-size: 16px;
    font-weight: 600;
    color: #eee;
}

.contact-text p {
    font-size: 13px;
}

.contact-arrow {
    margin-left: auto;
    color: var(--color-2);
    font-size: 20px;
}

/* ====================================================
   SITE FOOTER
   ==================================================== */
.site-footer {
    background-color: #29271f;
    color: #fff;
    font-size: 14px;
}

/* ---- Footer Main ---- */
.footer-main {
    padding: 50px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Grid 4 cột: brand | links | contact | map */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px 30px;
    align-items: start;
}

/* ---- Cột Brand ---- */
.footer-col--brand img {
    width: 100%;
    max-width: 110px;
}

/* Social icons */
.footer-socials ul {
    display: flex;
    gap: 10px;
    margin-top: 4px;
    flex-wrap: wrap;
    list-style: none;
}

.footer-socials ul li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.footer-socials ul li a img {
    width: 17px;
    height: 17px;
    display: block;
    object-fit: contain;
}

.footer-col--brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ---- Tiêu đề cột ---- */
.footer-col h2 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 18px;
    letter-spacing: 1px;
}

.footer-col ul li {
    list-style: none;
}

/* ---- Links grid (2 sub-col) ---- */
.footer-col--links ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.footer-col--links ul li a {
    color: #FFF;
    transition: .3s;
}

.footer-col--links ul li a:hover {
    color: var(--color-2);
}

/* ---- Contact list ---- */
.footer-col--contact ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col--contact ul li {
    padding-left: 30px;
    position: relative;
}

.footer-col--contact ul li img {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ---- Map iframe ---- */
.footer-map-wrap iframe {
    width: 100%;
    height: 150px;
    border: 0;
    display: block;
    border-radius: 8px;
    overflow: hidden;
}

/* ---- Footer Bottom Bar ---- */
.footer-bottom {
    padding: 12px 0;
    background-color: #29271f;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-copyright {
    font-size: 13px;
    margin: 0;
}

.footer-bottom-links ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
}

.footer-bottom-links ul li {
    padding: 0 15px;
    line-height: 1;
}

.footer-bottom-links ul li:not(:last-child) {
    border-right: 1px solid #FFF;
}

.footer-bottom-links a {
    color: #fff;
    font-size: 13px;
    transition: color 0.25s;
}

.footer-bottom-links a:hover {
    color: var(--color-2);
}

/* ====================================================
   RESPONSIVE
   ==================================================== */

/* Tablet: ≤ 1023px — thu 4 cột thành 2 hàng */
@media (max-width: 1023px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px 30px;
    }

    .footer-col--map {
        grid-column: 1 / -1;
        /* bản đồ chiếm full width hàng cuối */
    }

    .footer-map-wrap iframe {
        height: 180px;
    }
}

/* Tablet nhỏ / mobile lớn: ≤ 767px — 1 cột */
@media (max-width: 767px) {
    .footer-main {
        padding: 36px 0 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-col--map {
        grid-column: auto;
    }

    .footer-links-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-map-wrap iframe {
        height: 200px;
    }
}

/* Mobile: ≤ 480px */
@media (max-width: 480px) {
    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .footer-logo-link {
        max-width: 130px;
    }

    .support-widget {
        bottom: 120px;
    }

    .backtotop {
        bottom: 60px;
    }

    .footer-copyright {
        text-align: center;
    }
}