/**
 * CW Email support forms.
 *
 * @version 1.2.3
 */

.cwe-support-form,
.cwe-support-form *,
.cwe-support-form *::before,
.cwe-support-form *::after {
	box-sizing: border-box;
}

.cwe-support-form {
	--cwe-support-brand: #239add;
	--cwe-support-navy: #1e3b66;
	--cwe-support-text: #172033;
	--cwe-support-muted: #667085;
	--cwe-support-border: rgba(30, 59, 102, 0.16);
	display: grid;
	gap: 14px;
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
	padding: clamp(18px, 3vw, 26px);
	border: 1px solid var(--cwe-support-border);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 14px 38px rgba(30, 59, 102, 0.08);
	color: var(--cwe-support-text);
	font-family: var(--theme-font-family, var(--fontFamily, "Segoe UI", Arial, sans-serif));
	contain: layout paint;
}

.cwe-support-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.cwe-support-form__field {
	margin: 0;
}

.cwe-support-form label {
	display: block;
	margin: 0 0 6px;
	color: var(--cwe-support-navy);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.3;
}

.cwe-support-form input[type="text"],
.cwe-support-form input[type="email"],
.cwe-support-form select,
.cwe-support-form textarea {
	width: 100%;
	min-height: 48px;
	padding: 11px 14px;
	border: 1px solid var(--cwe-support-border);
	border-radius: 14px;
	background: #fff;
	color: var(--cwe-support-text);
	font-size: 15px;
	font-weight: 650;
	line-height: 1.35;
	outline: 0;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}

.cwe-support-form textarea {
	min-height: 140px;
	resize: vertical;
}

.cwe-support-form input:focus,
.cwe-support-form select:focus,
.cwe-support-form textarea:focus {
	border-color: var(--cwe-support-brand);
	box-shadow: 0 0 0 4px rgba(35, 154, 221, 0.13);
}

.cwe-support-form__button {
	justify-self: start;
	min-height: 48px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--cwe-support-brand), var(--cwe-support-navy));
	box-shadow: 0 10px 22px rgba(35, 154, 221, 0.24);
	color: #fff;
	font-size: 15px;
	font-weight: 900;
	line-height: 1.1;
	cursor: pointer;
	transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.cwe-support-form__button:hover,
.cwe-support-form__button:focus-visible {
	box-shadow: 0 14px 28px rgba(35, 154, 221, 0.30);
	outline: 0;
	transform: translateY(-1px);
}

.cwe-support-form__button:disabled {
	cursor: progress;
	opacity: 0.66;
	transform: none;
}

.cwe-support-form__notice {
	min-height: 1.35em;
	margin: 0;
	color: var(--cwe-support-navy);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.45;
}

.cwe-support-form__notice.is-error {
	color: #b42318;
}

.cwe-support-form__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
}

@media (max-width: 700px) {
	.cwe-support-form {
		padding: 18px;
		border-radius: 18px;
	}

	.cwe-support-form__grid {
		grid-template-columns: 1fr;
	}

	.cwe-support-form__button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cwe-support-form input,
	.cwe-support-form select,
	.cwe-support-form textarea,
	.cwe-support-form__button {
		transition: none;
	}
}
