/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container principal */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Sistema de páginas */
.page {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.page.active {
    display: block;
}

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

/* Barra de progresso */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #00c851, #00ff88);
    border-radius: 3px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(0, 200, 81, 0.5);
}

/* Headers */
.header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.header i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    display: block;
    line-height: 1;
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header p {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Seção hero da página 1 */
.hero-section {
    text-align: center;
    margin-bottom: 40px;
}

.money-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00c851, #00ff88);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(0, 200, 81, 0.3);
}

.money-icon i {
    font-size: 2rem;
    color: white;
    line-height: 1;
}

.hero-section h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Caixa de urgência */
.urgency-box {
    background: rgba(255, 193, 7, 0.9);
    padding: 15px;
    border-radius: 12px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.urgency-box i {
    font-size: 1.2rem;
    color: #856404;
}

.urgency-box p {
    color: #856404;
    font-weight: 500;
    margin: 0;
}

/* Benefícios */
.benefits {
    display: flex;
    justify-content: space-around;
    margin: 25px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.benefit-item i {
    font-size: 1.5rem;
    color: #00ff88;
    margin-bottom: 8px;
    line-height: 1;
    display: block;
}

/* Botões principais */
.btn-primary {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #00c851, #00ff88);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 200, 81, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 56px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 200, 81, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Formulários */
.form {
    margin-bottom: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: white;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.input-group input {
    width: 100%;
    padding: 15px 45px 15px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.2);
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.1rem;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    width: 20px;
}

/* Perguntas de compatibilidade */
.questions {
    margin-bottom: 30px;
}

.question-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.question-item h3 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.button-group {
    display: flex;
    gap: 10px;
}

.btn-option {
    flex: 1;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
}

.btn-option:hover {
    border-color: #00c851;
    color: #00c851;
}

.btn-option.selected {
    background: linear-gradient(135deg, #00c851, #00ff88);
    border-color: #00c851;
    color: white;
    transform: scale(1.02);
}

/* Feedback box */
.feedback-box {
    background: rgba(0, 200, 81, 0.1);
    border: 2px solid #00c851;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
    animation: slideIn 0.5s ease;
}

.feedback-box i {
    font-size: 2rem;
    color: #00c851;
    margin-bottom: 10px;
}

.feedback-box p {
    color: white;
    font-weight: 500;
    margin: 0;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Upload de documentos */
.upload-section {
    margin-bottom: 30px;
}

.upload-item {
    margin-bottom: 25px;
}

.upload-item label {
    display: block;
    color: white;
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.upload-box {
    position: relative;
    border: 3px dashed rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-box:hover {
    border-color: #00ff88;
    background: rgba(255, 255, 255, 0.1);
}

.upload-box input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-content i {
    font-size: 2.5rem;
    color: #00ff88;
    margin-bottom: 10px;
}

.upload-content p {
    color: white;
    font-weight: 500;
    margin-bottom: 5px;
}

.upload-content small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* Informações de segurança */
.security-note, .security-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-top: 15px;
}

.security-note i, .security-info i {
    color: #00ff88;
}

.security-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
}

/* Página de sucesso */
.success-header {
    text-align: center;
    margin-bottom: 30px;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #00c851, #00ff88);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 15px 40px rgba(0, 200, 81, 0.4);
    animation: bounce 1s ease-in-out;
}

.success-icon i {
    font-size: 3rem;
    color: white;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.success-header h1 {
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.success-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.celebration {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.success-content p {
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.next-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 12px;
    background: rgba(0, 200, 81, 0.1);
    border-radius: 8px;
}

.step-item i {
    color: #00c851;
    font-size: 1.2rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-item span {
    color: #333;
    font-weight: 500;
}

.final-note {
    background: rgba(255, 193, 7, 0.2);
    border: 2px solid #ffc107;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.final-note i {
    color: #ffc107;
    font-size: 1.2rem;
}

.final-note p {
    color: white;
    font-weight: 500;
    margin: 0;
}

/* Responsividade para tablets */
@media (min-width: 768px) {
    .container {
        max-width: 600px;
        padding: 40px;
    }
    
    .header h1 {
        font-size: 2.2rem;
    }
    
    .hero-section h2 {
        font-size: 1.6rem;
    }
    
    .btn-primary {
        font-size: 1.2rem;
        padding: 20px 30px;
    }
    
    .benefits {
        justify-content: space-between;
    }
    
    .button-group {
        gap: 20px;
    }
}

/* Responsividade para desktop */
@media (min-width: 1024px) {
    .container {
        max-width: 700px;
    }
    
    .header h1 {
        font-size: 2.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.8rem;
    }
}

/* Estados de erro */
.input-group input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Loading states */
.btn-primary.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-primary.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

/* Melhorias de acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states para navegação por teclado */
button:focus,
input:focus {
    outline: 2px solid #00ff88;
    outline-offset: 2px;
}

/* Correções gerais de alinhamento de ícones */
i.fas, i.far, i.fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

/* Correção específica para ícones em botões */
.btn-primary i,
.btn-option i {
    line-height: 1;
    vertical-align: middle;
}

/* Correção para ícones em elementos flex */
.flex-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Otimizações para telas muito pequenas */
@media (max-width: 320px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.2rem;
    }
    
    .btn-primary {
        font-size: 1rem;
        padding: 15px 20px;
    }
}