/**
 * CSS para Formulários por ADALUDEM
 * Estilos para os formulários do plugin
 */

/* Container principal dos formulários */
.formulario-simples-adaludem,
.formulario-contato-adaludem,
.formulario-profissao-adaludem {
	max-width: 600px;
	margin: 20px auto;
	padding: 25px;
	background: #ffffff;
	border: 1px solid #e1e4e8;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Títulos dos formulários */
.formulario-simples-adaludem h3,
.formulario-contato-adaludem h3,
.formulario-profissao-adaludem h3 {
	margin: 0 0 25px 0;
	padding-bottom: 15px;
	border-bottom: 2px solid #0073aa;
	color: #0073aa;
	font-size: 24px;
	font-weight: 600;
	text-align: center;
}

/* Grupos de campos */
.form-group-adaludem {
	margin-bottom: 20px;
}

/* Labels dos campos */
.form-group-adaludem label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333333;
	font-size: 14px;
}

/* Campos de entrada */
.form-group-adaludem input,
.form-group-adaludem textarea,
.form-group-adaludem select {
	width: 100%;
	padding: 12px 15px;
	border: 2px solid #e1e4e8;
	border-radius: 6px;
	font-size: 16px;
	font-family: inherit;
	transition: all 0.3s ease;
	box-sizing: border-box;
}

/* Foco nos campos */
.form-group-adaludem input:focus,
.form-group-adaludem textarea:focus,
.form-group-adaludem select:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Campos obrigatórios */
.form-group-adaludem label:after {
	content: " *";
	color: #dc3545;
	font-weight: bold;
}

/* Campos opcionais */
.form-group-adaludem label[for*="telefone"]:after,
.form-group-adaludem label[for*="website"]:after {
	content: "";
}

/* Textarea específico */
.form-group-adaludem textarea {
	resize: vertical;
	min-height: 100px;
	line-height: 1.5;
}

/* Select específico */
.form-group-adaludem select {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
	background-position: right 12px center;
	background-repeat: no-repeat;
	background-size: 16px;
	padding-right: 40px;
	appearance: none;
}

/* Botão de envio */
.btn-enviar-adaludem {
	width: 100%;
	padding: 15px 25px;
	background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
	color: #ffffff;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.btn-enviar-adaludem:hover {
	background: linear-gradient(135deg, #005a87 0%, #004466 100%);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.btn-enviar-adaludem:active {
	transform: translateY(0);
	box-shadow: 0 2px 6px rgba(0, 115, 170, 0.3);
}

.btn-enviar-adaludem:disabled {
	background: #6c757d;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* Status do formulário */
.form-status-adaludem {
	margin-top: 20px;
	padding: 15px;
	border-radius: 6px;
	font-weight: 500;
	text-align: center;
}

.form-status-adaludem.success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.form-status-adaludem.error {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.form-status-adaludem.info {
	background-color: #d1ecf1;
	color: #0c5460;
	border: 1px solid #bee5eb;
}

/* Mensagens de erro específicas */
.form-group-adaludem.error input,
.form-group-adaludem.error textarea,
.form-group-adaludem.error select {
	border-color: #dc3545;
	box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group-adaludem.error .error-message {
	color: #dc3545;
	font-size: 12px;
	margin-top: 5px;
	font-weight: 500;
}

/* Loading state */
.formulario-forms-adaludem.loading .btn-enviar-adaludem {
	position: relative;
	color: transparent;
}

.formulario-forms-adaludem.loading .btn-enviar-adaludem:after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid #ffffff;
	border-top: 2px solid transparent;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

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

/* Responsividade */
@media (max-width: 768px) {
	.formulario-simples-adaludem,
	.formulario-contato-adaludem,
	.formulario-profissao-adaludem {
		margin: 15px;
		padding: 20px;
	}
	
	.form-group-adaludem input,
	.form-group-adaludem textarea,
	.form-group-adaludem select {
		font-size: 16px; /* Evita zoom no iOS */
	}
	
	.btn-enviar-adaludem {
		padding: 18px 25px; /* Botão maior para mobile */
	}
}

@media (max-width: 480px) {
	.formulario-simples-adaludem,
	.formulario-contato-adaludem,
	.formulario-profissao-adaludem {
		margin: 10px;
		padding: 15px;
	}
	
	.formulario-simples-adaludem h3,
	.formulario-contato-adaludem h3,
	.formulario-profissao-adaludem h3 {
		font-size: 20px;
	}
}

/* Estados de validação */
.form-group-adaludem.valid input,
.form-group-adaludem.valid textarea,
.form-group-adaludem.valid select {
	border-color: #28a745;
	box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-group-adaludem.valid .valid-icon {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	color: #28a745;
	font-size: 18px;
}

/* Campo honeypot (sempre oculto) */
.form-group-adaludem[style*="display: none"] {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Melhorias de acessibilidade */
.form-group-adaludem input:focus,
.form-group-adaludem textarea:focus,
.form-group-adaludem select:focus {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
}

/* Suporte para modo escuro */
@media (prefers-color-scheme: dark) {
	.formulario-simples-adaludem,
	.formulario-contato-adaludem,
	.formulario-profissao-adaludem {
		background: #2d3748;
		border-color: #4a5568;
		color: #e2e8f0;
	}
	
	.form-group-adaludem label {
		color: #e2e8f0;
	}
	
	.form-group-adaludem input,
	.form-group-adaludem textarea,
	.form-group-adaludem select {
		background: #4a5568;
		border-color: #718096;
		color: #e2e8f0;
	}
	
	.form-group-adaludem input:focus,
	.form-group-adaludem textarea:focus,
	.form-group-adaludem select:focus {
		border-color: #0073aa;
		background: #2d3748;
	}
}

/* Animações de entrada */
.formulario-simples-adaludem,
.formulario-contato-adaludem,
.formulario-profissao-adaludem {
	animation: fadeInUp 0.6s ease-out;
}

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

/* Hover effects para campos */
.form-group-adaludem input:hover,
.form-group-adaludem textarea:hover,
.form-group-adaludem select:hover {
	border-color: #0073aa;
}

/* Estilo para campos com erro */
.form-group-adaludem.has-error input,
.form-group-adaludem.has-error textarea,
.form-group-adaludem.has-error select {
	border-color: #dc3545;
	background-color: #fff5f5;
}

.form-group-adaludem.has-error .error-text {
	color: #dc3545;
	font-size: 12px;
	margin-top: 5px;
	display: block;
}

/* Estilo para campos com sucesso */
.form-group-adaludem.has-success input,
.form-group-adaludem.has-success textarea,
.form-group-adaludem.has-success select {
	border-color: #28a745;
	background-color: #f8fff9;
}

.form-group-adaludem.has-success .success-text {
	color: #28a745;
	font-size: 12px;
	margin-top: 5px;
	display: block;
}
