/* Prototype-style intake form modal (Talk to Us) */

body.template-block-builder .form-modal,
body.template-drug-glossary .form-modal,
body.template-page .form-modal,
.editor-styles-wrapper .form-modal {
	position: fixed;
	inset: 0;
	z-index: 350;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	pointer-events: none;
	opacity: 0;
	transition: opacity 320ms var(--ms-ease, ease);
}

body.template-block-builder .form-modal.visible,
body.template-drug-glossary .form-modal.visible,
body.template-page .form-modal.visible,
.editor-styles-wrapper .form-modal.visible {
	opacity: 1;
	pointer-events: all;
}

body.template-block-builder .form-backdrop,
body.template-drug-glossary .form-backdrop,
body.template-page .form-backdrop,
.editor-styles-wrapper .form-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20,35,20,0.5) !important;
	backdrop-filter: blur(3px);
}

body.template-block-builder .form-card,
body.template-drug-glossary .form-card,
body.template-page .form-card,
.editor-styles-wrapper .form-card {
	position: relative;
	z-index: 1;
	background: var(--ms-linen, #f8f7f0) !important;
	border-radius: 14px;
	padding: 42px 46px 38px;
	width: 100%;
	max-width: 500px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

body.template-block-builder .form-card-header,
body.template-drug-glossary .form-card-header,
body.template-page .form-card-header,
.editor-styles-wrapper .form-card-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 26px;
	gap: 12px;
}

body.template-block-builder .form-card-title,
body.template-drug-glossary .form-card-title,
body.template-page .form-card-title,
.editor-styles-wrapper .form-card-title {
	font-family: var(--font-heading);
	font-size: 21px;
	font-weight: 400;
	color: var(--ms-green, #284227) !important;
	line-height: 1.3;
}

body.template-block-builder .form-close-btn,
body.template-drug-glossary .form-close-btn,
body.template-page .form-close-btn,
.editor-styles-wrapper .form-close-btn {
	background: none;
	border: none;
	cursor: pointer;
	color: #bbb;
	padding: 2px;
	flex-shrink: 0;
	transition: color 180ms;
}

body.template-block-builder .form-close-btn:hover,
body.template-drug-glossary .form-close-btn:hover,
body.template-page .form-close-btn:hover,
.editor-styles-wrapper .form-close-btn:hover {
	color: var(--ms-green, #284227) !important;
}

body.template-block-builder .form-close-btn svg,
body.template-drug-glossary .form-close-btn svg,
body.template-page .form-close-btn svg,
.editor-styles-wrapper .form-close-btn svg {
	width: 20px;
	height: 20px;
	display: block;
}

body.template-block-builder .form-who-label,
body.template-drug-glossary .form-who-label,
body.template-page .form-who-label,
.editor-styles-wrapper .form-who-label {
	font-family: var(--font-body);
	font-size: 10px;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--ms-gold, #a08c5b) !important;
	margin: 0 0 10px;
}

body.template-block-builder .form-who-chips,
body.template-drug-glossary .form-who-chips,
body.template-page .form-who-chips,
.editor-styles-wrapper .form-who-chips {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 26px;
}

body.template-block-builder .who-chip,
body.template-drug-glossary .who-chip,
body.template-page .who-chip,
.editor-styles-wrapper .who-chip {
	padding: 7px 16px;
	border-radius: 100px;
	border: 1.5px solid rgba(40,66,39,0.2) !important;
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 400;
	color: var(--ms-green, #284227) !important;
	cursor: pointer;
	background: transparent !important;
	transition: background 220ms, border-color 220ms, color 220ms;
	letter-spacing: 0.02em;
}

body.template-block-builder .who-chip.active,
body.template-block-builder .who-chip:hover,
body.template-drug-glossary .who-chip.active,
body.template-drug-glossary .who-chip:hover,
body.template-page .who-chip:hover,
.editor-styles-wrapper .who-chip.active,
.editor-styles-wrapper .who-chip:hover {
	background: var(--ms-green, #284227) !important;
	border-color: var(--ms-green, #284227) !important;
	color: var(--ms-linen, #f8f7f0) !important;
}

body.template-block-builder .form-row,
body.template-drug-glossary .form-row,
body.template-page .form-row,
.editor-styles-wrapper .form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 11px;
	margin-bottom: 11px;
}

body.template-block-builder .form-field,
body.template-drug-glossary .form-field,
body.template-page .form-field,
.editor-styles-wrapper .form-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

body.template-block-builder .form-field label,
body.template-drug-glossary .form-field label,
body.template-page .form-field label,
.editor-styles-wrapper .form-field label {
	font-family: var(--font-body);
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #9a9080 !important;
}

body.template-block-builder .form-field input,
body.template-block-builder .form-field select,
body.template-drug-glossary .form-field input,
body.template-drug-glossary .form-field select,
body.template-page .form-field select,
.editor-styles-wrapper .form-field input,
.editor-styles-wrapper .form-field select {
	background: white !important;
	border: 1px solid #dddad3 !important;
	border-radius: 7px;
	padding: 10px 13px;
	font-family: var(--font-body);
	font-weight: 300;
	font-size: 13px;
	color: var(--ms-green, #284227) !important;
	outline: none;
	transition: border-color 180ms;
	-webkit-appearance: none;
}

body.template-block-builder .form-field input:focus,
body.template-block-builder .form-field select:focus,
body.template-drug-glossary .form-field input:focus,
body.template-drug-glossary .form-field select:focus,
body.template-page .form-field select:focus,
.editor-styles-wrapper .form-field input:focus,
.editor-styles-wrapper .form-field select:focus {
	border-color: var(--ms-green, #284227) !important;
}

body.template-block-builder .form-field input::placeholder,
body.template-drug-glossary .form-field input::placeholder,
body.template-page .form-field input::placeholder,
.editor-styles-wrapper .form-field input::placeholder {
	color: #c0bdb6;
}

body.template-block-builder .form-submit,
body.template-drug-glossary .form-submit,
body.template-page .form-submit,
.editor-styles-wrapper .form-submit {
	width: 100%;
	margin-top: 18px;
	padding: 14px;
	background: var(--ms-green, #284227) !important;
	color: var(--ms-linen, #f8f7f0) !important;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 11.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	border: none;
	border-radius: 100px;
	cursor: pointer;
	transition: background 260ms var(--ms-ease, ease);
}

body.template-block-builder .form-submit:hover,
body.template-drug-glossary .form-submit:hover,
body.template-page .form-submit:hover,
.editor-styles-wrapper .form-submit:hover {
	background: var(--ms-green-deep, #1e3120) !important;
}

body.template-block-builder .form-disclaimer,
body.template-drug-glossary .form-disclaimer,
body.template-page .form-disclaimer,
.editor-styles-wrapper .form-disclaimer {
	margin-top: 12px;
	font-family: var(--font-body);
	font-size: 10.5px;
	color: #b0a898;
	text-align: center;
	line-height: 1.5;
	letter-spacing: 0.02em;
}

@media (max-width: 540px) {
	body.template-block-builder .form-modal,
	body.template-drug-glossary .form-modal,
	body.template-page .form-modal,
	.editor-styles-wrapper .form-modal {
		padding: 20px;
	}
	body.template-block-builder .form-card,
	body.template-drug-glossary .form-card,
	body.template-page .form-card,
	.editor-styles-wrapper .form-card {
		padding: 26px 22px 22px;
	}
	body.template-block-builder .form-row,
	body.template-drug-glossary .form-row,
	body.template-page .form-row,
	.editor-styles-wrapper .form-row {
		grid-template-columns: 1fr;
	}
}

