/**
 * Estilos públicos do plugin WP WhatsApp Leads.
 *
 * @package WPWL
 */

/* Botão Flutuante */
.wpwl-floating-button {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background-color: #25D366;
	color: #ffffff;
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 9998;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	padding: 0;
}

.wpwl-floating-button:hover {
	background-color: #20BA5A;
	transform: scale(1.1);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.wpwl-floating-button:focus {
	outline: 2px solid #25D366;
	outline-offset: 2px;
}

.wpwl-floating-button svg {
	width: 28px;
	height: 28px;
}

/* Modal */
.wpwl-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
}

.wpwl-modal.active {
	display: flex;
	align-items: center;
	justify-content: center;
}

.wpwl-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(2px);
}

.wpwl-modal-content {
	position: relative;
	background-color: #ffffff;
	border-radius: 8px;
	padding: 30px;
	max-width: 500px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	z-index: 10000;
	animation: wpwl-modal-fade-in 0.3s ease;
}

@keyframes wpwl-modal-fade-in {
	from {
		opacity: 0;
		transform: scale(0.9);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.wpwl-modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: #666;
	cursor: pointer;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
}

.wpwl-modal-close:hover,
.wpwl-modal-close:focus {
	color: #000;
	outline: none;
}

.wpwl-modal-title {
	margin: 0 0 20px 0;
	font-size: 24px;
	color: #333;
}

/* Formulário */
.wpwl-form {
	margin-top: 20px;
}

.wpwl-form-group {
	margin-bottom: 20px;
}

.wpwl-form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
	color: #333;
	font-size: 14px;
}

.wpwl-form-group .required {
	color: #d63638;
}

.wpwl-form-group input[type="text"],
.wpwl-form-group input[type="email"],
.wpwl-form-group input[type="tel"] {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 16px;
	transition: border-color 0.2s ease;
	box-sizing: border-box;
}

.wpwl-form-group input:focus {
	outline: none;
	border-color: #25D366;
	box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.1);
}

.wpwl-form-actions {
	margin-top: 25px;
}

.wpwl-button {
	padding: 12px 24px;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	width: 100%;
}

.wpwl-button-primary {
	background-color: #25D366;
	color: #ffffff;
}

.wpwl-button-primary:hover:not(:disabled) {
	background-color: #20BA5A;
}

.wpwl-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.wpwl-form-message {
	margin-top: 15px;
	padding: 10px;
	border-radius: 4px;
	display: none;
}

.wpwl-form-message.show {
	display: block;
}

.wpwl-form-message.success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.wpwl-form-message.error {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.wpwl-form-message.loading {
	background-color: #d1ecf1;
	color: #0c5460;
	border: 1px solid #bee5eb;
}

/* Responsivo */
@media (max-width: 768px) {
	.wpwl-floating-button {
		width: 56px;
		height: 56px;
		bottom: 15px;
		right: 15px;
	}

	.wpwl-modal-content {
		padding: 20px;
		width: 95%;
	}

	.wpwl-modal-title {
		font-size: 20px;
	}
}

