/* Popup de Captura de Leads - Mediamorphix */
.lead-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lead-popup-overlay.show {
    opacity: 1;
}

.lead-popup-container {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    position: relative;
}

.lead-popup-overlay.show .lead-popup-container {
    transform: scale(1);
}

.lead-popup-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 20px 20px 0 0;
    text-align: center;
    position: relative;
}

.lead-popup-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.lead-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.lead-popup-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.lead-popup-content {
    padding: 30px;
}

.lead-popup-content p {
    text-align: center;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.6;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.phone-input-container {
    display: flex;
    gap: 10px;
}

.phone-input-container select {
    flex: 0 0 120px;
}

.phone-input-container input {
    flex: 1;
}

.lead-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 25px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.lead-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.lead-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.lead-privacy {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 0;
}

.lead-privacy small {
    color: #666;
    font-size: 0.85rem;
}

.success-message {
    text-align: center;
    padding: 20px 0;
}

.success-message i {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

.success-message h3 {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 1.5rem;
}

.success-message p {
    color: #666;
    margin: 10px 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .lead-popup-container {
        width: 95%;
        margin: 20px;
    }
    
    .lead-popup-header {
        padding: 20px;
    }
    
    .lead-popup-header h2 {
        font-size: 1.5rem;
    }
    
    .lead-popup-content {
        padding: 25px 20px;
    }
    
    .phone-input-container {
        flex-direction: column;
    }
    
    .phone-input-container select {
        flex: none;
    }
}

@media (max-width: 480px) {
    .lead-popup-container {
        width: 98%;
        margin: 10px;
    }
    
    .lead-popup-header {
        padding: 15px;
    }
    
    .lead-popup-content {
        padding: 20px 15px;
    }
    
    .form-group input,
    .form-group select {
        padding: 12px;
    }
    
    .lead-submit-btn {
        padding: 15px 20px;
        font-size: 1rem;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lead-popup-overlay.show .lead-popup-content > * {
    animation: fadeInUp 0.6s ease forwards;
}

.lead-popup-overlay.show .lead-popup-content > *:nth-child(1) {
    animation-delay: 0.1s;
}

.lead-popup-overlay.show .lead-popup-content > *:nth-child(2) {
    animation-delay: 0.2s;
}

.lead-popup-overlay.show .lead-popup-content > *:nth-child(3) {
    animation-delay: 0.3s;
}

