.zalo-open-btn {
background: linear-gradient(135deg, #0068ff, #0050cc);
color: white;
border: none;
padding: 4px 8px;
border-radius: 25px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(0, 104, 255, 0.3);
display: inline-flex;
align-items: center;
gap: 8px;
text-decoration: none;
}
.zalo-open-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0, 104, 255, 0.4);
background: linear-gradient(135deg, #0050cc, #003c99);
}
.zalo-open-btn:active {
transform: translateY(0);
} .popup-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(10, 15, 30, 0.6);
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
z-index: 1000;
padding: 20px;
box-sizing: border-box;
}
.popup-overlay.active {
opacity: 1;
visibility: visible;
} .popup {
background: white;
border-radius: 24px;
padding: 36px 32px 28px;
max-width: 460px;
width: 90%;
max-height: 88vh;
overflow-y: auto;
position: relative;
transform: scale(0.7) translateY(-50px);
transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
box-shadow:
0 2px 4px rgba(0, 0, 0, 0.06),
0 12px 32px rgba(0, 104, 255, 0.12),
0 40px 80px rgba(0, 0, 0, 0.12);
font-family: "Be Vietnam Pro", sans-serif;
}
.popup-overlay.active .popup {
transform: scale(1) translateY(0);
} .popup-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
margin-bottom: 24px;
padding-bottom: 20px;
border-bottom: 1.5px solid #f0f2f5;
} .popup-header-inner {
display: flex;
align-items: center;
gap: 14px;
} .popup-logo {
width: 52px;
height: 52px;
background: linear-gradient(135deg, #0068ff 0%, #3d8bff 100%);
border-radius: 14px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
box-shadow: 0 6px 18px rgba(0, 104, 255, 0.3);
}
.popup-logo svg {
width: 30px;
height: 30px;
} .popup-header-text {
display: flex;
flex-direction: column;
gap: 3px;
}
.popup-title {
font-size: 18px;
font-weight: 700;
color: #1a1d23;
margin: 0;
letter-spacing: -0.2px;
font-family: "Be Vietnam Pro", sans-serif;
} .popup-subtitle {
font-size: 13px;
color: #5a6070;
margin: 0;
line-height: 1.4;
font-family: "Be Vietnam Pro", sans-serif;
} .close-btn {
background: none;
border: 1.5px solid #e2e5ec;
font-size: 20px;
cursor: pointer;
color: #9ca3af;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
transition: all 0.2s ease;
flex-shrink: 0;
margin-top: 2px;
font-family: inherit;
padding: 0;
line-height: 1;
}
.close-btn:hover {
background: #fff1f1;
color: #d63a3a;
border-color: #f5b7b7;
} .popup-content {
color: #5a6070;
line-height: 1.6;
} #zalo-register-form {
max-width: 100%;
margin: 0;
padding: 0;
border-radius: 0;
box-shadow: none;
}
#zalo-register-form h2 {
display: none;
}
#zalo-register-form .form-group {
margin-bottom: 16px;
}
#zalo-register-form label {
display: block;
font-size: 13px;
margin-bottom: 6px;
font-weight: 600;
color: #1a1d23;
letter-spacing: 0.1px;
font-family: "Be Vietnam Pro", sans-serif;
} .field-required {
color: #0068ff;
margin-left: 2px;
} .field-wrap {
position: relative;
} .field-icon {
position: absolute;
left: 13px;
top: 50%;
transform: translateY(-50%);
width: 17px;
height: 17px;
color: #9ca3af;
pointer-events: none;
transition: color 0.2s;
}
.field-wrap:focus-within .field-icon {
color: #0068ff;
} .field-check {
position: absolute;
right: 13px;
top: 50%;
transform: translateY(-50%);
width: 17px;
height: 17px;
opacity: 0;
transition: opacity 0.2s;
pointer-events: none;
} #zalo-name,
#zalo-address,
#zalo-phone {
width: 100%;
padding: 12px 36px 12px 40px;
border: 1.5px solid #e2e5ec;
border-radius: 11px;
font-size: 15px;
font-family: "Be Vietnam Pro", sans-serif;
font-weight: 400;
color: #1a1d23;
transition: all 0.2s ease;
box-sizing: border-box;
background: #f8fafd;
outline: none;
-webkit-appearance: none;
}
#zalo-name:focus,
#zalo-address:focus,
#zalo-phone:focus {
border-color: #0068ff;
background: #fff;
box-shadow: 0 0 0 3px rgba(0, 104, 255, 0.1);
}
#zalo-name::placeholder,
#zalo-address::placeholder,
#zalo-phone::placeholder {
color: #9ca3af;
font-style: normal;
font-weight: 400;
} #zalo-name.error,
#zalo-address.error,
#zalo-phone.error {
border-color: #d63a3a;
background: #fff1f1;
box-shadow: 0 0 0 3px rgba(214, 58, 58, 0.1);
}
#zalo-name.success,
#zalo-address.success,
#zalo-phone.success {
border-color: #1aae6f;
box-shadow: 0 0 0 3px rgba(26, 174, 111, 0.1);
} #zalo-name.success ~ .field-check,
#zalo-address.success ~ .field-check,
#zalo-phone.success ~ .field-check {
opacity: 1;
} #zalo-submit-btn {
width: 100%;
padding: 14px;
border: none;
border-radius: 13px;
background: linear-gradient(135deg, #0068ff, #2880ff);
color: white;
font-family: "Be Vietnam Pro", sans-serif;
font-weight: 600;
font-size: 15px;
cursor: pointer;
transition: all 0.2s ease;
min-height: 50px;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
margin-top: 6px;
box-shadow: 0 4px 16px rgba(0, 104, 255, 0.35);
}
#zalo-submit-btn:hover:not(:disabled) {
background: linear-gradient(135deg, #0050cc, #003c99);
transform: translateY(-1px);
box-shadow: 0 8px 24px rgba(0, 104, 255, 0.45);
}
#zalo-submit-btn:active:not(:disabled) {
transform: translateY(0);
box-shadow: 0 2px 8px rgba(0, 104, 255, 0.25);
}
#zalo-submit-btn:disabled {
opacity: 0.7;
cursor: not-allowed;
transform: none;
} .btn-text {
display: flex;
align-items: center;
gap: 8px;
transition: all 0.2s ease;
}
.btn-loading {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
transition: all 0.2s ease;
} .btn-spinner {
width: 16px;
height: 16px;
border: 2px solid rgba(255, 255, 255, 0.35);
border-top-color: #fff;
border-radius: 50%;
animation: spin 0.7s linear infinite;
flex-shrink: 0;
} .btn-loading:not(:has(.btn-spinner))::before {
content: "";
width: 16px;
height: 16px;
border: 2px solid transparent;
border-top-color: currentColor;
border-radius: 50%;
animation: spin 0.7s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
} #zalo-success,
#zalo-error {
display: none;
margin-top: 16px;
padding: 14px 16px;
border-radius: 11px;
font-size: 14px;
font-family: "Be Vietnam Pro", sans-serif;
line-height: 1.55;
word-wrap: break-word;
animation: fadeIn 0.3s ease;
}
#zalo-success {
background: #eafbf3;
border: 1px solid #a3e4c5;
color: #0a7a4e;
}
#zalo-success a {
display: inline-flex;
align-items: center;
gap: 6px;
margin-top: 10px;
padding: 9px 18px;
border-radius: 9px;
background: linear-gradient(135deg, #0068ff, #2880ff);
color: #fff;
font-weight: 600;
font-size: 14px;
text-decoration: none;
transition: all 0.2s ease;
opacity: 0;
}
#zalo-success.show a {
opacity: 1;
}
#zalo-success a:hover {
background: linear-gradient(135deg, #0050cc, #003c99);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 104, 255, 0.3);
}
#zalo-error {
background: #fff1f1;
border: 1px solid #f5b7b7;
color: #d63a3a;
} .form-note {
text-align: center;
margin: 16px 0 0;
font-size: 12px;
color: #9ca3af;
line-height: 1.6;
font-family: "Be Vietnam Pro", sans-serif;
} .zalo-register-form input.error {
border-color: #d63a3a;
box-shadow: 0 0 0 3px rgba(214, 58, 58, 0.1);
}
.zalo-register-form input.success {
border-color: #1aae6f;
box-shadow: 0 0 0 3px rgba(26, 174, 111, 0.1);
}
.zalo-register-form .success-message,
.zalo-register-form .error-message {
display: none;
margin-top: 16px;
padding: 14px 16px;
border-radius: 11px;
font-size: 14px;
animation: fadeIn 0.3s ease;
word-wrap: break-word;
}
.zalo-register-form .success-message {
background: #eafbf3;
border: 1px solid #a3e4c5;
color: #0a7a4e;
}
.zalo-register-form .error-message {
background: #fff1f1;
border: 1px solid #f5b7b7;
color: #d63a3a;
} @keyframes fadeIn {
from {
opacity: 0;
transform: translateY(-8px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes slideInTop {
from {
opacity: 0;
transform: translateY(-50px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes slideInBottom {
from {
opacity: 0;
transform: translateY(50px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.slide-top .popup {
animation: slideInTop 0.3s ease;
}
.slide-bottom .popup {
animation: slideInBottom 0.3s ease;
}
@keyframes pulse {
0% {
transform: scale(1);
}
50% {
transform: scale(1.02);
}
100% {
transform: scale(1);
}
}
#zalo-success.show {
animation:
fadeIn 0.3s ease,
pulse 0.6s ease 0.3s;
} .zalo-register-form-wrapper {
display: inline-block;
} @media (max-width: 768px) {
.popup {
width: 95%;
padding: 24px 20px 20px;
}
.popup-title {
font-size: 16px;
}
#zalo-name,
#zalo-address,
#zalo-phone {
font-size: 16px; }
.zalo-open-btn {
padding: 14px 20px;
font-size: 14px;
}
}
@media (max-width: 480px) {
.popup {
width: 98%;
padding: 20px 16px 16px;
border-radius: 18px;
}
.popup-header {
margin-bottom: 18px;
padding-bottom: 14px;
}
.popup-logo {
width: 44px;
height: 44px;
border-radius: 12px;
}
.popup-logo svg {
width: 26px;
height: 26px;
}
#zalo-register-form .form-group {
margin-bottom: 14px;
}
} @media (prefers-contrast: high) {
#zalo-name,
#zalo-address,
#zalo-phone {
border-width: 3px;
}
#zalo-submit-btn {
border: 2px solid #fff;
}
}
@media (prefers-reduced-motion: reduce) {
* {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
.popup-overlay,
.popup {
transition: none;
}
}
@media print {
.popup-overlay,
.zalo-open-btn {
display: none !important;
}
}