/* ====================================================
   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: 99;
}

.trigger-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-3);
    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-3);
    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: 375px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 20px;
    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 14px 0;
    background: transparent;
    color: #0f172a;
}

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

.panel-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-info {
    flex: 1;
}

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

.panel-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
    line-height: 1.2;
}

.panel-info span {
    font-size: 13px;
    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;
    flex-shrink: 0;
}

.close-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.panel-greeting {
    padding: 0;
    font-size: 14px;
    color: #475569;
    margin: 0 0 16px 0;
    border-bottom: none;
    line-height: 1.5;
    font-weight: 400;
}

.contact-list {
    display: flex;
    flex-direction: column;
    /* gap: 10px; */
    padding: 0;
}

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

.contact-item:last-child {
    margin-bottom: 0;
}

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

.contact-item .icon-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    overflow: hidden;
}

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

.contact-text {
    flex: 1;
}

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

.contact-text p {
    font-size: 13px;
    color: #64748b;
    margin: 2px 0 0 0;
    line-height: 1.3;
    font-weight: 400;
}

.contact-arrow {
    margin-left: auto;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s ease;
}

.contact-item:hover .contact-arrow {
    color: #475569;
    transform: translateX(2px);
}

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

.icon-headset {
    fill: #3b82f6;
    width: 38px;
    height: 38px;
}

@media (max-width: 575px) {
    .contact-panel {
        width: 300px;

    }
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
    position: relative;
    background-size: contain !important;
    background-position: center center;
    background-repeat: no-repeat;
}

.footer-main {
    padding: 96px 0 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 1.3fr 1.1fr 1.55fr;
    gap: 40px;
    align-items: flex-start;
}

@media (max-width: 1450px) {
    .footer-grid {
        grid-template-columns: 1.2fr 0.9fr 1.3fr 1.3fr 1.55fr;
    }
}

/* Col 1: Logo */
.footer-logo {
    display: inline-block;
}

.footer-logo p {
    margin: 0;
}

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

/* Headings in columns */
.footer-col h3,
.footer-col-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-4);
    margin-top: 0;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.footer-col h3:nth-of-type(n+2),
.footer-col-title-sub {
    margin-top: 24px;
    margin-bottom: 12px;
}

/* Lists and items */
.footer-col ul,
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li,
.footer-links li {
    margin-bottom: 12px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.5;
}

.footer-col ul li:last-child,
.footer-links li:last-child {
    margin-bottom: 0;
}

.footer-col ul li a,
.footer-links a {
    color: var(--color-1, #1a1a1a);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.footer-col ul li a:hover,
.footer-links a:hover {
    color: var(--color-3);
    transform: translateX(3px);
}

.footer-col ul li img,
.footer-col ul li .image {
    width: 20px !important;
    height: auto;
    max-width: 20px;
    vertical-align: middle;
    object-fit: contain;
    flex-shrink: 0;
    display: inline-block;
}

.footer-col p {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Newsletter Card */
.footer-newsletter-card {
    background: var(--color-4);
    border-radius: 14px;
    padding: 24px;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 51, 102, 0.15);
}

.footer-newsletter-card h3,
.footer-newsletter-card .newsletter-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.footer-newsletter-card p,
.footer-newsletter-card .newsletter-desc {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.5;
    margin-bottom: 30px;
}

.newsletter-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 8px;
    padding: 3px 5px 3px 14px;
    border: 1px solid transparent;
    transition: box-shadow 0.2s ease;
}

.newsletter-input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-input-group input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #1a1a1a;
}

.newsletter-input-group input::placeholder {
    color: #666666;
}

.newsletter-input-group button {
    background: transparent;
    border: none;
    color: var(--color-4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 6px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.newsletter-input-group button:hover {
    transform: translateX(2px);
}

/* Footer Bottom */
.footer-bottom {
    background: var(--color-4);
    color: #ffffff;
    padding: 24px 0;
    font-size: 16px;
}

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

.footer-copyright {
    color: #ffffff;
}

.footer-copyright p {
    margin: 0;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.5;
}

.footer-copyright a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.footer-copyright a:hover {
    color: var(--color-3);
    text-decoration: underline;
}

.footer-social-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-social-wrap .social-label {
    color: #ffffff;
    font-weight: 500;
    font-size: 16px;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--color-4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    overflow: hidden;
}

.social-icon:hover {
    /* background: var(--color-3); */
    color: #ffffff;
    transform: translateY(-2px);
}

.social-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

/* Responsive Footer */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }

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

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

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

    .footer-main {
        padding: 50px 0 40px;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 40px 0 30px;
    }

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

    .footer-col-newsletter {
        grid-column: span 1;
    }

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

    .footer-social-wrap {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }

    .social-icons {
        justify-content: center;
    }
}

/* ====================================================
   Consultation Modal Form
   ==================================================== */
body.modal-open {
    overflow: hidden !important;
}

.consultation-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 25, 47, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.consultation-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.consultation-modal-dialog {
    background: #ffffff;
    width: 100%;
    max-width: 560px;
    border-radius: 28px;
    padding: 40px 45px 44px;
    position: relative;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: translateY(24px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin: auto;
    box-sizing: border-box;
}

.consultation-modal-backdrop.is-open .consultation-modal-dialog {
    transform: translateY(0) scale(1);
}

.consultation-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
}

.consultation-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

.consultation-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.consultation-modal-title {
    font-size: 26px;
    font-weight: 700;
    color: #072d5b;
    line-height: 1.35;
    margin: 0 0 16px 0;
    font-family: inherit;
    letter-spacing: -0.3px;
}

.consultation-title-line {
    width: 220px;
    max-width: 70%;
    height: 4px;
    background: #f59e0b;
    margin: 0 auto;
    border-radius: 2px;
}

.consultation-modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.consult-form-group {
    position: relative;
    width: 100%;
}

.consult-form-input {
    width: 100%;
    height: 48px;
    padding: 12px 18px;
    font-size: 15px;
    font-family: inherit;
    color: #1e293b;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
    display: block;
}

.consult-form-input::placeholder {
    color: #94a3b8;
    font-size: 14.5px;
    opacity: 1;
}

.consult-form-input:focus {
    border-color: #0466c8;
    box-shadow: 0 0 0 3px rgba(4, 102, 200, 0.15);
}

.consult-form-textarea {
    height: 110px;
    min-height: 90px;
    max-height: 220px;
    padding: 14px 18px;
    resize: vertical;
}

.consult-form-action {
    margin-top: 4px;
}

.btn-consult-submit {
    width: 100%;
    height: 50px;
    background-color: #0466c8;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(4, 102, 200, 0.3);
}

.btn-consult-submit:hover {
    background-color: #0353a4;
    box-shadow: 0 6px 20px rgba(4, 102, 200, 0.4);
    transform: translateY(-1px);
}

.btn-consult-submit:active {
    transform: translateY(0);
}

@media (max-width: 640px) {
    .consultation-modal-backdrop {
        padding: 16px;
    }

    .consultation-modal-dialog {
        padding: 32px 20px 28px;
        border-radius: 20px;
    }

    .consultation-modal-title {
        font-size: 21px;
        margin-bottom: 12px;
    }

    .consultation-title-line {
        width: 160px;
        height: 3px;
    }

    .consultation-modal-form {
        gap: 14px;
    }

    .consult-form-input {
        height: 44px;
        padding: 10px 14px;
        font-size: 14px;
        border-radius: 8px;
    }

    .consult-form-textarea {
        height: 95px;
        min-height: 80px;
    }

    .btn-consult-submit {
        height: 46px;
        font-size: 15px;
        border-radius: 10px;
    }

    .consultation-modal-close {
        top: 14px;
        right: 14px;
        width: 32px;
        height: 32px;
    }
}
