/* PHPList Subscribe – front-end form styles
   All classes are namespaced with .pls- to avoid collisions. */

.pls-form-wrap {
	width: 100%;
	max-width: 520px;
	font-family:
		"MD System",
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		Roboto,
		Helvetica,
		Arial,
		sans-serif;
}

.pls-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* ── Rows ── */
.pls-row {
	display: flex;
}

.pls-row--names {
	flex-wrap: wrap;
}

/* ── Individual fields ── */
.pls-field {
	display: flex;
	flex-direction: column;
	flex: 1 1 160px;
	gap: 5px;
}

.pls-field--email {
	flex: 1 1 100%;
}

.pls-field label {
	font-size: 0.875rem;

	color: inherit;
	font-weight: 900;
}
.pls-title {
	font-weight: 800;
	font-size: 1rem;
}

.pls-field input[type="text"],
.pls-field input[type="email"] {
	width: 100%;
	padding: 0.8rem 0;
	border: 0;
	border-bottom: 1px solid var(--color-rule, black);
	border-radius: 0;

	background: transparent;
	color: var(--color-text, #111);
	transition:
		border-color 0.15s,
		box-shadow 0.15s;
	box-sizing: border-box;
}

.pls-field input:focus {
	outline: none;
	border-color: var(--color-rule, black);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

/* ── Submit row ── */
.pls-row--submit {
	align-items: center;
}

/* ── Button ── */
.pls-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0.8rem 1rem;
	border: none;
	border-radius: 0;
	background: transparent;
	color: var(--color-text, black);
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition:
		background 0.15s,
		opacity 0.15s;
	position: relative;
	white-space: nowrap;
}

.pls-btn:hover:not(:disabled) {
	background: var(--color-bg, white);
}

.pls-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

/* ── Spinner ── */
.pls-btn__spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: pls-spin 0.65s linear infinite;
	flex-shrink: 0;
}

.pls-btn.is-loading .pls-btn__spinner {
	display: block;
}

@keyframes pls-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ── Status messages ── */
.pls-message {
	font-size: 0.9rem;
	border-radius: 6px;
	padding: 0;
	overflow: hidden;
	max-height: 0;
	transition:
		max-height 0.25s ease,
		padding 0.25s ease;
}

.pls-message.is-visible {
	padding: 10px 14px;
	max-height: 120px;
}

.pls-message.is-success {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #6ee7b7;
}

.pls-message.is-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fca5a5;
}
