/* ========== FORMULÁRIOS PRINCIPAIS ========== */
.lead-form, .neon-form {
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid var(--primary);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.2);
    transition: all 0.4s ease;
}

.lead-form:hover, .neon-form:hover {
    box-shadow: 0 0 35px rgba(138, 43, 226, 0.3);
    border-color: var(--accent);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h3 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.form-header p {
    color: var(--light-dark);
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.8rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light-dark);
    font-size: 0.95rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: var(--border-radius);
    color: var(--light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.3);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Efeito de foco moderno */
.form-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: all 0.4s ease;
}

.form-group:focus-within::after {
    width: 100%;
}

/* Select personalizado */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%238A2BE2' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 12px;
    padding-right: 3rem;
}

/* Checkbox personalizado */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--primary);
    border-radius: 4px;
    margin-right: 0.75rem;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 0.9rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-group label {
    color: var(--light-dark);
    font-size: 0.9rem;
    margin-bottom: 0;
    cursor: pointer;
}

/* Botão do formulário */
.form-group button[type="submit"] {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Validação */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--error);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.error-message {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

input.error + .error-message,
select.error + .error-message,
textarea.error + .error-message {
    display: block;
}

/* Garantias do formulário */
.form-guarantee {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(138, 43, 226, 0.2);
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--light-dark);
    font-size: 0.9rem;
}

.guarantee-item img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ========== FORMULÁRIO DE ETAPAS ========== */
.form-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    position: relative;
}

.form-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(138, 43, 226, 0.2);
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
    padding: 0 1rem;
}

.step::before {
    content: '';
    width: 30px;
    height: 30px;
    background: rgba(138, 43, 226, 0.2);
    border-radius: 50%;
    display: block;
    margin: 0 auto 0.5rem;
    transition: all 0.3s ease;
}

.step.active::before {
    background: var(--primary);
    box-shadow: 0 0 0 5px rgba(138, 43, 226, 0.3);
}

.step::after {
    content: attr(data-step);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: var(--light-dark);
    font-weight: bold;
    transition: all 0.3s ease;
}

.step.active::after {
    color: white;
}

.step.active {
    color: var(--light);
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

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

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.btn-prev, .btn-next {
    padding: 0.8rem 1.5rem;
}

/* ========== RESPONSIVO ========== */
@media (max-width: 768px) {
    .lead-form, .neon-form {
        padding: 1.5rem;
    }
    
    .form-header h3 {
        font-size: 1.5rem;
    }
    
    .form-guarantee {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-steps {
        margin-bottom: 1.5rem;
    }
    
    .step {
        font-size: 0.9rem;
    }
}