/**
 * Conversion Improvements CSS
 * Melhorias visuais focadas em aumentar a taxa de conversão
 * Versão: 1.0
 */

/* ===== SEÇÃO DE PLANOS - MELHORIAS ===== */

/* Card de plano popular com destaque maior */
.price-card.popular {
    border: 3px solid #10b981;
    transform: scale(1.08);
    box-shadow: 0 25px 50px -12px rgba(16, 185, 129, 0.25);
    position: relative;
    z-index: 10;
}

.price-card.popular::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    border-radius: 0.75rem;
    z-index: -1;
    opacity: 0.1;
}

/* Badge de popular melhorado */
.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(16, 185, 129, 0.6);
    }
}

/* Preço com destaque */
.price-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.5rem;
    position: relative;
}

.price-card.popular .price {
    color: #059669;
}

/* Preço original riscado */
.price-card .price-original {
    font-size: 1rem;
    color: #94a3b8;
    text-decoration: line-through;
    margin-bottom: 0.25rem;
}

/* CTA Button melhorado */
.price-card .btn-soft-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.price-card .btn-soft-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.price-card.popular .btn-soft-success {
    background: linear-gradient(135deg, #059669, #047857);
    font-size: 1.1rem;
    padding: 14px 28px;
}

/* ===== URGÊNCIA E ESCASSEZ ===== */

.urgency-banner {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.urgency-banner i {
    color: #d97706;
    font-size: 1.2rem;
    animation: shake 0.5s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.urgency-banner span {
    color: #92400e;
    font-weight: 600;
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.countdown-item {
    background: #1e293b;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    min-width: 50px;
}

.countdown-item .number {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.countdown-item .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.8;
}

/* ===== GARANTIA ===== */

.guarantee-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 2px solid #86efac;
    border-radius: 12px;
    padding: 15px 25px;
    margin: 20px 0;
}

.guarantee-badge i {
    font-size: 2rem;
    color: #16a34a;
}

.guarantee-badge .text {
    text-align: left;
}

.guarantee-badge .text strong {
    display: block;
    color: #166534;
    font-size: 1rem;
}

.guarantee-badge .text span {
    color: #15803d;
    font-size: 0.85rem;
}

/* ===== CHECKOUT MELHORADO ===== */

/* Progress Bar do Checkout */
.checkout-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 0 20px;
}

.checkout-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.checkout-progress-step::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: #e2e8f0;
    z-index: 0;
}

.checkout-progress-step:last-child::after {
    display: none;
}

.checkout-progress-step .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.checkout-progress-step.active .step-number {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.checkout-progress-step.completed .step-number {
    background: #10b981;
    color: white;
}

.checkout-progress-step.completed::after {
    background: #10b981;
}

.checkout-progress-step .step-label {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.checkout-progress-step.active .step-label {
    color: #059669;
    font-weight: 600;
}

/* Form Fields Melhorados */
.form-control:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.form-control.is-valid {
    border-color: #10b981;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2310b981' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
}

.form-control.is-invalid {
    border-color: #ef4444;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ef4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ef4444' stroke='none'/%3e%3c/svg%3e");
}

.invalid-feedback {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* ===== PROVA SOCIAL ===== */

.live-activity {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: white;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 320px;
    z-index: 1000;
    animation: slideIn 0.5s ease;
    border-left: 4px solid #10b981;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.live-activity .avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.live-activity .content {
    flex: 1;
}

.live-activity .content strong {
    display: block;
    color: #1e293b;
    font-size: 0.9rem;
}

.live-activity .content span {
    color: #64748b;
    font-size: 0.8rem;
}

.live-activity .close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 5px;
}

/* ===== RESPONSIVIDADE ===== */

@media (max-width: 768px) {
    .price-card.popular {
        transform: scale(1);
        margin: 20px 0;
    }
    
    .checkout-progress {
        padding: 0;
    }
    
    .checkout-progress-step .step-label {
        font-size: 0.75rem;
    }
    
    .live-activity {
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .guarantee-badge {
        flex-direction: column;
        text-align: center;
    }
    
    .guarantee-badge .text {
        text-align: center;
    }
}

/* ===== ANIMAÇÕES DE ENTRADA ===== */

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay para animações em sequência */
.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }

/* ===== HOVER EFFECTS ===== */

.price-card {
    transition: all 0.3s ease;
}

.price-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.price-card.popular:hover {
    transform: scale(1.08) translateY(-8px);
}

/* ===== TOOLTIP DE FEATURES ===== */

.feature-tooltip {
    position: relative;
    cursor: help;
}

.feature-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.feature-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 8px);
}
