/* 
 * Estilos para o widget de consulta CPF 
 * Versão: 2.1
 * Mobile-first approach
 */

/* Formulário principal */
.ccfr-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Campo de entrada */
.ccfr-input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

/* Botão de consulta */
.ccfr-button {
    padding: 14px 24px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.ccfr-button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.ccfr-button:active {
    transform: translateY(0);
}

/* Área de mensagem */
.ccfr-message {
    margin-top: 10px;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    display: none;
}

.ccfr-message.ccfr-error {
    display: block;
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Responsividade para tablets */
@media (min-width: 768px) {
    .ccfr-form {
        padding: 25px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .ccfr-button {
        padding: 14px 30px;
    }
}

/* Responsividade para desktop */
@media (min-width: 1024px) {
    .ccfr-form {
        padding: 30px;
        max-width: 600px;
    }
    
    .ccfr-input {
        font-size: 16px;
    }
    
    .ccfr-button {
        font-size: 16px;
    }
}

/* Acessibilidade */
.ccfr-input:focus,
.ccfr-button:focus {
    outline: 2px solid #2196F3;
    outline-offset: 2px;
}

/* Animações */
@keyframes ccfr-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.ccfr-button:hover {
    animation: ccfr-pulse 1.5s infinite;
}
