/* Floating contact tools shared by every public TechGlobal page. */
.tg-floating-contact {
    position: fixed;
    z-index: 1035;
    top: 50%;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: translateY(-50%);
}

.tg-floating-contact__item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid #d9e5ee;
    border-radius: 50%;
    background: #fff;
    color: #079bd3;
    box-shadow: 0 4px 16px rgba(18, 66, 103, .18);
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.tg-floating-contact__item:hover,
.tg-floating-contact__item:focus-visible {
    border-color: #079bd3;
    color: #079bd3;
    box-shadow: 0 6px 20px rgba(18, 66, 103, .25);
    outline: 0;
    transform: translateX(-3px);
}

.tg-floating-contact__item > i {
    color: #079bd3;
    font-size: 23px;
    line-height: 1;
}

.tg-floating-contact__item--contact > i {
    font-size: 26px;
}

.tg-floating-contact__item img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.tg-floating-contact__item > span {
    position: absolute;
    top: 50%;
    right: calc(100% + 8px);
    padding: 7px 10px;
    border-radius: 4px;
    background: #14599d;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translate(6px, -50%);
    transition: opacity .2s ease, transform .2s ease;
    white-space: nowrap;
}

.tg-floating-contact__item:hover > span,
.tg-floating-contact__item:focus-visible > span {
    opacity: 1;
    transform: translate(0, -50%);
}

.tg-floating-contact__item--hotline::before,
.tg-floating-contact__item--hotline::after {
    position: absolute;
    inset: -1px;
    border: 1px solid #079bd3;
    border-radius: 50%;
    content: "";
    opacity: 0;
    pointer-events: none;
    animation: tg-contact-ripple 2.4s infinite ease-out;
}

.tg-floating-contact__item--hotline::after {
    animation-delay: 1.2s;
}

@keyframes tg-contact-ripple {
    0% {
        opacity: .55;
        transform: scale(1);
    }

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

body.tg-contact-modal-open .modal-backdrop {
    z-index: 1055;
    background-color: #071b2d;
}

body.tg-contact-modal-open .modal-backdrop.show {
    opacity: .68;
}

body.modal-open {
    overflow: hidden;
}

/* The homepage ships a reduced Bootstrap stylesheet, so modal primitives live here too. */
.tg-contact-modal.modal {
    position: fixed;
    z-index: 1060;
    top: 0;
    left: 0;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.tg-contact-modal .modal-dialog {
    position: relative;
    width: auto;
    margin: 8px;
    pointer-events: none;
}

.tg-contact-modal .modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 16px);
}

.tg-contact-modal.fade .modal-dialog {
    transform: translateY(-50px);
    transition: transform .3s ease-out;
}

.tg-contact-modal.show .modal-dialog {
    transform: none;
}

.tg-contact-modal .modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-clip: padding-box;
    outline: 0;
}

.tg-contact-modal .modal-header {
    display: flex;
    flex-shrink: 0;
    justify-content: space-between;
}

.tg-contact-modal .modal-body {
    position: relative;
    flex: 1 1 auto;
}

.modal-backdrop {
    position: fixed;
    z-index: 1050;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}

.modal-backdrop.fade {
    opacity: 0;
}

.modal-backdrop.show {
    opacity: .5;
}

.tg-hotline-modal .modal-dialog {
    width: calc(100% - 30px);
    max-width: 1120px;
    margin-right: auto;
    margin-left: auto;
}

.tg-hotline-modal .modal-content,
.tg-quick-contact-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(20, 89, 157, .24);
}

.tg-hotline-modal .modal-header,
.tg-quick-contact-modal .modal-header {
    border-bottom: 0;
    background: #14599d;
    color: #fff;
}

.tg-hotline-modal .modal-header {
    align-items: center;
    padding: 16px 20px;
}

.tg-hotline-modal .modal-title,
.tg-quick-contact-modal .modal-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: inherit;
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
}

.tg-hotline-modal .modal-title {
    font-size: 18px;
    line-height: 1.3;
    text-transform: uppercase;
}

.tg-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    opacity: .85;
}

.tg-modal-close:hover,
.tg-modal-close:focus-visible {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    opacity: 1;
    outline: 0;
}

.tg-hotline-modal .modal-body {
    padding: 20px;
}

.tg-hotline-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(250px, .8fr);
    gap: 15px;
    align-items: stretch;
}

.tg-hotline-panel {
    min-width: 0;
    padding: 15px;
    border: 1px solid #dce6ef;
    border-radius: 8px;
    background: #fff;
}

.tg-hotline-panel--sales {
    background: linear-gradient(145deg, #f2f8fe 0%, #fff 100%);
}

.tg-hotline-panel--dealer {
    background: #f8fbfe;
}

.tg-hotline-panel__heading {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #dce6ef;
}

.tg-hotline-panel__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e5f3ff;
    color: #14599d;
    font-size: 18px;
}

.tg-hotline-panel__heading h3 {
    margin: 0;
    color: #14599d;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: none;
}

.tg-hotline-panel__heading p {
    margin: 3px 0 0;
    color: #6c7782;
    font-size: 12px;
    line-height: 1.35;
}

.tg-hotline-regions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.tg-hotline-regions--sales {
    grid-template-columns: minmax(0, 1fr);
}

.tg-hotline-region {
    min-width: 0;
    padding: 12px;
    border: 1px solid #dce6ef;
    border-radius: 7px;
    background: rgba(255, 255, 255, .72);
}

.tg-hotline-region h4 {
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e8f0;
    color: #14599d;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.tg-hotline-region h4 i {
    margin-right: 5px;
    color: #079bd3;
}

.tg-hotline-people {
    display: grid;
    gap: 10px;
}

.tg-hotline-person {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px;
    border: 1px solid #e0e8f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(25, 77, 126, .06);
}

.tg-hotline-person__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: linear-gradient(145deg, #14599d, #079bd3);
    box-shadow: 0 0 0 1px #d8e4ef;
}

.tg-hotline-person__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tg-hotline-person__info {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.tg-hotline-person__info strong {
    color: #17212b;
    font-size: 14px;
    font-weight: 700;
}

.tg-hotline-person__info > span {
    margin-top: 2px;
    color: #6c7782;
    font-size: 12px;
}

.tg-hotline-person__info a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    color: #079bd3;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.tg-hotline-person__info a:hover,
.tg-hotline-person__info a:focus-visible {
    color: #14599d;
    text-decoration: none;
}

.tg-quick-contact-modal .modal-dialog {
    width: calc(100% - 30px);
    max-width: 680px;
    margin-right: auto;
    margin-left: auto;
}

.tg-quick-contact-modal .modal-header {
    align-items: flex-start;
    padding: 17px 20px;
}

.tg-quick-contact-modal .modal-title {
    font-size: 20px;
    line-height: 1.3;
}

.tg-quick-contact-modal .modal-header p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
    line-height: 1.5;
}

.tg-quick-contact-modal .modal-body {
    padding: 20px;
}

.tg-quick-contact-form {
    margin: 0;
}

.tg-honeypot {
    position: absolute !important;
    overflow: hidden !important;
    width: 1px !important;
    height: 1px !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.tg-quick-contact-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tg-quick-contact-field {
    margin-bottom: 14px;
}

.tg-quick-contact-field label {
    display: block;
    margin-bottom: 6px;
    color: #27323c;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.tg-quick-contact-field label span {
    color: #c51f32;
}

.tg-quick-contact-field input,
.tg-quick-contact-field textarea {
    display: block;
    width: 100%;
    border: 1px solid #d5dee6;
    border-radius: 5px;
    background: #fff;
    color: #222529;
    font-family: "Open Sans", sans-serif;
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.tg-quick-contact-field input {
    height: 46px;
    padding: 9px 12px;
}

.tg-quick-contact-field textarea {
    min-height: 110px;
    padding: 10px 12px;
    line-height: 1.6;
    resize: vertical;
}

.tg-quick-contact-field input:focus,
.tg-quick-contact-field textarea:focus {
    border-color: #079bd3;
    box-shadow: 0 0 0 2px rgba(7, 155, 211, .12);
    outline: 0;
}

.tg-quick-contact-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.tg-quick-contact-actions .btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 150px;
    min-height: 44px;
    border-color: #14599d;
    background: #14599d;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.tg-quick-contact-actions .btn:hover,
.tg-quick-contact-actions .btn:focus-visible {
    border-color: #079bd3;
    background: #079bd3;
    color: #fff;
}

.tg-quick-contact-actions .btn:disabled {
    cursor: wait;
    opacity: .7;
}

.tg-quick-contact-status {
    flex: 1 1 auto;
    margin: 0;
    color: #138a42;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.tg-quick-contact-status.is-error {
    color: #b7212b;
}

.tg-quick-contact-status:empty {
    display: none;
}

@media (min-width: 576px) {
    .tg-contact-modal .modal-dialog {
        min-height: calc(100% - 56px);
        margin-top: 28px;
        margin-bottom: 28px;
    }
}

@media (max-width: 991.98px) {
    .tg-hotline-layout {
        grid-template-columns: 1fr;
    }

    .tg-hotline-regions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .tg-floating-contact {
        top: auto;
        right: 10px;
        bottom: 92px;
        gap: 7px;
        transform: none;
    }

    #vnp_chat {
        bottom: 20px !important;
    }

    .tg-floating-contact__item {
        width: 42px;
        height: 42px;
    }

    .tg-floating-contact__item img {
        width: 27px;
        height: 27px;
    }

    .tg-floating-contact__item > i {
        font-size: 20px;
    }

    .tg-floating-contact__item--contact > i {
        font-size: 23px;
    }

    .tg-floating-contact__item > span {
        display: none;
    }

    .tg-hotline-modal .modal-dialog,
    .tg-quick-contact-modal .modal-dialog {
        width: auto;
        margin: 10px;
    }

    .tg-hotline-modal .modal-header {
        padding: 14px 16px;
    }

    .tg-hotline-modal .modal-title {
        gap: 7px;
        font-size: 16px;
    }

    .tg-hotline-modal .modal-body {
        max-height: calc(100vh - 90px);
        padding: 12px;
        overflow-y: auto;
    }

    .tg-hotline-layout,
    .tg-hotline-regions {
        grid-template-columns: 1fr;
    }

    .tg-hotline-panel--sales {
        order: 1;
    }

    .tg-hotline-panel--dealer {
        order: 2;
    }

    .tg-hotline-panel {
        padding: 12px;
    }

    .tg-hotline-person {
        padding: 9px;
    }

    .tg-hotline-person__avatar {
        flex-basis: 50px;
        width: 50px;
        height: 50px;
    }

    .tg-quick-contact-modal .modal-header,
    .tg-quick-contact-modal .modal-body {
        padding: 16px;
    }

    .tg-quick-contact-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tg-quick-contact-field input,
    .tg-quick-contact-field textarea {
        font-size: 16px;
    }

    .tg-quick-contact-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .tg-quick-contact-actions .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tg-floating-contact__item--hotline::before,
    .tg-floating-contact__item--hotline::after {
        animation: none;
    }

    .tg-contact-modal.fade .modal-dialog {
        transition: none;
    }
}
