/*
 * 247 Fitness: einheitliches Styling fuer alle Formidable-Formulare.
 * Ergaenzt die Formular-Regeln aus themes/247fitness/dist/main.css,
 * die nur einseitige Formulare mit Feldklasse "submit-button" abdecken.
 */

/* Einheitliche Feld-Schriftgroesse: Eingabe, Platzhalter, Dropdown, Optionen */
.frm_forms.frm_style_formidable-style.with_frm_style {
	--247-field-fs: 16px;
}

.frm_forms.frm_style_formidable-style.with_frm_style .form-field input,
.frm_forms.frm_style_formidable-style.with_frm_style .form-field textarea,
.frm_forms.frm_style_formidable-style.with_frm_style .form-field select,
.frm_forms.frm_style_formidable-style.with_frm_style .form-field input::placeholder,
.frm_forms.frm_style_formidable-style.with_frm_style .form-field textarea::placeholder {
	font-size: var(--247-field-fs);
	font-family: var(--font-default);
	letter-spacing: var(--ls-default);
}

/* Buttons: Weiter, Absenden, Zurueck */
.frm_forms.frm_style_formidable-style.with_frm_style .frm_submit {
	margin-bottom: 0 !important;
}

.frm_forms.frm_style_formidable-style.with_frm_style .frm_submit button,
.frm_forms.frm_style_formidable-style.with_frm_style .frm_submit input[type="submit"],
.frm_forms.frm_style_formidable-style.with_frm_style .frm_submit input[type="button"] {
	font-family: var(--font-default);
	font-size: var(--fs-400);
	font-weight: 500;
	line-height: 1.6;
	text-align: center;
	background: var(--color-purple);
	color: var(--color-white);
	padding: 10px 24px;
	border: none;
	border-radius: 50px;
	box-shadow: none;
	outline: none;
	cursor: pointer;
	width: 100%;
	margin: 0 !important;
	transition: background-color var(--transition-default);
}

.frm_forms.frm_style_formidable-style.with_frm_style .frm_submit button:hover,
.frm_forms.frm_style_formidable-style.with_frm_style .frm_submit button:focus,
.frm_forms.frm_style_formidable-style.with_frm_style .frm_submit button:active,
.frm_forms.frm_style_formidable-style.with_frm_style .frm_submit input[type="submit"]:hover,
.frm_forms.frm_style_formidable-style.with_frm_style .frm_submit input[type="button"]:hover {
	background: var(--color-purple--hover);
	color: var(--color-white);
	border: none;
}

/* Zurueck-Button als Outline-Variante */
.frm_forms.frm_style_formidable-style.with_frm_style .frm_submit .frm_prev_page {
	background: transparent;
	color: var(--color-purple);
	border: 1px solid var(--color-purple);
}

.frm_forms.frm_style_formidable-style.with_frm_style .frm_submit .frm_prev_page:hover {
	background: var(--color-purple);
	color: var(--color-white);
	border: 1px solid var(--color-purple);
}

/* Dropdowns wie Input-Felder (gleiche Hoehe, Platz fuer Pfeil) */
.frm_forms.frm_style_formidable-style.with_frm_style .form-field select {
	width: 100%;
	height: calc(var(--247-field-fs) * 1.6 + 18px);
	border-radius: 8px;
	padding: 8px 40px 8px 16px;
	background-color: var(--color-white);
	font-weight: 400;
	line-height: 1.6;
	color: var(--color-black);
	text-overflow: ellipsis;
	border: 1px solid #d3d3d3 !important;
	box-shadow: none;
	outline: none;
}

.frm_forms.frm_style_formidable-style.with_frm_style .form-field select:focus {
	border: 1px solid var(--color-purple) !important;
	box-shadow: none !important;
}

/* Radio-Buttons und Checkboxen von der Input-Regel des Themes ausnehmen */
.frm_forms.frm_style_formidable-style.with_frm_style .form-field input[type="radio"],
.frm_forms.frm_style_formidable-style.with_frm_style .form-field input[type="checkbox"] {
	width: 18px;
	height: 18px;
	min-width: 18px;
	padding: 0;
	margin: 0 8px 0 0;
	vertical-align: middle;
	accent-color: var(--color-purple);
	border-radius: 50%;
}

.frm_forms.frm_style_formidable-style.with_frm_style .form-field input[type="checkbox"] {
	border-radius: 4px;
}

.frm_forms.frm_style_formidable-style.with_frm_style .form-field input[type="radio"]:checked,
.frm_forms.frm_style_formidable-style.with_frm_style .form-field input[type="checkbox"]:checked {
	border-color: var(--color-purple) !important;
}

.frm_forms.frm_style_formidable-style.with_frm_style .frm_radio label,
.frm_forms.frm_style_formidable-style.with_frm_style .frm_checkbox label {
	font-size: var(--247-field-fs);
	line-height: 1.6;
	color: var(--color-black);
	cursor: pointer;
}
