/* ISOE forms — frontend */
.isoe-form-block {
	max-width: 720px;
	margin: 0 auto;
}

.isoe-form-block .isoe-section__head {
	margin-bottom: 1.5rem;
}

.isoe-form {
	background: #fff;
	border: 1px solid rgba(17, 17, 17, 0.06);
	border-radius: var(--isoe-radius-lg, 8px);
	box-shadow: var(--isoe-shadow-sm, 0 8px 24px rgba(17, 17, 17, 0.06));
	box-sizing: border-box;
	padding: 1.75rem 1.5rem 1.5rem;
}

@media (min-width: 640px) {
	.isoe-form {
		padding: 2rem 2.25rem 1.75rem;
	}
}

.isoe-section:not(.isoe-section--alt) .isoe-form {
	box-shadow: var(--isoe-shadow, 0 20px 50px rgba(17, 17, 17, 0.08));
}

.isoe-form__row {
	display: grid;
	gap: 1.25rem;
}

@media (min-width: 640px) {
	.isoe-form__row:not(.isoe-form__row--stack) {
		gap: 1.5rem;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.isoe-form__field {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	min-width: 0;
}

.isoe-form__label {
	color: var(--wp--preset--color--secondary, #333);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.isoe-form input,
.isoe-form textarea {
	appearance: none;
	background: #faf8f5;
	border: 1px solid rgba(17, 17, 17, 0.12);
	border-radius: var(--isoe-radius, 4px);
	box-sizing: border-box;
	color: #111;
	font: inherit;
	font-size: 1rem;
	line-height: 1.4;
	padding: 0.85rem 1rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	width: 100%;
}

.isoe-form input::placeholder,
.isoe-form textarea::placeholder {
	color: rgba(17, 17, 17, 0.38);
}

.isoe-form textarea {
	min-height: 140px;
	resize: vertical;
}

.isoe-form input:hover,
.isoe-form textarea:hover {
	background: #fff;
	border-color: rgba(196, 92, 0, 0.35);
}

.isoe-form input:focus,
.isoe-form textarea:focus {
	background: #fff;
	border-color: #c45c00;
	box-shadow: 0 0 0 3px rgba(196, 92, 0, 0.15);
	outline: none;
}

.isoe-form__field.is-invalid input,
.isoe-form__field.is-invalid textarea {
	background: #fff8f5;
	border-color: #c62828;
	box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}

.isoe-form__hp {
	display: none !important;
}

.isoe-form__actions {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 1.75rem;
	text-align: center;
}

@media (min-width: 640px) {
	.isoe-form__actions {
		align-items: center;
		flex-direction: row;
		justify-content: center;
	}
}

.isoe-form__actions .isoe-btn {
	justify-content: center;
	min-width: 220px;
	padding: 0.85rem 1.75rem;
}

.isoe-form__status {
	font-size: 0.9rem;
	margin: 0;
	max-width: 100%;
}

.isoe-form__status.is-ok {
	color: #1b6b2a;
	font-weight: 600;
}

.isoe-form__status.is-error {
	color: #b32d2e;
	font-weight: 600;
}
