/* Fab Moosend — Frontend Form Styles */

.fab-ms-wrap {
	max-width: 100%;
}

/* ─── Stacked Layout ─── */
.fab-ms-form.fab-ms-stacked {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* ─── Inline Layout ─── */
.fab-ms-form.fab-ms-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: flex-end;
}

.fab-ms-form.fab-ms-inline .fab-ms-field-wrap {
	flex: 1;
	min-width: 140px;
}

.fab-ms-form.fab-ms-inline .fab-ms-btn-wrap {
	flex: 0 0 auto;
}

/* ─── Field ─── */
.fab-ms-field-wrap label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 4px;
	color: inherit;
}

.fab-ms-input {
	width: 100%;
	height: 44px;
	padding: 0 14px;
	font-size: 14px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background: #fff;
	color: #1f2937;
	box-sizing: border-box;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fab-ms-input:focus {
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.fab-ms-input::placeholder {
	color: #9ca3af;
}

/* ─── Button ─── */
.fab-ms-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	padding: 0 24px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background: #3b82f6;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
	white-space: nowrap;
}

.fab-ms-btn:hover {
	background: #2563eb;
}

.fab-ms-btn:active {
	transform: scale(0.98);
}

.fab-ms-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.fab-ms-stacked .fab-ms-btn {
	width: 100%;
}

/* ─── Loading State ─── */
.fab-ms-btn-loading svg {
	animation: fab-ms-spin 0.8s linear infinite;
}

@keyframes fab-ms-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* ─── Messages ─── */
.fab-ms-message {
	padding: 14px 18px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	margin-top: 12px;
}

.fab-ms-success {
	background: #f0fdf4;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

.fab-ms-error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

/* ─── Honeypot ─── */
.fab-ms-honeypot {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	width: 0;
	overflow: hidden;
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
	.fab-ms-form.fab-ms-inline {
		flex-direction: column;
	}

	.fab-ms-form.fab-ms-inline .fab-ms-field-wrap {
		min-width: 100%;
	}

	.fab-ms-form.fab-ms-inline .fab-ms-btn {
		width: 100%;
	}
}
