/**
 * BPS Lite — front-end form styles.
 *
 * Block layout for label + control, sensible spacing, and a clear success notice.
 * Inputs inherit colours from the active skin tokens where possible.
 *
 * @package BPS_Lite
 */

.bps-lite-form {
	max-width: 560px;
	margin: 0 0 2rem;
}

.bps-lite-form-title {
	margin: 0 0 1rem;
}

.bps-lite-field {
	margin-bottom: 1.1rem;
}

.bps-lite-field-label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
	line-height: 1.3;
}

.bps-lite-field input[type="text"],
.bps-lite-field input[type="email"],
.bps-lite-field input[type="number"],
.bps-lite-field input[type="date"],
.bps-lite-field input[type="tel"],
.bps-lite-field input[type="url"],
.bps-lite-field input[type="password"],
.bps-lite-field select,
.bps-lite-field textarea {
	display: block;
	width: 100%;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--border-color, #ccc);
	border-radius: var(--radius-base, 6px);
	background: #fff;
	color: inherit;
	font: inherit;
	box-sizing: border-box;
}

.bps-lite-field input[type="color"] {
	width: 3rem;
	height: 2.2rem;
	padding: 2px;
	border: 1px solid var(--border-color, #ccc);
	border-radius: var(--radius-base, 6px);
}

.bps-lite-field textarea {
	min-height: 6rem;
	resize: vertical;
}

.bps-lite-field input:focus,
.bps-lite-field select:focus,
.bps-lite-field textarea:focus {
	outline: 2px solid var(--accent, #0066cc);
	outline-offset: 1px;
	border-color: var(--accent, #0066cc);
}

/* Checkbox / radio groups stack with breathing room. */
.bps-lite-checkboxes,
.bps-lite-radios {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.bps-lite-checkbox,
.bps-lite-radio {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 400;
}

/* Select2 fits the field width. */
.bps-lite-field .select2-container {
	width: 100% !important;
}

.bps-lite-form-actions {
	margin-top: 1.25rem;
}

.bps-lite-form-success {
	margin: 0 0 1.25rem;
	padding: 0.85rem 1rem;
	border-radius: var(--radius-base, 6px);
	background: #e7f6ec;
	border: 1px solid #b6e0c4;
	color: #1d643b;
}
