/* ============================================
   TREK QUIZZ v3 - FRONT-END STYLES
   Réplica do layout Active View
   ============================================ */

/* Reset e Container */
.trek-quizz-container {
    max-width: 620px;
    margin: 40px auto;
    padding: 32px 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* ============================================
   TÍTULO
   ============================================ */

.tq-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #1a1a1a;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
    text-align: center;
    line-height: 1.35;
}

/* ============================================
   BARRA DE PROGRESSO
   ============================================ */

.tq-progress {
    margin-bottom: 28px;
    text-align: center;
}

.tq-progress-text {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.tq-progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.tq-progress-fill {
    height: 100%;
    background: #3b82f6;
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* ============================================
   PERGUNTAS
   ============================================ */

.tq-question-block {
    animation: tqFadeIn 0.35s ease;
}

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

.tq-question-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #1a1a1a;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    line-height: 1.4;
    text-align: left;
}

/* ============================================
   BOTÕES DE RESPOSTA
   (Sem radio buttons - botões clicáveis)
   ============================================ */

.tq-answers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tq-answer-btn {
    display: block;
    width: 100%;
    padding: 14px 18px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    text-align: left;
    line-height: 1.4;
    transition: all 0.2s ease;
    font-family: inherit;
    outline: none;
}

.tq-answer-btn:hover {
    background: #f0f7ff;
    border-color: #3b82f6;
}

.tq-answer-btn:active,
.tq-answer-btn.selected {
    background: #dbeafe;
    border-color: #2563eb;
    transform: scale(0.98);
}

.tq-answer-btn:focus-visible {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ============================================
   TELA DE CONCLUSÃO
   ============================================ */

.tq-completion {
    text-align: center;
    padding: 40px 20px;
    animation: tqFadeIn 0.4s ease;
}

.tq-completion-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #1a1a1a;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    line-height: 1.4;
}

.tq-completion-redirect {
	display: none !important;
}

.tq-completion-spinner {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 3px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: tqSpin 0.7s linear infinite;
}

@keyframes tqSpin {
    to { transform: rotate(360deg); }
}

/* ============================================
   FORM HIDDEN STATE
   ============================================ */

.tq-form.tq-hidden {
    display: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .trek-quizz-container {
        margin: 20px 16px;
        padding: 24px 16px;
    }
    
    .tq-title {
        font-size: 22px !important;
    }
    
    .tq-question-title {
        font-size: 16px !important;
    }
    
    .tq-answer-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .tq-title {
        font-size: 20px !important;
    }
    
    .tq-question-title {
        font-size: 15px !important;
    }
    
    .tq-answer-btn {
        padding: 12px 14px;
        font-size: 14px;
    }
}