/* ==========================================================================
   FOOTER STYLES - MAU34 (INDUSTRIAL & AUTOMOTIVE EQUIPMENT)
   Matches the design mockup with exact layout, colors, and responsive grid.
   ========================================================================== */

.site-footer {
    background-color: #ffffff;
    color: #4b5563;
    font-family: inherit;
    /* border-top: 1px solid #e5e7eb; */
    position: relative;
    z-index: 10;
}

/* ==========================================================================
   1. FOOTER TRUST & COMMITMENT BAR
   ========================================================================== */
.footer-trust-wrap {
    background-color: #f7f9fa;
    /* border-bottom: 1px solid #e5e7eb; */
    padding: 0px 0 25px;
}

.footer-trust-bar {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.footer-trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 4px 16px;
    position: relative;
}

.footer-trust-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: #eee;
}

.footer-trust-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    color: var(--color-5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-trust-icon svg {
    width: 30px;
    height: 30px;
    stroke: currentColor;
    stroke-width: 1.8;
}

.footer-trust-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.footer-trust-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-trust-desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.35;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   2. RED NEWSLETTER SUBSCRIPTION BAR
   ========================================================================== */
.footer-newsletter-bar {
    background: var(--color-5);
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

.footer-newsletter-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 50%, rgba(255, 235, 59, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.footer-newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.footer-newsletter-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-newsletter-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border: 2px solid #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.12);
}

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

.footer-newsletter-text {
    display: flex;
    flex-direction: column;
}

.footer-newsletter-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    /* letter-spacing: 0.5px; */
    margin: 0 0 5px 0;
    line-height: 1.25;
}

.footer-newsletter-sub {
    font-size: 13px;
    color: #ffffff;
    opacity: 0.95;
    margin: 0;
    line-height: 1.35;
}

.footer-newsletter-right {
    min-width: 380px;
}

.footer-newsletter-form {
    display: flex;
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.footer-newsletter-input {
    flex: 1;
    border: none;
    padding: 11px 16px;
    font-size: 13.5px;
    color: #111827;
    outline: none;
    background: transparent;
    min-width: 0;
}

.footer-newsletter-input::placeholder {
    color: #9ca3af;
}

.footer-newsletter-btn {
    background-color: #ffd11d;
    color: #111827;
    border: none;
    padding: 0 24px;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.footer-newsletter-btn:hover {
    background-color: #f6c506;
    /* color: #ffffff; */
}

/* ==========================================================================
   3. MAIN FOOTER CONTENT (5 COLUMNS)
   ========================================================================== */
.footer-main-wrap {
    background-color: #ffffff;
    padding: 40px 0 35px;
}

.footer-main-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1.5fr 1fr;
    gap: 30px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col-brand p {
    font-size: 13.5px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0 0 14px 0;
}

.footer-col-brand p img,
.footer-col-brand .image {
    max-width: 240px !important;
    width: auto !important;
    max-height: 52px;
    object-fit: contain;
    display: block;
    margin-bottom: 6px;
}

.footer-brand-logo {
    display: inline-block;
    margin-bottom: 15px;
    text-decoration: none;
}

.footer-brand-logo img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-brand-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0 0 18px 0;
}

/* Social Buttons */
.footer-socials {
    /* display: flex;
    align-items: center;
    margin-top: 4px; */
}

.footer-socials ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.footer-socials ul li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-socials ul li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    padding-left: 0 !important;
}

.footer-socials ul li img {
    width: 36px !important;
    height: 36px !important;
    object-fit: contain;
    border-radius: 50%;
    display: block;
}

.social-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.social-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    color: #ffffff;
}

.social-btn svg {
    width: 16px;
    height: 16px;
}

.social-fb {
    background-color: #1877f2;
}

.social-yt {
    background-color: #ff0000;
}

.social-phone {
    background-color: #0084ff;
}

.social-zalo {
    background-color: #0068ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: -0.2px;
    font-family: Arial, sans-serif;
}

.zalo-text {
    line-height: 1;
}

/* Footer Section Headings */
.footer-col h2,
.footer-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: #111827;
    margin: 0 0 16px 0;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.footer-col .footer-socials ul {
    flex-direction: row;
}

/* Link Lists (both CMS raw ul and custom classes) */
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.footer-col ul li a,
.footer-links li a {
    color: #4b5563;
    text-decoration: none;
    font-size: 13.5px;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

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

/* Contact List */
.footer-col-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col-contact ul li,
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
}

.footer-col-contact ul li img {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px;
    border-radius: 50%;
    background-color: var(--color-5);
    padding: 4px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 1px;
    box-sizing: border-box;
    display: inline-block;
}

.contact-icon-circle {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background-color: var(--color-5);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    flex-shrink: 0;
}

.contact-icon-circle svg {
    width: 13px;
    height: 13px;
}

.footer-contact-list li a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-list li a:hover {
    color: var(--color-5);
}

.contact-phone-highlight {
    color: var(--color-5) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
}

/* Payment Badges */
.footer-col-payment ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.footer-col-payment ul li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 4px 8px;
    height: 36px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.footer-col-payment ul li:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.footer-col-payment ul li img {
    width: auto !important;
    max-width: 58px !important;
    max-height: 24px !important;
    height: auto !important;
    object-fit: contain;
    display: block;
}

.payment-badge-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.payment-badge {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 5px 8px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: border-color 0.2s ease;
}

.payment-badge:hover {
    border-color: #cbd5e1;
}

.badge-text-visa {
    color: #1a1f71;
    font-weight: 900;
    font-style: italic;
    font-size: 14px;
    letter-spacing: -0.5px;
    font-family: Arial, sans-serif;
}

.payment-mastercard {
    display: inline-flex;
    align-items: center;
    gap: -4px;
}

.mc-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
}

.mc-red {
    background-color: #eb001b;
    margin-right: -6px;
    opacity: 0.95;
}

.mc-orange {
    background-color: #f79e1b;
    opacity: 0.95;
}

.payment-momo {
    background-color: #a50064;
    border-color: #a50064;
    padding: 2px 7px;
}

.momo-box {
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-transform: lowercase;
}

.vnpay-text {
    font-size: 12px;
    font-weight: 800;
    font-family: Arial, sans-serif;
}

.vn-blue {
    color: #005baa;
}

.pay-red {
    color: #ed1c24;
}

.zalopay-text {
    font-size: 12px;
    font-weight: 800;
    font-family: Arial, sans-serif;
}

.zp-blue {
    color: #0068ff;
}

.zp-green {
    color: #f58220;
}

/* ==========================================================================
   4. COPYRIGHT BOTTOM BAR
   ========================================================================== */
.footer-bottom-bar {
    background-color: #0e6938;
    color: #ffffff;
    padding: 14px 0;
    border-top: 3px solid #094d28;
    font-size: 13px;
}

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

.footer-copyright {
    color: #ffffff;
    font-size: 13px;
    opacity: 0.95;
}

.footer-copyright p {
    margin: 0;
    display: inline;
    color: inherit;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.footer-bottom-links a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-bottom-links a:hover {
    opacity: 1;
    color: #fbc02d;
}

.footer-bottom-links .sep {
    opacity: 0.6;
}

/* ==========================================================================
   SUPPORT WIDGET & BACK TO TOP (PRESERVED SYSTEM FEATURES)
   ========================================================================== */
#topcontrol .backtotop {
    position: fixed;
    right: 18px;
    bottom: 15px;
    width: 44px;
    height: 44px;
    background: #0e6938;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background 0.3s ease, transform 0.2s ease;
}

#topcontrol .backtotop:hover {
    background: var(--color-5);
    transform: translateY(-3px);
}

#topcontrol .backtotop svg {
    stroke: #ffffff;
}

.support-widget {
    position: fixed;
    bottom: 75px;
    right: 15px;
    z-index: 99;
}

.trigger-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-5);
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(229, 3, 8, 0.45);
    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: #ffffff;
}

.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-5);
    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: 65px;
    right: 0;
    width: 340px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
    padding: 18px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    z-index: 999;
}

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

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 12px 0;
    background: transparent;
    color: #0f172a;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

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

.panel-info span {
    font-size: 12px;
    color: #22c55e;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

.online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
}

.close-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-greeting {
    font-size: 13.5px;
    color: #475569;
    margin: 0 0 14px 0;
    line-height: 1.45;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none !important;
    background: #edf5fd;
    border: 1px solid #d0e4ff;
    color: #0f172a !important;
    transition: all 0.2s ease;
    gap: 10px;
}

.contact-item:hover {
    background: #e2f0fe;
    border-color: #3b82f6;
    transform: translateY(-1px);
}

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

.contact-text strong {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: block;
}

.contact-text span {
    font-size: 12px;
    color: #64748b;
}

.contact-arrow {
    margin-left: auto;
    color: #94a3b8;
    font-size: 14px;
}

.icon-bvc-member svg {
    width: 28px;
    height: 28px;
    fill: #ffffff;
}

.icon-headset {
    fill: #111827;
}

@media (max-width: 1400px) {
    .footer-bottom-links {
        padding-right: 50px;
    }
}

/* ==========================================================================
   RESPONSIVE FOOTER
   ========================================================================== */
@media (max-width: 1200px) {
    .footer-trust-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .footer-trust-item:nth-child(2)::after {
        display: none;
    }

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

    .footer-col-payment {
        grid-column: span 4;
        margin-top: 10px;
    }
}

@media (max-width: 991px) {
    .footer-newsletter-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-newsletter-left {
        flex-direction: column;
    }

    .footer-newsletter-right {
        width: 100%;
        min-width: 0;
    }

    .footer-main-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-col-payment {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer-trust-bar {
        grid-template-columns: repeat(2, 1fr);
        padding: 10px;
        gap: 8px;
    }

    .footer-trust-item {
        padding: 6px;
        gap: 8px;
    }

    .footer-trust-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }

    .footer-trust-icon svg {
        width: 24px;
        height: 24px;
    }

    .footer-trust-title {
        font-size: 12.5px;
    }

    .footer-trust-desc {
        font-size: 11px;
    }

    .footer-main-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }

    .footer-col:first-child,
    .footer-col-brand,
    .footer-col-contact,
    .footer-col-payment {
        grid-column: span 2;
    }

    .footer-col:nth-child(2),
    .footer-col:nth-child(3),
    .footer-col-about,
    .footer-col-support {
        grid-column: span 1;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .footer-trust-bar {
        grid-template-columns: 1fr;
    }

    .footer-trust-item::after {
        display: none !important;
    }

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

    .footer-newsletter-btn {
        padding: 0 16px;
        font-size: 12.5px;
    }

    .footer-main-grid {
        gap: 20px 14px;
    }

    .footer-col-about h2,
    .footer-col-support h2,
    .footer-col:nth-child(2) h2,
    .footer-col:nth-child(3) h2,
    .footer-col-about .footer-title,
    .footer-col-support .footer-title,
    .footer-col:nth-child(2) .footer-title,
    .footer-col:nth-child(3) .footer-title {
        font-size: 14.5px;
        margin-bottom: 12px;
    }

    .footer-col-about ul li a,
    .footer-col-support ul li a,
    .footer-col:nth-child(2) ul li a,
    .footer-col:nth-child(3) ul li a {
        font-size: 13px;
    }

    .footer-copyright {
        padding-right: 50px;
    }
}