/* Botão flutuante */
.wfw-float-btn {
	position: fixed;
	bottom: 24px;
	z-index: 99998;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: var(--wfw-color, #25D366);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease;
}
.wfw-float-btn:hover {
	transform: scale(1.08);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}
.wfw-float-btn.wfw-right { right: 24px; }
.wfw-float-btn.wfw-left  { left: 24px; }

/* Overlay do modal */
.wfw-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 16px;
}
.wfw-modal-overlay.wfw-active {
	display: flex;
}

/* Card do modal */
.wfw-modal {
	background: #fff;
	width: 100%;
	max-width: 350px;
	border-radius: 12px;
	overflow: hidden;
	position: relative;
	box-shadow: 0 14px 44px rgba(0, 0, 0, 0.32);
	max-height: 92vh;
	overflow-y: auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	animation: wfw-pop .18s ease;
}
@keyframes wfw-pop {
	from { transform: scale(.96); opacity: 0; }
	to   { transform: scale(1); opacity: 1; }
}

.wfw-close {
	position: absolute;
	top: 10px;
	right: 12px;
	background: rgba(255, 255, 255, 0.2);
	border: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	color: #fff;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s ease;
}
.wfw-close:hover { background: rgba(255, 255, 255, 0.32); }

.wfw-modal-header {
	padding: 22px 40px 16px 20px;
	position: relative;
}
.wfw-modal-header-icon {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 8px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.wfw-modal-header #wfw-modal-title {
	color: #fff;
	margin: 0 0 3px;
	font-size: 17px;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -.2px;
}
.wfw-modal-subtitle {
	color: rgba(255, 255, 255, 0.92);
	margin: 0;
	font-size: 12.5px;
	line-height: 1.35;
	font-weight: 400;
}

.wfw-form {
	padding: 14px 18px 18px;
}

.wfw-field {
	margin-bottom: 8px;
}
.wfw-field label {
	display: block;
	font-size: 11.5px;
	font-weight: 600;
	color: #333;
	margin-bottom: 3px;
}
.wfw-field input[type="text"],
.wfw-field input[type="tel"],
.wfw-field input[type="email"] {
	width: 100%;
	padding: 7px 10px;
	border: 1px solid #d9d9d9;
	border-radius: 5px;
	font-size: 13px;
	box-sizing: border-box;
	transition: border-color .15s ease, box-shadow .15s ease;
	margin-bottom: 0px !important;
}
.wfw-field input:focus {
	outline: none;
	border-color: var(--wfw-color, #25D366);
	box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

.wfw-checkbox {
	margin-top: 10px;
	margin-bottom: 8px;
}
.wfw-checkbox label {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	font-size: 11.5px;
	font-weight: 400;
	color: #444;
	cursor: pointer;
	line-height: 1.35;
}
.wfw-checkbox input {
	margin-top: 2px;
	flex-shrink: 0;
}

.wfw-privacy {
	font-size: 10.5px;
	color: #888;
	line-height: 1.35;
	margin: 0 0 12px;
}

.wfw-submit-btn {
	width: 100%;
	border: none;
	color: #fff;
	padding: 11px;
	border-radius: 6px;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: opacity .15s ease;
}
.wfw-submit-btn:hover { opacity: .92; }
.wfw-submit-btn:disabled { opacity: .7; cursor: not-allowed; }

.wfw-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: wfw-spin .7s linear infinite;
}
@keyframes wfw-spin {
	to { transform: rotate(360deg); }
}

.wfw-error-msg {
	margin-top: 10px;
	color: #c0392b;
	font-size: 12.5px;
	text-align: center;
}

@media (max-width: 420px) {
	.wfw-modal { max-width: 100%; }
}
