/* Mended Mind contact form. Colors and type follow MMC_Website_Design_System.md. */
.mmcf {
	--mmcf-pine: #2B4A45;
	--mmcf-pine-hover: #1F3834;
	--mmcf-teal: #4FA8A0;
	--mmcf-teal-text: #2F7C75;
	--mmcf-ivory: #FDFBF7;
	--mmcf-sand: #F3ECE0;
	--mmcf-sand-ring: #E8DCC8;
	--mmcf-line: #C9C1B2;
	--mmcf-ring: #9BAAA7;
	--mmcf-error: #A8321F;
	max-width: 960px;
	margin: 0 auto;
	font-family: Karla, Helvetica, Arial, sans-serif;
	font-size: 18px;
	line-height: 1.6;
	color: var(--mmcf-pine);
}
.mmcf [hidden] { display: none !important; }
.mmcf-route-hide { display: none !important; }

.mmcf-form { margin: 0; }
.mmcf-field { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.mmcf fieldset.mmcf-field { margin-bottom: 26px; }
.mmcf label,
.mmcf legend {
	display: block;
	margin: 0 0 6px;
	padding: 0;
	font-family: Jost, Karla, sans-serif;
	font-weight: 500;
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mmcf-pine);
}
.mmcf-req { color: var(--mmcf-teal-text); margin-left: 2px; }

.mmcf input[type=text],
.mmcf input[type=email],
.mmcf input[type=tel],
.mmcf select,
.mmcf textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 11px 14px;
	font: inherit;
	font-size: 17px;
	color: var(--mmcf-pine);
	background: #fff;
	border: 1px solid var(--mmcf-line);
	border-radius: 3px;
	box-shadow: none;
	transition: border-color .15s, box-shadow .15s;
}
.mmcf select { appearance: auto; height: auto; }
.mmcf textarea { min-height: 130px; resize: vertical; }
.mmcf input:focus,
.mmcf select:focus,
.mmcf textarea:focus {
	outline: none;
	border-color: var(--mmcf-teal);
	box-shadow: 0 0 0 3px rgba(79, 168, 160, .25);
}
.mmcf .mmcf-age input { max-width: 140px; }

/* Radio choices */
.mmcf-choices { display: grid; gap: 8px; }
.mmcf label.mmcf-choice {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	padding: 12px 16px;
	font-family: Karla, Helvetica, Arial, sans-serif;
	font-size: 17px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	background: #fff;
	border: 1px solid var(--mmcf-line);
	border-radius: 3px;
	cursor: pointer;
	transition: border-color .15s, background-color .15s;
}
.mmcf label.mmcf-choice:hover { border-color: var(--mmcf-teal); }
.mmcf label.mmcf-choice:has(input:checked) { border-color: var(--mmcf-pine); background: var(--mmcf-sand); }
.mmcf .mmcf-choice input[type=radio] {
	appearance: none;
	-webkit-appearance: none;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 3px 0 0;
	border: 2px solid var(--mmcf-ring);
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
}
.mmcf .mmcf-choice input[type=radio]:hover,
.mmcf .mmcf-choice input[type=radio]:focus-visible { border-color: var(--mmcf-teal); outline: none; box-shadow: 0 0 0 3px rgba(79, 168, 160, .25); }
.mmcf .mmcf-choice input[type=radio]:checked { border-color: var(--mmcf-pine); background: var(--mmcf-pine); box-shadow: inset 0 0 0 4px #fff; }

.mmcf-help { margin: 0 0 8px; font-size: 15px; line-height: 1.5; color: #4A5F5B; }
.mmcf-choice-help { margin: -2px 0 4px 48px; }
.mmcf-count { margin: 6px 0 0; }
.mmcf-count.is-over { color: var(--mmcf-error); font-weight: 700; }

/* Two across on wider screens */
.mmcf-row { display: grid; grid-template-columns: 1fr; column-gap: 20px; }
@media (min-width: 640px) {
	.mmcf-row { grid-template-columns: 1fr 1fr; }
}
.mmcf-child-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); column-gap: 20px; }
.mmcf-child { position: relative; }

/* Panels and notes */
.mmcf-panel,
.mmcf-note,
.mmcf-guardian,
.mmcf-paused,
.mmcf-success {
	margin: 0 0 24px;
	padding: 20px 22px;
	background: var(--mmcf-sand);
	border-left: 4px solid var(--mmcf-teal);
	border-radius: 3px;
}
.mmcf-panel p,
.mmcf-note p,
.mmcf-paused p,
.mmcf-success p { margin: 0 0 12px; }
.mmcf-panel p:last-child,
.mmcf-note p:last-child,
.mmcf-paused p:last-child,
.mmcf-success p:last-child { margin-bottom: 0; }
.mmcf-panel-title,
.mmcf-success-title { font-family: Fraunces, Georgia, serif; font-size: 22px; line-height: 1.3; }
.mmcf-guardian { padding-bottom: 2px; }
.mmcf-guardian-intro { margin: 0 0 16px; }
.mmcf-success:focus { outline: none; }

/* Buttons */
.mmcf .mmcf-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 26px;
	font-family: Jost, Karla, sans-serif;
	font-weight: 500;
	font-size: 15px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--mmcf-ivory);
	background: var(--mmcf-pine);
	border: 0;
	border-radius: 3px;
	cursor: pointer;
	transition: background-color .15s;
}
.mmcf .mmcf-button:hover,
.mmcf .mmcf-button:focus-visible { background: var(--mmcf-pine-hover); color: var(--mmcf-ivory); }
.mmcf .mmcf-button:focus-visible { outline: 3px solid var(--mmcf-teal); outline-offset: 2px; }
.mmcf .mmcf-button[disabled] { opacity: .7; cursor: wait; }
.mmcf-arrow { display: inline-block; transition: transform .2s; }
.mmcf .mmcf-button:hover .mmcf-arrow { transform: translateX(4px); }

.mmcf .mmcf-link {
	padding: 0;
	font: inherit;
	font-size: 16px;
	color: var(--mmcf-pine);
	background: none;
	border: 0;
	text-decoration: underline;
	text-decoration-color: var(--mmcf-teal);
	text-underline-offset: 3px;
	cursor: pointer;
}
.mmcf .mmcf-link:hover { color: var(--mmcf-pine-hover); text-decoration-thickness: 2px; }
.mmcf-add-child { margin: -8px 0 22px; }
.mmcf-remove-child { margin-top: 6px; font-size: 14px !important; }

/* Errors and status */
.mmcf-error { margin: 6px 0 0; font-size: 15px; font-weight: 700; color: var(--mmcf-error); }
.mmcf .has-error input,
.mmcf .has-error select,
.mmcf .has-error textarea,
.mmcf .has-error label.mmcf-choice { border-color: var(--mmcf-error); }
.mmcf-status { margin: 0 0 16px; padding: 12px 16px; font-weight: 700; color: var(--mmcf-error); background: #FBEDEA; border-radius: 3px; }

.mmcf-turnstile { margin: 4px 0 18px; min-height: 0; }
.mmcf-submit-row { margin: 0; }

/* Honeypot: off-screen for people, still present for bots */
.mmcf-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
