/* Upsell Page Specific Styles */

/* 1. TOPO DA PÁGINA (IMPACTO IMEDIATO) */
.upsell-hero {
    background: linear-gradient(135deg, #005f73 0%, #0CAA4F 100%);
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.upsell-hero h1 {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.upsell-hero .subheadline {
    color: #f0fdf4;
    font-size: 1.25rem;
    font-weight: 600;
    max-width: 800px;
    margin: 0 auto 40px;
}

.upsell-hero .btn-primary {
    background-color: #ffffff;
    color: #0CAA4F;
    font-size: 1.2rem;
    padding: 20px 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}

.upsell-hero .btn-primary:hover {
    background-color: #f0fdf4;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: #087f3b;
}

/* 2. SEÇÃO DE DOR E IDENTIFICAÇÃO */
.pain-section {
    background-color: #ffffff;
    padding: 60px 0;
    text-align: center;
}

.pain-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
}

.pain-item {
    display: flex;
    align-items: flex-start;
    /* Changed from center to allow multi-line text alignment */
    font-size: 1.1rem;
    color: #333;
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.pain-item .icon {
    font-size: 1.5rem;
    margin-right: 15px;
    min-width: 30px;
}

.pain-emotional {
    margin-top: 30px;
    font-style: italic;
    color: #555;
    font-size: 1.2rem;
}

/* 3. O QUE É O ACOMPANHAMENTO */
.solution-section {
    background-color: #f4f4f4;
    padding: 60px 0;
}

.solution-list {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.solution-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 500;
}

.solution-item:last-child {
    margin-bottom: 0;
}

.solution-item .icon {
    color: var(--primary-color);
    margin-right: 15px;
    font-weight: bold;
    font-size: 1.3rem;
}

/* 4. PROVA SOCIAL (Inherits mainly from style.css but tweaked) */
.upsell-testimonials {
    padding: 60px 0;
    background: #fff;
}

.upsell-testimonials h2 {
    margin-bottom: 40px;
}

/* 5. OFERTA */
.offer-section {
    background-color: #e8f5e9;
    padding: 80px 0;
    text-align: center;
}

.offer-card {
    background: #ffffff;
    padding: 50px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(12, 170, 79, 0.15);
    border: 3px solid var(--primary-color);
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.offer-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: #ff4757;
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.offer-price-container {
    margin: 30px 0;
}

.offer-from {
    color: #999;
    text-decoration: line-through;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 5px;
}

.offer-to-label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 5px;
}

.offer-price {
    color: var(--primary-color);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
}

.offer-price small {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
}

.value-text {
    background: #f0fdf4;
    color: var(--primary-color);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 15px;
}

/* 6. GARANTIA */
.guarantee-section {
    background-color: #ffffff;
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.guarantee-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.guarantee-text h3 {
    margin-bottom: 10px;
    color: #333;
}

/* 7. CTA FINAL */
.final-cta-section {
    background-color: #00212b;
    padding: 80px 0;
    text-align: center;
    color: white;
}

.final-cta-section h2 {
    color: white;
    margin-bottom: 40px;
}

.btn-pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(12, 170, 79, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(12, 170, 79, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(12, 170, 79, 0);
    }
}

.subtext-cta {
    display: block;
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 8. BOTÃO DE RECUSA */
.refusal-container {
    margin-top: 30px;
    text-align: center;
}

.refusal-link {
    color: #888;
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s;
}

.refusal-link:hover {
    color: #ccc;
}

/* Mobile Optimization for Upsell Page */
@media (max-width: 768px) {
    .upsell-hero {
        padding: 40px 0;
    }

    .upsell-hero h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .upsell-hero .subheadline {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .upsell-hero .btn-primary {
        padding: 15px 20px;
        font-size: 1rem;
        width: 100%;
    }

    .pain-section {
        padding: 40px 0;
    }

    .pain-item {
        flex-direction: row;
        align-items: flex-start;
        font-size: 1rem;
        padding: 10px;
    }

    .pain-item .icon {
        font-size: 1.2rem;
        margin-right: 10px;
    }

    .pain-emotional {
        font-size: 1.1rem;
        margin-top: 20px;
    }

    .solution-section {
        padding: 40px 0;
    }

    .solution-list {
        padding: 20px;
    }

    .solution-item {
        font-size: 1rem;
    }

    .offer-section {
        padding: 40px 0;
    }

    .offer-card {
        padding: 30px 15px;
    }

    .offer-badge {
        font-size: 0.7rem;
        padding: 4px 30px;
        right: -35px;
        top: 15px;
    }

    .offer-price {
        font-size: 3rem;
    }

    .final-cta-section {
        padding: 60px 0;
    }

    .final-cta-section h2 {
        font-size: 1.5rem;
    }

    .guarantee-box {
        flex-direction: column;
        text-align: center;
    }
}

/* Purchase Success Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    /* Darker backdrop for focus */
    z-index: 9999;
    display: flex;
    /* Flex to center */
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #ffffff;
    padding: 40px 30px;
    width: 90%;
    max-width: 450px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-icon-circle {
    width: 80px;
    height: 80px;
    background-color: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.modal-icon {
    font-size: 3rem;
    color: #0CAA4F;
    line-height: 1;
}

.modal-content h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.modal-content p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.modal-content .btn-confirm {
    background-color: #0CAA4F;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
}

.modal-content .btn-confirm:hover {
    background-color: #088f42;
}

/* Mobile adjustments for modal */
@media (max-width: 768px) {
    .modal-content {
        padding: 30px 20px;
    }
}

/* Exit Intent / Back Redirect Modal */
.exit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.exit-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.exit-modal-content {
    background: #fff;
    padding: 0;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(255, 71, 87, 0.3);
    border: 3px solid #ff4757;
}

.exit-modal-header {
    background: #ff4757;
    color: white;
    padding: 20px;
}

.exit-modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    text-transform: uppercase;
    line-height: 1.2;
}

.exit-modal-body {
    padding: 30px 20px;
}

.exit-modal-body p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
}

.discount-badge {
    background: #FFD700;
    color: #000;
    font-weight: 900;
    padding: 10px 20px;
    display: inline-block;
    border-radius: 5px;
    font-size: 1.5rem;
    transform: rotate(-3deg);
    margin: 10px 0 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.exit-btn-primary {
    background-color: #0CAA4F;
    color: white;
    display: block;
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    text-transform: uppercase;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(12, 170, 79, 0.4);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.exit-btn-primary:hover {
    background-color: #089040;
    transform: scale(1.02);
}

.exit-btn-secondary {
    color: #999;
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
}

.close-exit-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    opacity: 0.8;
}

.close-exit-modal:hover {
    opacity: 1;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.exit-modal-content.shake {
    animation: shake 0.5s;
}