.sdc-contact-form {
	display: grid;
	gap: 1rem;
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
	color: inherit;
}

.sdc-groundwork-contact-form-block,
.sdc-groundwork-contact-form-block-preview {
	box-sizing: border-box;
	width: 100%;
}

.sdc-contact-form__title {
	margin: 0 0 .35rem;
	font: inherit;
	font-size: clamp(1.5rem, 2.2vw, 2.2rem);
	font-weight: 700;
	line-height: 1.12;
	color: inherit;
}

.sdc-contact-form__notice-shell {
	display: grid;
	grid-template-rows: 0fr;
	opacity: 0;
	transition:
		grid-template-rows 460ms cubic-bezier(.22, 1, .36, 1),
		opacity 260ms ease;
}

.sdc-contact-form__notice-shell.is-visible {
	grid-template-rows: 1fr;
	opacity: 1;
}

.sdc-contact-form__notice-clip {
	min-height: 0;
	overflow: hidden;
}

.sdc-contact-form__notice {
	display: block;
	padding: .85rem 1rem;
	border: 1px solid transparent;
	border-radius: 8px;
	font-size: .95rem;
	font-weight: 600;
	line-height: 1.4;
	box-sizing: border-box;
}

.sdc-contact-form__notice.is-success {
	border-color: #7abca7;
	background: #e8f8f0;
	color: #14513e;
}

.sdc-contact-form__notice.is-error {
	border-color: #e5a3a3;
	background: #fff0f0;
	color: #8a2424;
}

.sdc-contact-form__fields {
	display: grid;
	gap: 1rem;
	opacity: 1;
	transform: scale(1);
	transform-origin: center center;
	overflow: visible;
	transition:
		opacity 2000ms ease,
		transform 2000ms ease,
		height 2000ms ease,
		padding 2000ms ease,
		margin 2000ms ease;
}

.sdc-contact-form__fields.is-fading-out {
	height: 0;
	margin-top: 0;
	margin-bottom: 0;
	padding-top: 0;
	padding-bottom: 0;
	opacity: 0;
	transform: scale(0);
}

.sdc-contact-form__layout-row {
	display: grid;
	gap: 1rem;
	align-items: stretch;
	min-width: 0;
}

.sdc-contact-form__layout-row--full {
	grid-template-columns: minmax(0, 1fr);
}

.sdc-contact-form__layout-row--half {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sdc-contact-form__layout-column {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-width: 0;
}

.sdc-contact-form__layout-column--full-height > .sdc-contact-form__field:only-child,
.sdc-contact-form__layout-column--full-height > .sdc-contact-form__actions:only-child {
	height: 100%;
}

.sdc-contact-form__field {
	display: grid;
	grid-column: 1 / -1;
	gap: .45rem;
	min-width: 0;
}

.sdc-contact-form__field--half {
	grid-column: span 1;
}

.sdc-contact-form__field--justify-left,
.sdc-contact-form__actions--justify-left {
	grid-column: 1;
}

.sdc-contact-form__field--justify-right,
.sdc-contact-form__actions--justify-right {
	grid-column: 2;
}

.sdc-contact-form__field--natural-height,
.sdc-contact-form__actions--natural-height {
	align-self: flex-start;
	width: 100%;
}

.sdc-contact-form__field--full-height,
.sdc-contact-form__actions--full-height {
	align-self: stretch;
}

.sdc-contact-form__label {
	display: block;
	font-size: .9rem;
	font-weight: 700;
	line-height: 1.3;
	color: inherit;
}

.sdc-contact-form__required {
	color: #d14b4b;
}

.sdc-contact-form input[type="text"],
.sdc-contact-form input[type="email"],
.sdc-contact-form input[type="url"],
.sdc-contact-form input[type="date"],
.sdc-contact-form select,
.sdc-contact-form textarea {
	width: 100%;
	min-height: 3rem;
	padding: .75rem .95rem;
	border: 1px solid rgba(148, 163, 184, .55);
	border-radius: 8px;
	background: rgba(255, 255, 255, .96);
	color: #111827;
	font: inherit;
	line-height: 1.4;
	box-shadow: none;
	box-sizing: border-box;
}

.sdc-contact-form textarea {
	min-height: 8rem;
	resize: vertical;
}

.sdc-contact-form input:focus,
.sdc-contact-form select:focus,
.sdc-contact-form textarea:focus {
	outline: none;
	border-color: #2a6552;
	box-shadow: 0 0 0 2px rgba(42, 101, 82, .18);
}

.sdc-contact-form__choices {
	display: grid;
	gap: .55rem;
}

.sdc-contact-form__choice {
	display: flex;
	align-items: flex-start;
	gap: .55rem;
	color: inherit;
	font-size: .95rem;
	line-height: 1.45;
}

.sdc-contact-form__choice input {
	flex: 0 0 auto;
	margin-top: .2em;
}

.sdc-contact-form__actions {
	display: flex;
	grid-column: 1 / -1;
	justify-content: flex-start;
}

.sdc-contact-form__actions--half {
	grid-column: span 1;
}

.sdc-contact-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: .75rem 1.35rem;
	border: 1px solid #2a6552;
	border-radius: 8px;
	background: #2a6552;
	color: #fff;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background .18s ease, border-color .18s ease, opacity .18s ease;
}

.sdc-contact-form__submit:hover,
.sdc-contact-form__submit:focus {
	background: #214f41;
	border-color: #214f41;
	color: #fff;
}

.sdc-contact-form.is-submitting .sdc-contact-form__submit {
	opacity: .65;
	cursor: progress;
}

.sdc-contact-form--editor-preview,
.sdc-contact-form--editor-preview * {
	pointer-events: none;
}

@media (max-width: 700px) {
	.sdc-groundwork-contact-form-block,
	.sdc-groundwork-contact-form-block-preview {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.sdc-contact-form__layout-row--half {
		grid-template-columns: 1fr;
	}

	.sdc-contact-form__field--half,
	.sdc-contact-form__actions--half {
		grid-column: 1 / -1;
	}
}
