/* improved.css - CSS để tăng conversion rate */

:root {
    --urgent-color: #ff4444;
    --gold-color: #ffd700;
    --success-color: #4CAF50;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-heavy: 0 8px 25px rgba(0,0,0,0.15);
}

/* ===== URGENCY BANNER (REPLACES HEADER) ===== */
.urgency-banner {
    background: linear-gradient(45deg, var(--urgent-color), #ff6666);
    color: white;
    text-align: center;
    padding: 12px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    animation: urgencyPulse 2s infinite;
    font-weight: bold;
    font-size: 14px;
    box-shadow: var(--shadow-light);
    z-index: 1000;
    box-sizing: border-box;
}

@keyframes urgencyPulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}

/* Template body padding adjustment */
.template-bd {
    padding-top: 50px; /* Adjusted for urgency banner height */
}

#countdown, #final-countdown {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, #01875f 0%, #028760 100%);
    color: white;
    padding: 25px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0; /* No margin needed since urgency banner is fixed */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 15px,
        rgba(255, 255, 255, 0.1) 15px,
        rgba(255, 255, 255, 0.1) 30px
    );
    animation: heroShine 4s linear infinite;
    pointer-events: none;
}

@keyframes heroShine {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.hero-highlight {
    background: var(--gold-color);
    color: #000;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: inline-block;
    animation: highlightGlow 2s ease-in-out infinite alternate;
}

@keyframes highlightGlow {
    0% { box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
    100% { box-shadow: 0 4px 15px rgba(255,215,0,0.4); }
}

.hero-stats {
    margin-top: 15px;
}

.stat-item {
    display: inline-block;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: var(--gold-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
}

/* ===== SOCIAL PROOF TICKER ===== */
.social-proof-ticker {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.ticker-content {
    display: inline-block;
    animation: scroll 20s linear infinite;
    font-weight: 500;
    color: #28a745;
}

.ticker-content span {
    margin-right: 50px;
    font-size: 14px;
}

@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ===== CTA SECTION ===== */
.cta-section {
    margin: 20px 24px;
    padding: 20px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    box-shadow: var(--shadow-heavy);
    border: 2px solid #e3f2fd;
}

.benefit-list {
    margin-bottom: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(1, 135, 95, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--main-color);
}

.benefit-icon {
    font-size: 20px;
    margin-right: 12px;
    min-width: 30px;
}

.benefit-text {
    font-size: 15px;
    color: #333;
}

/* ===== ENHANCED CTA BUTTON (Green Theme) ===== */
.enhanced-cta .main-cta {
    background: linear-gradient(45deg, var(--main-color), #00a86b);
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    box-shadow: 
        0 8px 25px rgba(1, 135, 95, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.enhanced-cta .main-cta:hover {
    transform: translateY(-2px);
    background: linear-gradient(45deg, #00a86b, #4CAF50);
    box-shadow: 
        0 12px 35px rgba(1, 135, 95, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.enhanced-cta .main-cta:active {
    transform: translateY(0);
    background: linear-gradient(45deg, var(--main-hover-color), var(--main-color));
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-main {
    font-size: 18px;
    margin-bottom: 4px;
}

.cta-sub {
    font-size: 12px;
    opacity: 0.9;
    font-weight: normal;
    text-transform: none;
}

/* ===== TRUST INDICATORS ===== */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #666;
    background: white;
    padding: 8px 12px;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
}

.trust-item img {
    width: 16px;
    height: 16px;
}

.trust-icon {
    font-size: 14px;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
    margin: 30px 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.testimonials-section h3 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-size: 18px;
}

.testimonial {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-light);
    border-left: 4px solid var(--main-color);
}

.testimonial-content p {
    font-style: italic;
    color: #555;
    margin-bottom: 10px;
    font-size: 14px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.testimonial-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.testimonial-author span {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* ===== FEATURE GRID ===== */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 15px;
}

@media (min-width: 480px) {
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.feature-icon {
    font-size: 18px;
    min-width: 30px;
}

.feature-item strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.feature-item p {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    margin: 30px 24px 50px; /* Added bottom margin since it's now the last section */
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

.faq-section h3 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-size: 18px;
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    cursor: pointer;
    position: relative;
    padding-right: 20px;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    font-size: 18px;
    color: var(--main-color);
}

.faq-question.active::after {
    content: '-';
}

.faq-answer {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    display: none;
    padding-top: 5px;
}

.faq-answer.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== FINAL CTA ===== */
.final-cta {
    margin: 30px 24px 40px;
    padding: 25px;
    background: linear-gradient(135deg, var(--urgent-color), #ff6666);
    color: white;
    text-align: center;
    border-radius: 15px;
    box-shadow: var(--shadow-heavy);
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: finalShine 3s linear infinite;
}

@keyframes finalShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.final-cta h3 {
    margin-bottom: 10px;
    font-size: 20px;
    position: relative;
    z-index: 2;
}

.final-cta p {
    margin-bottom: 20px;
    font-size: 14px;
    position: relative;
    z-index: 2;
}

/* ===== FINAL CTA (Green Theme) ===== */
.final-cta-btn {
    background: linear-gradient(45deg, var(--main-color), #00a86b);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(1, 135, 95, 0.3);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.final-cta-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(45deg, #00a86b, #4CAF50);
    box-shadow: 0 12px 35px rgba(1, 135, 95, 0.4);
}

.final-cta-btn:active {
    transform: translateY(0);
    background: linear-gradient(45deg, var(--main-hover-color), var(--main-color));
}

.cta-icon {
    font-size: 20px;
}

.guarantee {
    margin-top: 15px;
    font-size: 12px;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* ===== REMOVE SHARE POPUP STYLES ===== */
/* Share popup styles removed as requested */

/* ===== RESPONSIVE IMPROVEMENTS ===== */
@media (max-width: 480px) {
    .hero-title {
        font-size: 22px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .cta-section {
        margin: 15px;
        padding: 15px;
    }
    
    .trust-indicators {
        gap: 10px;
    }
    
    .trust-item {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .testimonials-section,
    .faq-section {
        margin: 20px 15px 30px; /* Adjusted for final section */
        padding: 15px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ANIMATION UTILITIES ===== */
.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.bounce {
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== LOADING STATES ===== */
.loading-pulse {
    animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ===== ENHANCED BUTTON STATES ===== */
.btn-enhanced {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.btn-enhanced:hover::before {
    left: 100%;
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .hero-section,
    .final-cta {
        background: #000;
        color: #fff;
    }
    
    .hero-highlight,
    .final-cta-btn {
        background: #ffff00;
        color: #000;
    }
    
    .btn {
        border: 2px solid #fff;
    }
}