/* lead.style.css */

/* Popup */
#copphaviet-button {
    position: fixed; bottom: 20px; right: 20px;
    background-color: #007bff; color: #fff;
    padding: 12px 18px; border-radius: 30px;
    font-weight: 600; cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); z-index: 9999;
}

#copphaviet-popup {
    position: fixed; bottom: 80px; right: 20px;
    width: 320px; background: #fff; border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    padding: 15px; z-index: 99999; display: none;
}

#copphaviet-popup.centered {
    bottom: auto; right: auto;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
}

#copphaviet-popup h5 { text-align: center; margin-bottom: 15px; }
#copphaviet-popup input, #copphaviet-popup textarea {
    width: 100%; margin-bottom: 10px; padding: 8px;
    border: 1px solid #ddd; border-radius: 6px;
}
#copphaviet-popup button {
    width: 100%; padding: 10px;
    background: #007bff; border: none; color: #fff;
    font-weight: 600; border-radius: 6px; cursor: pointer;
}
#copphaviet-popup button:disabled {
    background: #6c757d; cursor: not-allowed;
}
#copphaviet-popup .close-btn {
    position: absolute; top: 8px; right: 10px;
    cursor: pointer; font-weight: bold; color: #999;
}
#copphaviet-popup .success {
    color: #fff; background: #007bff; text-align: center; margin-top: 10px; font-weight: 600; padding: 8px; border-radius: 6px;
}
#copphaviet-popup .error {
    color: red; text-align: center; margin-top: 10px; font-weight: 600;
}
#copphaviet-popup .links { margin-top: 15px; text-align: center; }
#copphaviet-popup .links a {
    display: block; margin: 5px 0; color: #007bff; text-decoration: none; font-weight: 600;
    transition: color 0.3s ease;
}
#copphaviet-popup .links a:hover {
    color: #0056b3; text-decoration: underline;
}
#copphaviet-popup .skip-btn {
    margin-top: 15px; padding: 8px 20px; background: #6c757d;
    border: none; color: #fff; border-radius: 6px; cursor: pointer;
    display: block; margin-left: auto; margin-right: auto;
}
#copphaviet-popup .skip-btn:hover {
    background: #5a6268;
}

/* Zalo Button - CSS gốc */
.phone-vr-img-circle {
    background-color: #2196F3;
    width: 40px;
    height: 40px;
    line-height: 40px;
    top: 25px;
    left: 25px;
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    -webkit-animation: phonering-alo-circle-img-anim 1s infinite ease-in-out;
    animation: phone-vr-circle-fill 1s infinite ease-in-out;
}

.phone-vr-img-circle img {
    max-height: 25px;
    max-width: 27px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
}

#zalo-vr a {
    color: #007bff;
    text-decoration: none;
    background-color: transparent;
    -webkit-text-decoration-skip: objects;
}

.phone-vr-circle-fill {
    width: 65px;
    height: 65px;
    top: 12px;
    left: 12px;
    position: absolute;
    box-shadow: 0 0 0 0 #c31d1d;
    background-color: rgba(230, 8, 8, 0.7);
    border-radius: 50%;
    border: 2px solid transparent;
    -webkit-animation: phone-vr-circle-fill 2.3s infinite ease-in-out;
    animation: phone-vr-circle-fill 2.3s infinite ease-in-out;
    transition: all .5s;
    -webkit-transform-origin: 50% 50%;
    -ms-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    -webkit-animuiion: zoom 1.3s infinite;
    animation: zoom 1.3s infinite;
    box-shadow: 0 0 0 0 #2196f3;
    background-color: rgba(33, 150, 243, 0.7);
}

.button-contact .phone-vr {
    position: relative;
    visibility: visible;
    background-color: transparent;
    width: 90px;
    height: 90px;
    cursor: pointer;
    z-index: 11;
    left: 0;
    bottom: 0;
    display: block;
}

#zalo-vr {
    position: fixed;
    top: 40%;
    left: 20px;
    z-index: 11111;
}

@-webkit-keyframes phone-vr-circle-fill {
    0% { -webkit-transform: rotate(0) scale(1) skew(1deg); }
    10% { -webkit-transform: rotate(-25deg) scale(1) skew(1deg); }
    20% { -webkit-transform: rotate(25deg) scale(1) skew(1deg); }
    30% { -webkit-transform: rotate(-25deg) scale(1) skew(1deg); }
    40% { -webkit-transform: rotate(25deg) scale(1) skew(1deg); }
    50% { -webkit-transform: rotate(0) scale(1) skew(1deg); }
    100% { -webkit-transform: rotate(0) scale(1) skew(1deg); }
}

@keyframes phone-vr-circle-fill {
    0% { transform: rotate(0) scale(1) skew(1deg); }
    10% { transform: rotate(-25deg) scale(1) skew(1deg); }
    20% { transform: rotate(25deg) scale(1) skew(1deg); }
    30% { transform: rotate(-25deg) scale(1) skew(1deg); }
    40% { transform: rotate(25deg) scale(1) skew(1deg); }
    50% { transform: rotate(0) scale(1) skew(1deg); }
    100% { transform: rotate(0) scale(1) skew(1deg); }
}

@-webkit-keyframes zoom {
    0% { transform: scale(.9); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px transparent; }
    100% { transform: scale(.9); box-shadow: 0 0 0 0 transparent; }
}

@keyframes zoom {
    0% { transform: scale(.9); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px transparent; }
    100% { transform: scale(.9); box-shadow: 0 0 0 0 transparent; }
}

@media (max-width:979px) {
    #zalo-vr { top: 81%; }
}