/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    display: none !important;
}

/* Header */
.header {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    text-decoration: none;
    color: #dc2626;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
}

.logo span {
    font-size: 0.9rem;
    color: #666;
}

.progress-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    font-size: 0.9rem;
}

.block-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.block-info span {
    font-size: 0.9rem;
    color: #666;
}

.progress-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.progress-text span {
    font-size: 0.85rem;
    color: #666;
}

#block-progress {
    font-weight: 600;
    color: #dc2626;
}

#questions-remaining {
    font-style: italic;
    color: #888;
}

/* Tela de Decisão */
.decision-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 40px;
}

.decision-card {
    padding: 60px 40px;
    text-align: center;
}

.decision-card .completion-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.decision-card h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.decision-card p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.decision-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.decision-btn {
    padding: 20px 30px;
    border-radius: 15px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.decision-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.decision-btn small {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.8;
}

.btn-primary.decision-btn {
    background: linear-gradient(135deg, #dc2626 0%, #7c3aed 100%);
    color: white;
}

.btn-secondary.decision-btn {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e5e7eb;
}

.btn-secondary.decision-btn:hover {
    background: #f1f3f4;
    border-color: #d1d5db;
}

/* Formulário de Cadastro atualizado */
.lead-form-card {
    padding: 40px;
    text-align: center;
}

.lead-form-card h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.lead-form-card p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Tela Intermediária */
.intermediate-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 40px;
}

.intermediate-card {
    padding: 60px 40px;
    text-align: center;
}

.intermediate-card .success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
    color: #22c55e;
}

.intermediate-card h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.intermediate-card p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.intermediate-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.intermediate-btn {
    padding: 20px 30px;
    border-radius: 15px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.intermediate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.intermediate-btn small {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.8;
}

.btn-primary.intermediate-btn {
    background: linear-gradient(135deg, #dc2626 0%, #7c3aed 100%);
    color: white;
}

.btn-secondary.intermediate-btn {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e5e7eb;
}

.btn-secondary.intermediate-btn:hover {
    background: #f1f3f4;
    border-color: #d1d5db;
}

.progress-bar {
    width: 200px;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #dc2626 0%, #7c3aed 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Main Content */
.main-content {
    padding: 40px 0 80px;
    min-height: calc(100vh - 200px);
}

/* Quiz Container */
.quiz-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 40px;
}

/* Block Header */
.block-header {
    background: linear-gradient(135deg, #dc2626 0%, #7c3aed 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.block-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.block-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.block-header p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 20px;
}

.block-progress {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    font-weight: 600;
}

/* Question Container */
.question-container {
    padding: 40px 30px;
}

.question-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1f2937;
    line-height: 1.4;
}

/* Options */
.options-container {
    margin-bottom: 40px;
}

.option {
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option input[type="radio"] {
    display: none;
}

.option label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.option:hover label {
    border-color: #dc2626;
    background: #fef2f2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.option input[type="radio"]:checked + label {
    border-color: #dc2626;
    background: linear-gradient(135deg, #dc2626 0%, #7c3aed 100%);
    color: white;
}

.option-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.5;
}

.option-points {
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    color: #374151;
    padding: 4px 12px;
    border-radius: 15px;
    margin-left: 15px;
}

.option input[type="radio"]:checked + label .option-points {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, #dc2626 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
    background: #6b7280;
    color: white;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Block Complete Container */
.block-complete-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 40px;
}

.completion-card {
    max-width: 600px;
    margin: 0 auto;
}

.completion-icon {
    font-size: 5rem;
    margin-bottom: 30px;
    display: block;
}

.completion-card h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1f2937;
    margin-bottom: 15px;
}

.completion-card p {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 40px;
}

/* Score Display */
.score-display {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #e5e7eb 100%);
    border-radius: 15px;
}

.score-circle {
    display: inline-block;
    font-size: 3rem;
    font-weight: 900;
    color: #dc2626;
    margin-bottom: 15px;
}

.score-max {
    font-size: 1.5rem;
    color: #6b7280;
}

.score-level {
    font-size: 1.2rem;
    font-weight: 600;
    color: #374151;
}

/* Lead Form */
.lead-form-container {
    display: none;
    background: #f8fafc;
    padding: 40px;
    border-radius: 15px;
    margin: 40px 0;
    text-align: left;
}

.lead-form-container h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
    text-align: center;
}

.lead-form-container p {
    color: #6b7280;
    margin-bottom: 30px;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
}

.action-buttons .btn {
    justify-content: center;
    min-height: 50px;
}

/* Loading */
.loading-container {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #dc2626;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
}

.footer p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .progress-info {
        flex-direction: column;
        gap: 10px;
    }

    .progress-bar {
        width: 250px;
    }

    .block-header {
        padding: 30px 20px;
    }

    .block-header h2 {
        font-size: 2rem;
    }

    .block-header p {
        font-size: 1rem;
    }

    .question-container {
        padding: 30px 20px;
    }

    .question-card h3 {
        font-size: 1.3rem;
    }

    .option label {
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .option-points {
        margin-left: 0;
        align-self: flex-end;
    }

    .navigation-buttons {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .block-complete-container {
        padding: 40px 20px;
    }

    .completion-card h2 {
        font-size: 2rem;
    }

    .action-buttons {
        gap: 12px;
    }

    .action-buttons .btn {
        padding: 15px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .main-content {
        padding: 20px 0 40px;
    }

    .block-header {
        padding: 25px 15px;
    }

    .block-icon {
        font-size: 3rem;
    }

    .block-header h2 {
        font-size: 1.5rem;
    }

    .question-container {
        padding: 25px 15px;
    }

    .question-card h3 {
        font-size: 1.2rem;
    }

    .score-circle {
        font-size: 2.5rem;
    }

    .lead-form-container {
        padding: 25px 20px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}
