.bdp-wellbot-form {
	--bdp-border: #d9dee6;
	--bdp-text: #172033;
	--bdp-muted: #667085;
	--bdp-focus: #146c94;
	--bdp-bg: #ffffff;
	--bdp-error: #b42318;
	--bdp-success: #067647;
	display: block;
	width: 100%;
	max-width: 640px;
	color: var(--bdp-text);
}

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

.bdp-form-field {
	position: relative;
	min-width: 0;
}

.bdp-form-field:nth-child(3),
.bdp-form-field:nth-child(4),
.bdp-form-field:nth-child(5),
.bdp-form-field:nth-child(6) {
	grid-column: 1 / -1;
}

.bdp-form-field input,
.bdp-form-field select {
	width: 100%;
	min-height: 56px;
	box-sizing: border-box;
	border: 1px solid var(--bdp-border);
	border-radius: 8px;
	background: var(--bdp-bg);
	color: var(--bdp-text);
	font: inherit;
	line-height: 1.2;
	padding: 22px 15px 8px;
	outline: none;
	transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.bdp-form-field select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding-right: 40px;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23667085' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
}

.bdp-form-field--select label {
	color: var(--bdp-muted);
	font-size: 12px;
	transform: translateY(-11px);
}

.bdp-form-field select:focus {
	border-color: var(--bdp-focus);
	box-shadow: 0 0 0 3px rgba(20, 108, 148, 0.14);
}

.bdp-form-field--select select:focus + label {
	color: var(--bdp-focus);
}

.bdp-form-field label {
	position: absolute;
	left: 15px;
	top: 18px;
	max-width: calc(100% - 30px);
	color: var(--bdp-muted);
	font-size: 15px;
	line-height: 1.2;
	pointer-events: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: transform 160ms ease, font-size 160ms ease, color 160ms ease;
}

.bdp-form-field input:focus {
	border-color: var(--bdp-focus);
	box-shadow: 0 0 0 3px rgba(20, 108, 148, 0.14);
}

.bdp-form-field input:focus + label,
.bdp-form-field input:not(:placeholder-shown) + label {
	color: var(--bdp-focus);
	font-size: 12px;
	transform: translateY(-11px);
}

.bdp-form-footer {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 18px;
}

.bdp-form-button {
	position: relative;
	overflow: hidden;
	min-height: 48px;
	border: 0;
	border-radius: 8px;
	background: #000000;
	color: #ffffff;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	line-height: 1;
	padding: 0 22px;
	transition: background-color 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.bdp-form-button span {
	position: relative;
	z-index: 1;
}

.bdp-form-button:hover,
.bdp-form-button:focus {
	background: #171717;
}

.bdp-form-button:focus {
	outline: 3px solid rgba(20, 108, 148, 0.2);
	outline-offset: 2px;
}

.bdp-form-button:active {
	transform: translateY(1px);
}

.bdp-form-button[disabled] {
	cursor: wait;
	opacity: 0.68;
}

.bdp-form-button.is-loading::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.22) 45%, transparent 70%);
	content: "";
	transform: translateX(-100%);
	animation: bdp-button-sheen 900ms ease-in-out infinite;
}

@keyframes bdp-button-sheen {
	to {
		transform: translateX(100%);
	}
}

.bdp-form-message {
	min-height: 20px;
	color: var(--bdp-muted);
	font-size: 14px;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.bdp-form-message.is-error {
	color: var(--bdp-error);
}

.bdp-form-message.is-success {
	color: var(--bdp-success);
}

.bdp-form-message a {
	color: inherit;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.bdp-form-admin-notice {
	color: var(--bdp-error, #b42318);
}

@media (max-width: 560px) {
	.bdp-form-grid {
		grid-template-columns: 1fr;
	}

	.bdp-form-field:nth-child(3),
	.bdp-form-field:nth-child(4),
	.bdp-form-field:nth-child(5),
	.bdp-form-field:nth-child(6) {
		grid-column: auto;
	}

	.bdp-form-footer {
		align-items: stretch;
		flex-direction: column;
	}

	.bdp-form-button {
		width: 100%;
	}
}
