/**
 * Formulário do Jornal Café - Frontend
 * Arquivo: /css/front-end/form-jornal.css
 */

/* Container principal */
.jornal-form-container {
    max-width: 500px;
    margin: 30px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

/* Header */
.jornal-header {
    text-align: center;
    margin-bottom: 25px;
}

.jornal-header h3 {
    color: #2c3e50;
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 700;
}

.jornal-header p {
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
    font-size: 14px;
}

/* Formulário */
.jornal-form {
    margin-bottom: 15px;
}

.jornal-form-group {
    margin-bottom: 20px;
}

.jornal-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.jornal-form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.jornal-form-input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.jornal-form-input.error {
    border-color: #e74c3c;
}

/* Botão de submit */
.jornal-btn-submit {
    width: 100%;
    background: #27ae60;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.jornal-btn-submit:hover {
    background: #219653;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(33, 150, 83, 0.3);
}

.jornal-btn-submit:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Termos */
.jornal-termos {
    margin-top: 15px;
    font-size: 12px;
    color: #7f8c8d;
    text-align: center;
    line-height: 1.4;
}

/* Mensagens */
.jornal-mensagem {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.jornal-mensagem.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.jornal-mensagem.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Estatísticas */
.jornal-estatisticas {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #7f8c8d;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.jornal-estatisticas p {
    margin: 0;
}

.jornal-estatisticas strong {
    color: #2c3e50;
    font-size: 18px;
}

/* Estados do formulário */
.jornal-form.submitted-success {
    animation: pulseSuccess 2s ease;
}

.jornal-form.submitted-error {
    animation: pulseError 2s ease;
}

@keyframes pulseSuccess {
    0%, 100% { box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
    50% { box-shadow: 0 5px 25px rgba(39, 174, 96, 0.3); }
}

@keyframes pulseError {
    0%, 100% { box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
    50% { box-shadow: 0 5px 25px rgba(231, 76, 60, 0.3); }
}

/* Responsividade */
@media (max-width: 768px) {
    .jornal-form-container {
        margin: 20px auto;
        padding: 20px;
    }
    
    .jornal-header h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .jornal-form-container {
        margin: 15px;
        padding: 15px;
    }
    
    .jornal-form-input {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .jornal-btn-submit {
        padding: 12px;
        font-size: 14px;
    }
}