/* ============================================
   QUIZ.CSS - Alpha Consig
   Versão 2.0 - Design Psicológico e Persuasivo
   ============================================ */

:root {
    --gradient-primary: linear-gradient(135deg, #0A1A3D 0%, #1E3A8A 100%);
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F5B042 100%);
    --gradient-success: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.3);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Section */
.quiz-hero-section {
    position: relative;
    background: var(--gradient-primary);
    padding: 120px 0 80px;
    margin-top: -80px;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-secondary);
    margin-bottom: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.quiz-hero-section .hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.quiz-hero-section .hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    font-size: 0.9rem;
}

.stat-item i {
    color: var(--color-secondary);
    font-size: 1.2rem;
}

.stat-item strong {
    font-weight: 700;
    color: var(--color-secondary);
}

/* Elementos decorativos */
.hero-bg-shape {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.shape-1 { top: -200px; right: -100px; width: 500px; height: 500px; }
.shape-2 { bottom: -200px; left: -100px; width: 450px; height: 450px; }
.shape-3 { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 600px; height: 600px; background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%); }

/* Seção de Números */
.trust-numbers {
    padding: 40px 0;
    background: var(--color-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.number-card {
    text-align: center;
    padding: 20px;
    background: var(--color-white);
    border-radius: 24px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.number-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.number-card:hover::after {
    transform: scaleX(1);
}

.number-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.number-icon {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.3rem;
    color: var(--color-secondary);
}

.number-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.number-label {
    font-size: 0.85rem;
    color: var(--color-gray);
}

/* Quiz Section */
.quiz-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);
    min-height: 70vh;
}

/* Card de Boas-vindas (Corrigido) */
.quiz-welcome-card {
    position: relative;
    background: var(--color-white);
    border-radius: 48px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
}

.welcome-content {
    padding: 50px 40px;
    text-align: center;
}

.welcome-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
}

.avatar-pulse {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--color-secondary);
    animation: pulse 2s infinite;
    position: relative;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.avatar-badge {
    position: absolute;
    bottom: -5px;
    right: -10px;
    background: var(--gradient-gold);
    color: var(--color-primary);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.welcome-content h2 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.welcome-text {
    font-size: 1.1rem;
    color: var(--color-gray);
    max-width: 400px;
    margin: 0 auto 30px;
}

.welcome-text strong {
    color: var(--color-secondary);
}

.welcome-features {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 0.7rem;
    color: #10B981;
}

.feature-text {
    font-size: 0.9rem;
    color: var(--color-gray-dark);
}

.btn-welcome-start {
    position: relative;
    background: var(--gradient-gold);
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    border-radius: 60px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px -5px rgba(212, 175, 55, 0.4);
}

.btn-welcome-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 35px -8px rgba(212, 175, 55, 0.5);
    gap: 18px;
}

.btn-welcome-start:active {
    transform: translateY(0);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-welcome-start:hover .btn-shine {
    left: 100%;
}

.welcome-security {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--color-gray);
}

.welcome-security i {
    color: var(--color-secondary);
}

/* Quiz Card (Questões) */
.quiz-card {
    background: var(--color-white);
    border-radius: 48px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-progress {
    padding: 30px 40px 20px;
    background: var(--color-light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.step-indicator {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-gray);
    position: relative;
    padding: 5px;
}

.step-indicator.active {
    color: var(--color-secondary);
    font-weight: 600;
}

.step-indicator.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--color-secondary);
    border-radius: 2px;
}

.step-indicator.completed {
    color: var(--color-success);
}

.progress-bar-custom {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-gold);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 3px;
}

.quiz-header {
    padding: 30px 40px 20px;
    text-align: center;
}

.quiz-icon {
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--color-secondary);
}

.quiz-header h2 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.quiz-header p {
    color: var(--color-gray);
    font-size: 0.95rem;
}

.quiz-question {
    padding: 0 40px 30px;
}

/* Opções de Resposta (Estilo Cartão) */
.options-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-card {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    background: var(--color-white);
    border: 2px solid #e5e7eb;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(212, 175, 55, 0.05);
    transition: width 0.3s ease;
    z-index: 0;
}

.option-card:hover::before {
    width: 100%;
}

.option-card:hover {
    transform: translateX(8px);
    border-color: var(--color-secondary);
}

.option-card.selected {
    border-color: var(--color-secondary);
    background: rgba(212, 175, 55, 0.05);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.15);
}

.option-radio {
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    margin-right: 18px;
    position: relative;
    transition: all 0.3s ease;
    z-index: 1;
    flex-shrink: 0;
}

.option-card.selected .option-radio {
    border-color: var(--color-secondary);
    background: var(--color-secondary);
    box-shadow: inset 0 0 0 3px var(--color-white);
}

.option-icon {
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
    color: var(--color-secondary);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.option-card.selected .option-icon {
    background: var(--color-secondary);
    color: var(--color-white);
}

.option-content {
    flex: 1;
    z-index: 1;
}

.option-title {
    font-weight: 600;
    color: var(--color-gray-dark);
    font-size: 1rem;
    margin-bottom: 4px;
}

.option-card.selected .option-title {
    color: var(--color-primary);
}

.option-description {
    font-size: 0.8rem;
    color: var(--color-gray);
}

/* Input Groups */
.input-group-custom {
    margin-bottom: 25px;
}

.input-group-custom label {
    display: block;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-group-custom input,
.input-group-custom select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--color-white);
}

.input-group-custom input:focus,
.input-group-custom select:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.input-group-custom input.error,
.input-group-custom select.error {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.input-hint {
    display: block;
    font-size: 0.7rem;
    color: var(--color-gray);
    margin-top: 5px;
}

/* Select2 */
.select2-container--bootstrap-5 .select2-selection {
    border-radius: 20px !important;
    border: 2px solid #e5e7eb !important;
    min-height: 58px !important;
    padding: 12px 16px !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    line-height: 32px !important;
}

/* Botões de Navegação */
.quiz-actions {
    padding: 20px 40px 40px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid #e5e7eb;
}

.btn-quiz-back,
.btn-quiz-next,
.btn-quiz-submit {
    padding: 14px 32px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-quiz-back {
    background: #f1f5f9;
    color: var(--color-gray);
}

.btn-quiz-back:hover {
    background: #e2e8f0;
    transform: translateX(-3px);
}

.btn-quiz-next,
.btn-quiz-submit {
    background: var(--gradient-gold);
    color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-quiz-next:hover,
.btn-quiz-submit:hover {
    transform: translateX(3px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.4);
}

.btn-quiz-next:disabled,
.btn-quiz-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Página Amigável */
.friendly-page {
    background: var(--color-white);
    border-radius: 48px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideIn 0.5s ease;
}

.friendly-icon {
    width: 100px;
    height: 100px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 3rem;
    color: #ef4444;
}

.friendly-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.friendly-page h3 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.friendly-page p {
    color: var(--color-gray);
    max-width: 400px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.btn-friendly {
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: 14px 32px;
    border-radius: 60px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-friendly:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(10, 26, 61, 0.3);
    color: var(--color-white);
}

/* Depoimentos */
.testimonials-section {
    padding: 80px 0;
    background: var(--color-white);
}

.testimonial-card {
    background: var(--color-white);
    border-radius: 32px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-stars {
    color: #FBBF24;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-gray-dark);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    font-weight: 600;
}

.author-info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--color-primary);
}

.author-info span {
    font-size: 0.75rem;
    color: var(--color-gray);
}

/* FAQ Banner */
.faq-quick {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);
}

.faq-banner {
    background: var(--gradient-primary);
    border-radius: 32px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--color-white);
}

.faq-banner i {
    font-size: 3rem;
    color: var(--color-secondary);
}

.faq-banner h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.faq-banner p {
    margin: 0;
    opacity: 0.9;
}

.btn-faq-whatsapp {
    background: #25D366;
    color: var(--color-white);
    padding: 12px 28px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-faq-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    color: var(--color-white);
}

/* Responsividade */
@media (max-width: 991.98px) {
    .quiz-hero-section .hero-title {
        font-size: 2.2rem;
    }
    
    .welcome-content {
        padding: 40px 30px;
    }
    
    .quiz-header h2 {
        font-size: 1.5rem;
    }
    
    .quiz-question {
        padding: 0 30px 25px;
    }
    
    .quiz-actions {
        padding: 20px 30px 35px;
    }
    
    .faq-banner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .quiz-hero-section {
        padding: 100px 0 60px;
    }
    
    .quiz-hero-section .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-stats {
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }
    
    .welcome-features {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .option-card {
        padding: 14px 18px;
    }
    
    .option-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .quiz-actions {
        flex-direction: column;
    }
    
    .btn-quiz-back,
    .btn-quiz-next,
    .btn-quiz-submit {
        justify-content: center;
    }
    
    .testimonial-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 575.98px) {
    .welcome-content {
        padding: 30px 20px;
    }
    
    .welcome-content h2 {
        font-size: 1.5rem;
    }
    
    .quiz-header {
        padding: 25px 20px 15px;
    }
    
    .quiz-question {
        padding: 0 20px 20px;
    }
    
    .quiz-actions {
        padding: 20px 20px 30px;
    }
    
    .friendly-page {
        padding: 40px 25px;
    }
}