/* MSUAF brand styling for Formidable Forms. */
.frm_forms {
	--msuaf-navy: #0f2e6b;
	--msuaf-gold: #fdbd31;
	--msuaf-blue: #084f8b;
	--msuaf-brown: #8b724e;
	--msuaf-beige: #e3d8c7;
	--msuaf-charcoal: #2d2e2e;
	--msuaf-light-gray: #f1f1f1;
	--msuaf-pale-blue: #b3cdd1;
	--msuaf-pale-gold: #fed895;
}

.frm_forms.with_frm_style {
	color: var(--msuaf-charcoal);
	font-family: "articulat-cf", Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
}

.frm_forms.with_frm_style .frm_form_title {
	margin: 0 0 14px;
	color: var(--msuaf-brown);
	font-family: "sherman", Impact, sans-serif;
	font-size: 48px;
	font-weight: 400;
	line-height: 1;
}

.frm_forms.with_frm_style .frm_form_title + .frm_description {
	margin-bottom: 24px;
	font-family: "sole-serif", Georgia, serif;
	font-size: 24px;
	line-height: 1.35;
}

.frm_forms.with_frm_style h2,
.frm_forms.with_frm_style h3,
.frm_forms.with_frm_style h4,
.frm_forms.with_frm_style h5,
.frm_forms.with_frm_style h6 {
	color: var(--msuaf-navy);
	font-family: "articulat-cf", Arial, sans-serif;
	font-weight: 700;
	line-height: 1.2;
}

.frm_forms.with_frm_style h2 { font-size: 28px; }
.frm_forms.with_frm_style h3 { font-size: 24px; }
.frm_forms.with_frm_style h4 { font-size: 20px; }
.frm_forms.with_frm_style h5 { font-size: 18px; }
.frm_forms.with_frm_style h6 { font-size: 16px; }

.frm_forms.with_frm_style .frm_form_field {
	margin-bottom: 22px;
}

.frm_forms.with_frm_style .frm_primary_label,
.frm_forms.with_frm_style .frm_section_heading h3 {
	color: var(--msuaf-navy);
	font-weight: 700;
}

.frm_forms.with_frm_style .frm_primary_label {
	display: block;
	margin-bottom: 5px;
	font-size: 16px;
	line-height: 1.4;
}

.frm_forms.with_frm_style .frm_required {
	color: var(--msuaf-brown);
}

.frm_forms.with_frm_style .frm_description {
	margin: 0 0 9px;
	color: var(--msuaf-charcoal);
	font-size: 16px;
	line-height: 1.5;
}

/* Formidable's preset uses a high-specificity description size. */
.frm_forms.frm_style_formidable-style.with_frm_style .frm-show-form .frm_form_field .frm_description,
.frm_forms.frm_style_formidable-style.with_frm_style .frm-show-form .frm_form_field .msuaf-frm-description-above {
	font-size: 16px !important;
	line-height: 1.5;
}

.frm_forms.with_frm_style input[type="text"],
.frm_forms.with_frm_style input[type="email"],
.frm_forms.with_frm_style input[type="url"],
.frm_forms.with_frm_style input[type="tel"],
.frm_forms.with_frm_style input[type="number"],
.frm_forms.with_frm_style input[type="password"],
.frm_forms.with_frm_style input[type="search"],
.frm_forms.with_frm_style input[type="date"],
.frm_forms.with_frm_style input[type="time"],
.frm_forms.with_frm_style select,
.frm_forms.with_frm_style textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: 11px 13px;
	border: 2px solid var(--msuaf-pale-blue);
	border-radius: 3px;
	color: var(--msuaf-charcoal);
	background: #fff;
	font: inherit;
	line-height: 1.4;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.frm_forms.with_frm_style textarea {
	min-height: 140px;
	resize: vertical;
}

/* Keep Formidable's hour, minute, and meridiem selects compact. */
.frm_forms.with_frm_style .frm_time_wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.frm_forms.with_frm_style .frm_time_wrap > span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.frm_forms.with_frm_style .frm_time_wrap select.frm_time_select {
	width: auto;
	min-width: 92px;
	flex: 0 0 auto;
}

.frm_forms.with_frm_style .frm_time_sep {
	color: var(--msuaf-charcoal);
	font-size: 18px;
	font-weight: 700;
}

.frm_forms.with_frm_style input::placeholder,
.frm_forms.with_frm_style textarea::placeholder {
	color: #6a6b6b;
	opacity: 1;
}

.frm_forms.with_frm_style input[type="text"]:focus,
.frm_forms.with_frm_style input[type="email"]:focus,
.frm_forms.with_frm_style input[type="url"]:focus,
.frm_forms.with_frm_style input[type="tel"]:focus,
.frm_forms.with_frm_style input[type="number"]:focus,
.frm_forms.with_frm_style input[type="password"]:focus,
.frm_forms.with_frm_style input[type="search"]:focus,
.frm_forms.with_frm_style input[type="date"]:focus,
.frm_forms.with_frm_style input[type="time"]:focus,
.frm_forms.with_frm_style select:focus,
.frm_forms.with_frm_style textarea:focus {
	border-color: var(--msuaf-blue);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(8, 79, 139, .2);
}

.frm_forms.with_frm_style .frm_checkbox label,
.frm_forms.with_frm_style .frm_radio label {
	color: var(--msuaf-charcoal);
	font-size: 16px;
	line-height: 1.5;
}

.frm_forms.with_frm_style input[type="checkbox"],
.frm_forms.with_frm_style input[type="radio"] {
	accent-color: var(--msuaf-navy);
}

.frm_forms.with_frm_style .frm_submit button,
.frm_forms.with_frm_style .frm_button_submit {
	min-height: 48px;
	padding: 11px 24px;
	border: 2px solid var(--msuaf-gold);
	border-radius: 3px;
	color: var(--msuaf-navy);
	background: var(--msuaf-gold);
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}

.frm_forms.with_frm_style .frm_submit button:hover,
.frm_forms.with_frm_style .frm_button_submit:hover {
	border-color: var(--msuaf-navy);
	color: #fff;
	background: var(--msuaf-navy);
}

.frm_forms.with_frm_style .frm_submit button:focus-visible,
.frm_forms.with_frm_style .frm_button_submit:focus-visible {
	outline: 3px solid var(--msuaf-blue);
	outline-offset: 3px;
}

.frm_forms.with_frm_style .frm_error {
	margin-top: 6px;
	color: #7a321f;
	font-size: 14px;
	font-weight: 600;
}

.frm_forms.with_frm_style .frm_error_style,
.frm_forms.with_frm_style .frm_message {
	margin-bottom: 20px;
	padding: 14px 16px;
	border: 0;
	border-left: 5px solid var(--msuaf-brown);
	border-radius: 0;
	color: var(--msuaf-charcoal);
	background: var(--msuaf-pale-gold);
}

.frm_forms.with_frm_style .frm_message {
	border-left-color: var(--msuaf-blue);
	background: var(--msuaf-pale-blue);
}

.frm_forms.with_frm_style .frm_section_heading {
	margin: 30px 0 18px;
	padding: 18px 0 0;
	border-top: 4px solid var(--msuaf-gold);
	border-bottom: 0;
}

/* Remove Formidable's border from the heading itself. */
.frm_forms.frm_style_formidable-style.with_frm_style .frm-show-form .frm_section_heading h3[class*="frm_pos_"] {
	padding-bottom: 0;
	border: 0;
}

.frm_forms.with_frm_style .frm_dropzone {
	border-color: var(--msuaf-pale-blue);
	background: var(--msuaf-light-gray);
}

.frm_forms.with_frm_style .frm_section_heading:has(> .frm_repeat_sec) > h3.frm_section_spacing {
	margin-bottom: 16px;
	padding-bottom: 0;
}

.frm_forms.with_frm_style .frm_repeat_sec > .frm_repeat_buttons:not(.frm_hidden) {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.frm_forms.with_frm_style .frm_repeat_buttons a.frm_button:is(.frm_add_form_row, .frm_remove_form_row) {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	margin: 0;
	min-height: 44px;
	padding: 8px 16px;
	border: 2px solid var(--msuaf-navy);
	border-radius: 3px;
	box-shadow: none;
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	background: var(--msuaf-navy);
	color: #fff;
}

.frm_forms.with_frm_style .frm_repeat_buttons a.frm_button.frm_remove_form_row {
	background: transparent;
	color: var(--msuaf-navy);
}

.frm_forms.with_frm_style .frm_repeat_buttons a.frm_button:is(.frm_add_form_row, .frm_remove_form_row):is(:hover, :focus-visible) {
	background: var(--msuaf-gold);
	color: var(--msuaf-navy);
}

.frm_forms.with_frm_style .frm_repeat_buttons a.frm_button:focus-visible {
	outline: 2px solid var(--msuaf-navy);
	outline-offset: 3px;
}

.frm_forms.with_frm_style .frm_repeat_buttons a.frm_button:is(.frm_add_form_row, .frm_remove_form_row) svg {
	color: inherit !important;
	fill: currentColor !important;
}

.frm_forms.with_frm_style .frm_repeat_buttons a.frm_button:is(.frm_add_form_row, .frm_remove_form_row) svg path {
	fill: currentColor !important;
}

@media (min-width: 768px) {
	/* Reserve one sublabel line for an email field beside a split name. */
	.frm_forms.with_frm_style .frm_repeat_sec > .frm6:has(.frm_combo_inputs_container[data-name-layout="first_last"] .msuaf-frm-description-above) + .frm6 > .frm_primary_label + input[type="email"] {
		margin-top: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.frm_forms.with_frm_style input,
	.frm_forms.with_frm_style select,
	.frm_forms.with_frm_style textarea,
	.frm_forms.with_frm_style button {
		transition: none;
	}
}

@media (max-width: 1024px) {
	.frm_forms.with_frm_style .frm_form_title { font-size: 44px; }
	.frm_forms.with_frm_style .frm_form_title + .frm_description { font-size: 20px; }
}

@media (max-width: 767px) {
	.frm_forms.with_frm_style .frm_form_title { font-size: 40px; }
}
