/* 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%;
    background-color: var(--zcta-bg, #ffffff);
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 20px 40px -15px rgba(0, 104, 255, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
    margin: 2rem auto;
    max-width: 1152px;
    /* Kích hoạt Hardware Acceleration */
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    will-change: transform;
}

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

/* Background Decorations - Pastel Blobs */
.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: -5rem;
    right: -5rem;
    width: 20rem;
    height: 20rem;
    background-color: rgba(59, 130, 246, 0.06);
    border-radius: 50%;
    filter: blur(50px);
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.zctapro-decor-2 {
    position: absolute;
    bottom: -5rem;
    left: -5rem;
    width: 20rem;
    height: 20rem;
    background-color: rgba(249, 115, 22, 0.05);
    border-radius: 50%;
    filter: blur(50px);
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

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

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

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

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

.zctapro-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #ecfdf5;
    border: 1px solid #d1fae5;
    border-radius: 9999px;
    padding: 0.5rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.05);
}

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

.zctapro-badge-text {
    color: #065f46;
    font-size: 0.875rem;
    font-weight: 600;
}

.zctapro-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
}

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

.zctapro-text-gradient {
    color: #ff5a5a;
    background: none;
    -webkit-text-fill-color: initial;
    -webkit-background-clip: initial;
    background-clip: initial;
    position: relative;
    display: inline-block;
    padding: 0 4px;
    font-weight: 800;
}

.zctapro-text-gradient::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(255, 90, 90, 0.12);
    z-index: -1;
    border-radius: 4px;
}

.zctapro-subtitle {
    color: #475569;
    font-size: 1.125rem;
    max-width: 44rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid Layout */
.zctapro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    align-items: start; /* Canh trên các cột */
}

@media (min-width: 992px) {
    .zctapro-grid {
        grid-template-columns: 1.3fr 1fr; /* Tỉ lệ bất đối xứng cân đối hơn */
        gap: 2rem;
    }
}

/* CTA List */
.zctapro-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: left; /* Canh lề trái danh sách */
}

.zctapro-item {
    display: flex;
    align-items: flex-start; /* Icon căn theo đầu dòng chữ */
    text-align: left; /* Nội dung canh trái */
    gap: 1.25rem;
    padding: 1.25rem;
    background-color: #ffffff;
    border-radius: 1.25rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.zctapro-item.zctapro-hover-anim:hover {
    transform: translateY(-4px);
    border-color: var(--zcta-primary, #0068ff);
    box-shadow: 0 12px 20px -8px rgba(0, 104, 255, 0.15);
}

.zctapro-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background-color: #f0f7ff;
    border-radius: 50%;
    font-size: 1.75rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.zctapro-item.zctapro-hover-anim:hover .zctapro-item-icon {
    background-color: var(--zcta-primary, #0068ff);
    transform: scale(1.05) rotate(5deg);
}

.zctapro-item-content {
    flex-grow: 1;
    text-align: left;
}

.zctapro-item-title {
    color: #1e293b;
    font-weight: 700;
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.4;
    text-align: left;
}

.zctapro-item-desc {
    color: #64748b;
    font-size: 0.9375rem;
    margin: 0.375rem 0 0 0;
    line-height: 1.5;
    text-align: left;
}

/* Action Panel (QR & Buttons) */
.zctapro-action-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 24rem; /* Đồng bộ rộng hơn để chứa nội dung cân đối */
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(180deg, #ffffff 0%, rgba(var(--zcta-primary-rgb, 0, 104, 255), 0.03) 100%);
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px -15px rgba(var(--zcta-primary-rgb, 0, 104, 255), 0.08), 0 1px 3px rgba(0, 0, 0, 0.01);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.zctapro-qr-card {
    background-color: #ffffff !important; /* Trắng nổi bật trên nền gradient nhẹ */
    border: 1px solid rgba(var(--zcta-primary-rgb, 0, 104, 255), 0.12);
    border-top: 4px solid var(--zcta-primary, #0068ff); /* Đường viền điểm nhấn ở đầu card */
    border-radius: 1.25rem;
    padding: 1.5rem 1.25rem;
    text-align: center;
    width: 100%;
    max-width: 20rem;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.05);
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    will-change: transform;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}



.zctapro-qr-title {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background-color: var(--zcta-qr-badge-bg, rgba(0, 104, 255, 0.06));
    color: var(--zcta-qr-badge-text, #0068ff) !important;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1.25rem 0;
}

.zctapro-qr-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: zctapro-pulse 1.5s infinite;
}

.zctapro-qr-image-wrapper {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 0.75rem;
    margin: 0 auto 1.25rem auto;
    width: 9.5rem;
    height: 9.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px -5px rgba(var(--zcta-primary-rgb, 0, 104, 255), 0.1);
    border: 1px solid rgba(var(--zcta-primary-rgb, 0, 104, 255), 0.12);
    position: relative;
    overflow: hidden;
}



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

.zctapro-qr-note {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0;
}

/* Buttons */
.zctapro-buttons {
    width: 100%;
    max-width: 20rem; /* Đồng bộ chiều rộng với QR Card */
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (max-width: 991px) {
    .zctapro-action-panel {
        max-width: 100%;
        padding: 1.5rem;
    }
    
    .zctapro-qr-card,
    .zctapro-buttons {
        max-width: 100%;
    }
}

.zctapro-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    border-radius: 1rem;
    padding: 0.875rem 1.25rem; /* Nhỏ gọn vừa vặn */
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: 1px solid transparent;
}

.zctapro-btn-primary {
    background-color: #fc0084 !important;
    color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 8px 20px -6px var(--zcta-glow-4, rgba(0, 104, 255, 0.4));
}

.zctapro-btn-primary span,
.zctapro-btn-primary * {
    color: #ffffff !important;
}

.zctapro-btn-primary svg {
    stroke: #ffffff !important; /* Đảm bảo màu viền icon khớp với màu chữ */
}

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

@media (max-width: 767px) {
    .zctapro-btn-primary.zctapro-glow-anim {
        animation: none;
        box-shadow: 0 4px 12px var(--zcta-glow-4, rgba(0, 104, 255, 0.3));
    }
}

.zctapro-btn-secondary {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important; /* Dùng !important tránh bị theme đè */
}

.zctapro-btn-secondary span,
.zctapro-btn-secondary * {
    color: #1e293b !important;
}



/* Animations */
@keyframes zctapro-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .4; transform: scale(0.9); }
}



@keyframes zctapro-pulse-glow {
    0%, 100% { box-shadow: 0 8px 20px -6px var(--zcta-glow-4, rgba(0, 104, 255, 0.4)); }
    50% { box-shadow: 0 12px 28px 0px var(--zcta-glow-6, rgba(0, 104, 255, 0.6)); }
}

/* Mobile Typography Optimization */
@media (max-width: 767px) {
    .zctapro-title {
        font-size: 1.5rem !important; /* Giảm để vừa vặn hơn trên màn hình hẹp */
        line-height: 1.25;
    }
    .zctapro-subtitle {
        font-size: 0.95rem !important;
    }
    .zctapro-item-title {
        font-size: 1rem !important;
    }
    .zctapro-item-desc {
        font-size: 0.875rem !important;
    }
    .zctapro-btn {
        font-size: 0.95rem !important;
    }
    .zctapro-badge-text {
        font-size: 0.7rem !important;
    }
}


