/* ====================================================
   Back to top button
   ==================================================== */
.backtotop {
    cursor: pointer;
    background: var(--color-3);
    bottom: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px;
    position: fixed;
    right: 12px;
    text-align: center;
    text-transform: uppercase;
    width: 40px;
    z-index: 999;
    border-radius: 4px;
    border: 1px solid #FFF;
}

.backtotop svg {
    width: 26px;
    height: 18px;
    margin-bottom: -1px;
}

.backtotop svg path {
    stroke: #fff;
}

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

.trigger-btn {
    width: 56px;
    height: 56px;
    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(212, 167, 84, 0.4);
    transition: transform 0.2s;
}

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

.trigger-btn .icon-bvc-member img {
    /* width: 34px;
    height: 34px; */
    border-radius: 50%;
    object-fit: cover;
}

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

.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: 70px;
    right: 0;
    width: 320px;
    background: var(--color-4);
    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-3);
    color: #fff;
}

.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: 16px;
    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: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.panel-greeting {
    padding: 14px 16px;
    font-size: 13px;
    color: #fff;
    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 !important;
    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-5);
    font-size: 20px;
}

/* ====================================================
   Footer Component Layout & Styling
   ==================================================== */
.site-footer {
    background-color: var(--color-3);
    padding-top: 60px;
    position: relative;
    overflow: hidden;
    color: #FFF;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-3);
    opacity: 0.85;
    z-index: 1;
    pointer-events: none;
}


.site-footer::after {
    content: "";
    position: absolute;
    bottom: 48px;
    right: 0;
    width: 280px;
    height: 150px;
    background-image: radial-gradient(rgba(0, 139, 70, 0.08) 1.5px, transparent 1.5px);
    background-size: 15px 15px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.7;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-right: -15px;
    margin-left: -15px;
    position: relative;
    z-index: 2;
    /* above the background shapes */
    padding-bottom: 40px;
}

.footer-col {
    padding-right: 15px;
    padding-left: 15px;
    margin-bottom: 25px;
}

.footer-col-brand {
    flex: 0 0 28%;
    max-width: 28%;
}

.footer-col-brand p {
    line-height: 1.6;
}

.footer-col:not(.footer-col-brand) {
    flex: 0 0 22%;
    max-width: 22%;
}

.footer-col.company {
    flex: 0 0 16%;
    max-width: 15%;
}

.footer-col.footer-col-contact {
    flex: 0 0 15%;
    max-width: 15%;
}

.footer-col-brand .image {
    max-width: 200px;
    width: 100% !important;
    margin-bottom: 20px;
}

/* Title styling */
.footer-col h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    /* padding-left: 12px; */
    line-height: 1.2;
}

/* .footer-col h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background-color: var(--color-3);
} */

/* Contact Info Styling */
.contact-info-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-col-contact .contact-info-group:first-of-type {
    border-bottom: 1.5px dashed var(--color-3);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.footer-col-contact h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 7px;
}

.footer-col-contact p {
    font-size: 15px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col-contact h2+h3+p {
    border-bottom: 1.5px dashed var(--color-3);
    margin-bottom: 15px;
}

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

.footer-col ul li a {
    font-size: 15px;
    transition: all 0.2s ease;
    display: inline-block;
    color: #FFF;
}

.footer-col ul li a:hover {
    opacity: .7;
}


/* Brand column styling */
.footer-logo {
    margin-bottom: 18px;
}

.footer-logo img {
    display: block;
    height: auto;
    max-width: 100%;
}

.footer-description {
    font-size: 13.5px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

/* Social icons styling */
.footer-socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3495d3;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-icon img {
    width: 16px;
    height: 16px;
}

.social-icon.linkedin {
    background-color: #0077b5;
}

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

.social-icon.tiktok {
    background-color: #000000;
}

.social-icon.x {
    background-color: #000000;
}

.social-icon.youtube {
    background-color: #ff0000;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

/* Bottom Copyright Bar */
.footer-bottom {
    background-color: #fff;
    padding: 10px 0;
    position: relative;
    z-index: 2;
}

.copyright-text {
    font-size: 14px;
    margin: 0;
    text-align: center;
    color: #000;
    padding: 0 50px;
}

.icon-bvc-member svg {
    width: 30px;
    height: 30px;
    fill: #FFF;
}

.panel-avatar {
    display: flex;
}

.icon-headset {
    fill: #FFF;
}

/* Responsive media queries */
@media (max-width: 1024px) {
    .footer-col:not(.footer-col-brand) {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .footer-col-brand,
    .footer-col.info {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        /* border-top: 1px dashed #eaeaea;
        padding-top: 30px; */
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding-top: 30px;
    }

    .footer-col:not(.footer-col-brand) {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .site-footer::before {
        width: 100%;
        height: 120px;
        clip-path: polygon(0 100%, 100% 100%, 0 0);
    }

    .site-footer::after {
        display: none;
    }

    .footer-row {
        padding-bottom: 20px;
        margin-right: -10px;
        margin-left: -10px;
    }

    .footer-col {
        padding-right: 10px;
        padding-left: 10px;
    }
}

@media (max-width: 480px) {
    /* .footer-col:not(.footer-col-brand) {
        flex: 0 0 100%;
        max-width: 100%;
    } */

    .footer-col ul li a {
        font-size: 14px;
    }

    .footer-col ul {
        gap: 10px;
    }

    .footer-col-contact .contact-info-group:first-of-type {
        border-bottom: 1.5px dashed var(--color-3);
        padding-bottom: 12px;
        margin-bottom: 12px;
        max-width: 100%;
    }

    .footer-col h2 {
        font-size: 15px;
    }
}

/* CSS for Quote Modal */
.quote-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.quote-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.quote-modal-card {
    background-color: #ffffff !important;
    width: 100%;
    max-width: 680px;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    position: relative;
    padding: 35px 40px;
    box-sizing: border-box;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.quote-modal-overlay.active .quote-modal-card {
    transform: scale(1);
}

.quote-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    color: #888888;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background-color 0.2s, transform 0.2s;
    border-radius: 50%;
}

.quote-modal-close:hover {
    color: #222222;
    background-color: #f0f0f0;
    transform: rotate(90deg);
}

.quote-modal-close svg {
    width: 20px;
    height: 20px;
}

.quote-modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.quote-modal-title {
    font-size: 26px;
    font-weight: 700;
    color: #222222;
    margin: 0 0 12px 0;
    line-height: 1.35;
    font-family: inherit;
}

.quote-modal-subtitle {
    font-size: 15px;
    line-height: 1.6;
    color: #444444;
    margin: 0;
    font-family: inherit;
}

.quote-modal-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.quote-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quote-form-label {
    font-size: 14px;
    font-weight: 500;
    color: #444444;
    font-family: inherit;
}

.quote-form-input {
    width: 100%;
    background-color: #eeeeee;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    color: #333333;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.quote-form-input::placeholder {
    color: #999999;
}

.quote-form-input:focus {
    background-color: #ffffff;
    border-color: #cccccc;
}

/* Custom Radios */
.quote-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.quote-radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #444444;
    user-select: none;
    position: relative;
    font-family: inherit;
}

.quote-radio-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.quote-radio-custom {
    height: 20px;
    width: 20px;
    background-color: #eeeeee;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    transition: background-color 0.2s;
}

.quote-radio-label:hover input~.quote-radio-custom {
    background-color: #e2e6ea;
}

.quote-radio-custom:after {
    content: "";
    position: absolute;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333333;
}

.quote-radio-label input:checked~.quote-radio-custom:after {
    display: block;
}

.quote-radio-text {
    font-size: 14px;
    font-weight: 400;
}

.quote-submit-btn {
    width: 100%;
    background-color: var(--color-3);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    text-align: center;
    margin-top: 10px;
    font-family: inherit;
}

.quote-submit-btn:hover {
    background-color: var(--color-4);
}

.quote-submit-btn:active {
    transform: scale(0.98);
}

@media (max-width: 576px) {
    .quote-modal-card {
        padding: 25px 20px;
    }

    .quote-modal-title {
        font-size: 20px;
    }

    .quote-modal-subtitle {
        font-size: 13.5px;
        display: none;
    }
}

/* ====================================================
   Footer Categories (Product Categories Row)
   ==================================================== */
.footer-categories {
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgb(54 152 216);
    /* Premium red divider line */
    position: relative;
    z-index: 2;
    /* Ensure clickable above overlay */
}

.footer-categories-title {
    font-size: 18px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-categories-item {
    min-width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background-color: rgb(52 149 211);
    /* Muted semi-transparent red-burgundy */
    /* border: 1px solid rgba(158, 35, 38, 0.75); */
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.25s ease-in-out;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.footer-categories-item:hover {
    color: #ffffff;
    transform: translateY(-2px);
}


@media (max-width: 768px) {
    .footer-categories {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }

    .footer-categories-title {
        margin-bottom: 15px;
    }

    .footer-categories-item {
        /* 2 items per row on tablet portrait */
        padding: 10px 15px;
        font-size: 13.5px;
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .footer-categories-item {
        /* 1 item per row on mobile */
        padding: 11px 15px;
    }

    .quote-modal-close {
        top: 5px;
        right: 5px;
    }
}