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

input.error, textarea.error {
    border-color: #e74c3c;
}


.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}


.btn-loader {
    display: inline-block;
    width: 24px;
    height: 24px;
}

.spinner {
    animation: rotate 2s linear infinite;
    width: 24px;
    height: 24px;
}

.spinner .path {
    stroke: white;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Modal Styles */
/* Modal Styles - Versão Melhorada */
.modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.5) !important;
    backdrop-filter: blur(5px) !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important; /* Valor alto para garantir que fique acima de tudo */
    padding: 20px !important;
    box-sizing: border-box !important;
}

.modal.active {
    display: flex !important;
    animation: fadeIn 0.3s ease !important;
}

.modal-content {
    background: white !important;
    padding: 40px !important;
    border-radius: 20px !important;
    max-width: 450px !important;
    width: 100% !important;
    text-align: center !important;
    animation: slideIn 0.3s ease !important;
    position: relative !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3) !important;
    box-sizing: border-box !important;
}

.modal-content.success .modal-icon {
    background: #4CAF50 !important;
}

.modal-content.error .modal-icon {
    background: #e74c3c !important;
}

.modal-icon {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 20px !important;
    font-size: 40px !important;
    color: white !important;
}

.modal h2 {
    color: #333 !important;
    margin-bottom: 10px !important;
}

.modal p {
    color: #666 !important;
    margin-bottom: 25px !important;
}

.btn-close {
    padding: 12px 30px !important;
    background: #667eea !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.btn-close:hover {
    background: #5a67d8 !important;
    transform: translateY(-2px) !important;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
    }
    to { 
        opacity: 1; 
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}
/* Responsive */
@media (max-width: 480px) {
    .form-wrapper {
        padding: 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    input, textarea {
        font-size: 14px;
    }
    
    .modal-content {
        padding: 20px;
    }
}
	  