/* Zalo Contact CTA Pro - Frontend Styles */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

.zctapro-wrapper {
    font-family: 'Be Vietnam Pro', sans-serif;
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(to bottom right, var(--zcta-bg, #0f172a), #172554, var(--zcta-bg, #0f172a));
    overflow: hidden;
    box-sizing: border-box;
    /* Kích hoạt Hardware Acceleration để chống giật lag và lỗi hiển thị trên thiết bị di động */
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    will-change: transform;
}

.zctapro-wrapper *, .zctapro-wrapper *::before, .zctapro-wrapper *::after {
    box-sizing: inherit;
}

/* Background Decorations */
.zctapro-bg-decoration {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.zctapro-decor-1 {
    position: absolute;
    top: -10rem;
    right: -10rem;
    width: 24rem;
    height: 24rem;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    filter: blur(60px);
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.zctapro-decor-2 {
    position: absolute;
    bottom: -10rem;
    left: -10rem;
    width: 24rem;
    height: 24rem;
    background-color: rgba(6, 182, 212, 0.1);
    border-radius: 50%;
    filter: blur(60px);
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.zctapro-decor-3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
    width: 600px;
    height: 600px;
    background-color: rgba(37, 99, 235, 0.05);
    border-radius: 50%;
    filter: blur(80px);
    backface-visibility: hidden;
}

/* Container */
.zctapro-container {
    position: relative;
    z-index: 10;
    max-width: 1152px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

@media (min-width: 768px) {
    .zctapro-container {
        padding: 4rem 1rem;
    }
}

/* Header */
.zctapro-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.zctapro-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.zctapro-dot {
    width: 8px;
    height: 8px;
    background-color: #4ade80;
    border-radius: 50%;
    animation: zctapro-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.zctapro-badge-text {
    color: #93c5fd;
    font-size: 0.875rem;
    font-weight: 500;
}

.zctapro-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .zctapro-title { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
    .zctapro-title { font-size: 3rem; }
}

.zctapro-text-gradient {
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    background-image: linear-gradient(to right, #60a5fa, #67e8f9);
}

.zctapro-subtitle {
    color: rgba(191, 219, 254, 0.7);
    font-size: 1.125rem;
    max-width: 42rem;
    margin: 0 auto;
}

/* Grid Layout */
.zctapro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 768px) {
    .zctapro-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* CTA List */
.zctapro-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.zctapro-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgb(255 255 255 / 17%);
    cursor: pointer;
    transition: all 0.3s ease;
}

.zctapro-item.zctapro-hover-anim:hover {
    transform: translateX(8px);
    background-color: rgba(0, 132, 255, 0.08);
}

.zctapro-item-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.zctapro-item-title {
    color: #ffffff;
    font-weight: 600;
    margin: 0;
    font-size: 1rem;
}

.zctapro-item-desc {
    color: rgba(147, 197, 253, 0.6);
    font-size: 0.875rem;
    margin: 0.25rem 0 0 0;
}

/* Action Panel (QR & Buttons) */
.zctapro-action-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.zctapro-qr-card {
    background-color: rgba(15, 23, 42, 0.6); /* Fallback màu nền tối bán trong suốt ổn định cho di động */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    width: 100%;
    max-width: 24rem;
    /* GPU layer promotion để loại bỏ lỗi giật lag và nháy trắng */
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    will-change: transform;
}

/* Chỉ áp dụng hiệu ứng kính mờ backdrop-filter trên màn hình lớn để tránh lỗi đồ họa trên mobile */
@media (min-width: 768px) {
    .zctapro-qr-card {
        background-color: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

.zctapro-qr-card.zctapro-float-anim {
    animation: zctapro-float 3s ease-in-out infinite;
}

/* Vô hiệu hóa animation liên tục trên mobile để tối ưu hóa CPU/GPU và chống lỗi render */
@media (max-width: 767px) {
    .zctapro-qr-card.zctapro-float-anim {
        animation: none;
    }
}

.zctapro-qr-title {
    color: #93c5fd;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.zctapro-qr-image-wrapper {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 1rem;
    margin: 0 auto 1rem auto;
    width: 12rem;
    height: 12rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zctapro-qr-image-wrapper img {
    width: 100%;
    height: auto;
}

.zctapro-qr-note {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    margin: 0;
}

/* Buttons */
.zctapro-buttons {
    width: 100%;
    max-width: 24rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.zctapro-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    border-radius: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.zctapro-btn-primary {
    padding: 1rem 1.5rem;
    background-image: linear-gradient(to right, var(--zcta-primary, #3b82f6), #2563eb);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.zctapro-btn-primary:hover {
    background-image: linear-gradient(to right, #60a5fa, var(--zcta-primary, #3b82f6));
    color: #ffffff;
}

.zctapro-btn-primary.zctapro-glow-anim {
    animation: zctapro-pulse-glow 2s ease-in-out infinite;
    will-change: box-shadow;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

/* Vô hiệu hóa hiệu ứng nhấp nháy bóng đổ (box-shadow animation) cực nặng trên mobile */
@media (max-width: 767px) {
    .zctapro-btn-primary.zctapro-glow-anim {
        animation: none;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    }
}

.zctapro-btn-secondary {
    padding: 0.875rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 600;
}

.zctapro-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Trust Badges */
.zctapro-trust-badges {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(147, 197, 253, 0.5);
    font-size: 0.75rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.zctapro-trust-badges span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Animations */
@keyframes zctapro-pulse {
    50% { opacity: .5; }
}

@keyframes zctapro-float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -8px, 0); }
}

@keyframes zctapro-pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 132, 255, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 132, 255, 0.6); }
}
