/* Formulário de Captura de Leads - Estilos Frontend */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.cal-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cal-form-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.cal-form-header {
    margin-bottom: 30px;
    text-align: center;
}

.cal-form-header h2 {
    margin: 0 0 30px 0;
    color: #08172A;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* Barra de Progresso */
.cal-progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.cal-progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e8eaf0;
    z-index: 0;
}

.cal-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.cal-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8eaf0;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.cal-step-label {
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 500;
}

.cal-progress-step.active .cal-step-number {
    background: #0A1D37;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(10, 29, 55, 0.3);
}

.cal-progress-step.active .cal-step-label {
    color: #0A1D37;
    font-weight: 600;
}

.cal-progress-step.completed .cal-step-number {
    background: #08172A;
    color: #fff;
}

.cal-progress-step.completed .cal-step-label {
    color: #08172A;
    font-weight: 600;
}

/* Formulário */
.cal-form {
    position: relative;
    min-height: 300px;
}

.cal-form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.cal-form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cal-form-group {
    margin-bottom: 25px;
}

.cal-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #08172A;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -0.2px;
}

.cal-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8eaf0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    color: #08172A;
    font-family: 'Inter', sans-serif;
}

.cal-input:focus {
    outline: none;
    border-color: #0A1D37;
    box-shadow: 0 0 0 3px rgba(10, 29, 55, 0.1);
}

.cal-input::placeholder {
    color: #999;
}

/* Radio Group */
.cal-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cal-radio-option {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border: 2px solid #e8eaf0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cal-radio-option:hover {
    border-color: #0A1D37;
    background: rgba(10, 29, 55, 0.05);
}

.cal-radio-option input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #0A1D37;
}

.cal-radio-option input[type="radio"]:checked + span {
    color: #0A1D37;
    font-weight: 600;
}

.cal-radio-option:has(input[type="radio"]:checked) {
    border-color: #0A1D37;
    background: rgba(10, 29, 55, 0.1);
}

.cal-radio-option span {
    flex: 1;
    color: #08172A;
    font-size: 16px;
    font-weight: 500;
}

/* Botões */
.cal-form-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 30px;
}

/* Botão único (primeira etapa) - centralizado */
.cal-form-step[data-step="1"] .cal-form-group {
    text-align: left;
}

.cal-form-step[data-step="1"] .cal-btn-next {
    margin: 30px auto 0;
    display: block;
    max-width: 300px;
    width: 100%;
}

.cal-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.2px;
}

.cal-btn-primary {
    background: #0A1D37;
    color: #fff;
}

.cal-btn-primary:hover {
    background: #08172A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 29, 55, 0.3);
}

.cal-btn-primary:active {
    transform: translateY(0);
}

.cal-btn-secondary {
    background: #f5f7fa;
    color: #08172A;
    border: 2px solid #e8eaf0;
}

.cal-btn-secondary:hover {
    background: #e8eaf0;
    border-color: #0A1D37;
}

.cal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mensagens */
.cal-form-message {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    display: none;
    text-align: center;
    font-weight: 500;
}

.cal-form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cal-form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsivo */
@media (max-width: 768px) {
    .cal-form-wrapper {
        padding: 30px 20px;
    }
    
    .cal-form-header h2 {
        font-size: 24px;
    }
    
    .cal-step-label {
        font-size: 10px;
    }
    
    .cal-step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .cal-form-actions {
        flex-direction: column;
    }
    
    .cal-btn {
        width: 100%;
    }
}

