/**
 * Support Form block: Zoho iframe wrapper + design-preview form.
 * Loaded on the front end and in the editor only when the block (or shortcode) is used.
 */

.shure-support-form {
	--shure-field-border: #bfc7cf;
	--shure-field-bg: #fbfcfd;
	--shure-required: #d21b29;
	--shure-focus: #6eaa00;
	color: #080808;
}

/* ---------- Zoho iframe ---------- */
.shure-zoho-embed {
	width: 100%;
}

.shure-zoho-embed__frame {
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: 200px;
	border: 0;
	background: transparent;
}

/* ---------- Notices ---------- */
.shure-form-admin-notice {
	margin: 0 0 14px;
	padding: 10px 12px;
	border-left: 4px solid #925100;
	background: #fff6e5;
	color: #4a2a00;
	font-size: 13px;
	line-height: 1.45;
}

.shure-form-admin-notice a {
	color: inherit;
	font-weight: 700;
	text-decoration: underline;
}

.shure-form-unavailable {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
}

/* ---------- Preview form ---------- */
.shure-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 18px;
}

.shure-form__field {
	min-width: 0;
}

.shure-form__field.is-full {
	grid-column: 1 / -1;
}

.shure-form__field label {
	display: block;
	font-size: 13px;
	font-weight: 800;
	margin-bottom: 6px;
	color: inherit;
}

.shure-form__field label span {
	color: var(--shure-required);
}

.shure-support-form .shure-form__field input,
.shure-support-form .shure-form__field select,
.shure-support-form .shure-form__field textarea {
	display: block;
	width: 100%;
	min-width: 0;
	min-height: 42px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--shure-field-border);
	border-radius: 6px;
	background: var(--shure-field-bg);
	color: #111;
	font: inherit;
	font-size: 14px;
	box-shadow: none;
}

.shure-support-form .shure-form__field textarea {
	min-height: 104px;
	resize: vertical;
}

.shure-support-form .shure-form__field :is(input, select, textarea):focus-visible,
.shure-form__consent input:focus-visible,
.shure-form__submit:focus-visible {
	outline: 3px solid var(--shure-focus);
	outline-offset: 2px;
}

.shure-form__consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 12px;
	line-height: 1.5;
	margin: 17px 0;
}

.shure-form__consent input {
	margin: 2px 0 0;
	flex: none;
}

.shure-form__actions {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.shure-support-form .shure-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 46px;
	padding: 13px 22px;
	border: 0;
	border-radius: 6px;
	background: var(--shure-accent, #b5ff00);
	color: #050505;
	font: inherit;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: none;
}

.shure-support-form .shure-form__submit:hover {
	background: var(--shure-accent-hover, #9de000);
	color: #050505;
}

.shure-form__submit-icon {
	width: 19px;
	height: 19px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.shure-form__privacy {
	font-size: 11px;
	line-height: 1.4;
	max-width: 200px;
}

.shure-form__privacy::before {
	content: "\1F512\00a0";
}

.shure-form__status {
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.4;
}

.shure-form__status:empty {
	display: none;
}

.shure-form__status.is-warning {
	color: #925100;
}

@media (max-width: 540px) {
	.shure-form__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.shure-form__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.shure-form__privacy {
		max-width: none;
	}

	.shure-support-form .shure-form__submit {
		width: 100%;
	}
}

/* Editor label above the embed-code box. */
.shure-support-form-editor__label {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.shure-zoho-embed--code iframe {
	max-width: 100%;
}
