/* ====================================
   Quiz Educacional - Estilos Completos
   ==================================== */

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #3B82F6 0%, #1E3A8A 100%);
    --secondary-gradient: linear-gradient(135deg, #60A5FA 0%, #2563EB 100%);
    --success-color: #10b981;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --whatsapp: #25D366;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    color: var(--gray-900);
}

/* Container Principal */
.quiz-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #3B82F6 0%, #1E40AF 50%, #172554 100%);
    position: relative;
    overflow-x: hidden;
}

/* Efeitos de Fundo */
.bg-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.blur-1 {
    top: -10rem;
    right: -10rem;
    width: 20rem;
    height: 20rem;
    background: rgba(255, 255, 255, 0.1);
}

.blur-2 {
    bottom: -10rem;
    left: -10rem;
    width: 20rem;
    height: 20rem;
    background: rgba(255, 255, 255, 0.1);
}

.blur-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 37.5rem;
    height: 37.5rem;
    background: rgba(37, 99, 235, 0.15);
}

/* Conteúdo Principal */
.quiz-content {
    position: relative;
    z-index: 1;
    max-width: 64rem;
    margin: 0 auto;
    padding: 1rem;
}

/* Header */
.quiz-header {
    text-align: center;
    color: var(--white);
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.header-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.header-icon svg {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.header-icon.success svg {
    color: var(--success-color);
}

.sparkle {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    color: #fcd34d;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.95);
    }
}

.quiz-header h1 {
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Progress Bar */
.progress-wrapper {
    max-width: 28rem;
    margin: 0 auto;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.progress-bar {
    width: 100%;
    height: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 9999px;
    transition: width 0.7s ease-out;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding: 0 0.25rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    transition: opacity 0.3s;
    opacity: 0.5;
}

.step.active,
.step.completed {
    opacity: 1;
}

.step-circle {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transition: all 0.3s;
}

.step.active .step-circle,
.step.completed .step-circle {
    background: var(--white);
    color: #2563EB;
}

.step span {
    display: block;
    font-size: 0.75rem;
}

/* Quiz Card */
.quiz-card {
    background: var(--white);
    border-radius: 1.5rem;
    padding: 2rem 1.25rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Question Header */
.question-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.question-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #3B82F6, #1E3A8A);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.question-header h2 {
    font-size: clamp(1.25rem, 4vw, 1.875rem);
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1.3;
}

.question-description {
    color: var(--gray-600);
    margin-bottom: 2rem;
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    padding-left: 0;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.option-card {
    position: relative;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.option-card:hover {
    border-color: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.2);
}

.option-card.selected {
    border-color: #2563EB;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(30, 58, 138, 0.05));
}

.option-check {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    opacity: 0;
}

.option-card:hover .option-check {
    opacity: 1;
    transform: scale(1);
}

.option-card.selected .option-check {
    opacity: 1;
    background: #2563EB;
    color: var(--white);
}

.option-image {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background-size: cover;
    background-position: center;
    border: 3px solid var(--gray-200);
    transition: all 0.3s;
}

.option-card:hover .option-image {
    border-color: #2563EB;
    transform: scale(1.05);
}

.option-card.selected .option-image {
    border-color: #2563EB;
}

.option-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    line-height: 1.3;
    transition: color 0.3s;
}

.option-card:hover .option-title {
    color: #2563EB;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, #3B82F6, #1E3A8A);
    color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover:not(:disabled) {
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.btn-secondary:hover:not(:disabled) {
    border-color: var(--gray-400);
    background: var(--gray-50);
}

.btn-secondary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(37, 211, 102, 0.3);
    font-size: 1.125rem;
    padding: 1.25rem 2rem;
}

.btn-whatsapp:hover {
    background: #1faa56;
    box-shadow: 0 10px 15px -3px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}

/* Warning Box */
.warning-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 1.5rem;
    color: #92400e;
    font-size: 0.875rem;
    line-height: 1.5;
}

.warning-box svg {
    flex-shrink: 0;
    color: #f59e0b;
}

/* Results Page */
.results-header {
    text-align: center;
    margin-bottom: 2rem;
}

.results-icon {
    color: #2563EB;
    margin-bottom: 1rem;
}

.results-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.results-header p {
    color: var(--gray-600);
}

.answers-summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.answer-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 0.75rem;
    border: 1px solid var(--gray-200);
}

.answer-number {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6, #1E3A8A);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.answer-content {
    flex: 1;
}

.answer-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.answer-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
}

/* WhatsApp CTA */
.whatsapp-cta {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.05), rgba(31, 170, 86, 0.05));
    border: 2px solid rgba(37, 211, 102, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.whatsapp-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.whatsapp-icon {
    flex-shrink: 0;
    color: var(--whatsapp);
}

.whatsapp-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.whatsapp-info p {
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Footer */
.quiz-footer {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(40px);
    color: var(--white);
    border-radius: 1.5rem;
    padding: 2rem 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.footer-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.feature svg {
    flex-shrink: 0;
    color: #10b981;
}

.feature span {
    color: var(--gray-300);
}

.footer-content {
    text-align: center;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-lgpd,
.footer-copyright {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

/* Media Queries */
@media (min-width: 640px) {
    .quiz-content {
        padding: 2rem;
    }

    .quiz-card {
        padding: 3rem 2rem;
    }

    .question-description {
        padding-left: 4rem;
    }

    .options-grid {
        gap: 1.5rem;
    }

    .navigation-buttons {
        flex-direction: row;
        justify-content: space-between;
    }

    .btn-secondary {
        order: 1;
    }

    .btn-primary,
    .btn-whatsapp {
        order: 2;
    }

    .step span {
        display: inline;
    }

    .quiz-footer {
        padding: 2.5rem 2rem;
    }
}

@media (min-width: 768px) {
    .options-grid {
        gap: 2rem;
    }

    .option-card {
        padding: 2rem 1.5rem;
    }
}

/* Course Information Card */
.course-info-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 2px solid #2563EB;
}

.course-header {
    background: linear-gradient(135deg, #3B82F6, #1E3A8A);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin: -1.5rem -1.5rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.course-header svg {
    flex-shrink: 0;
}

.course-header h3 {
    font-size: 1.375rem;
    font-weight: 700;
}

.price-badge {
    background: linear-gradient(135deg, #3B82F6, #1E3A8A);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.price-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.price-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.info-alert {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: #92400e;
    font-size: 0.875rem;
}

.info-alert svg {
    flex-shrink: 0;
    color: #f59e0b;
}

.course-includes {
    margin-bottom: 1.5rem;
}

.course-includes h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}

.course-includes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-includes li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--gray-600);
}

.course-includes li::before {
    content: '✓';
    color: #10b981;
    font-weight: 700;
    flex-shrink: 0;
}

.course-benefits {
    margin-bottom: 1.5rem;
}

.course-benefits p {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--gray-700);
}

.course-benefits p::before {
    content: '✓';
    color: #10b981;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.course-institutions {
    background: var(--gray-50);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.course-institutions h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}

.course-institutions p {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--gray-600);
}

.course-payment {
    background: #ecfdf5;
    border: 1px solid #86efac;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.course-payment svg {
    flex-shrink: 0;
    color: #10b981;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-label .required {
    color: #ef4444;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    border: 2px solid var(--gray-300);
    border-radius: 0.5rem;
    transition: all 0.2s;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input::placeholder {
    color: var(--gray-400);
}

.btn-interested {
    background: #10b981;
    color: var(--white);
    width: 100%;
    margin-bottom: 0.75rem;
}

.btn-interested:hover {
    background: #059669;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4);
}

.btn-expensive {
    background: var(--white);
    color: #ef4444;
    border: 2px solid #fee2e2;
    width: 100%;
}

.btn-expensive:hover {
    background: #fef2f2;
    border-color: #fecaca;
}

@media (min-width: 1024px) {
    .options-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .quiz-card {
        padding: 4rem 3rem;
    }
}