
.form__field 	{
	display: flex;
	padding: 0 .5em;
	margin: 1px;
	background-color: unset;
}

.form__field:has(.width--full) {
	--label--width: 100%;
	--label--text-align: left;
	display: block;
}



.form__field:has(textarea) .label {
	align-items: flex-start;
	display: unset;
}

.form__field__label 	{
	background: hsl(0, 0%, 40%);
	color: white;

	text-align: var(--label--text-align, right);
	width: var(--label--width, 10em);

	padding: .65em .5em;
	font-weight: 600;
	justify-content: end;
	align-items: center;
	position: relative;
}

/* Highlight every other item of VISIBLE fields */
body:not(.html2pdf) .section .form__field:nth-child(odd of :not(.hide)) .form__field__label {
	background-image: linear-gradient(rgb(0 0 0 / 35%) 0 0);
}

/*Form information fields will be WHITE*/
.form__field__information 	{
	background-color: white;
	color: black;

	word-wrap: break-word;
	white-space: normal;

	flex: 1;
	position: relative;

	padding: 3px 8px;

	min-height: var(--min-height, 30px);
	height: auto;

	align-content: center;
}


.form__field__information:has(textarea) {
	height: fit-content;
}

.form__field__information :is(input, select, textarea)
,.form__field__information .chosen-container {
	background-color: white;
	color: black;
 }


.form__field__information :is(input:disabled, select:disabled, textarea:disabled)
,.form__field__information .chosen-disabled {
	background-color: var(--color-disabled);
	color: black;
 }

.form__field__information.disabled {
	background-color: var(--color-disabled);
	color: black;
	border: thin solid grey;
 }


.form__field__information:has(input:disabled)
,.form__field__information.disabled-input {
	background-color: var(--color-disabled);
	border: thin solid white;
}

//.disabled-input .form__field__information
//,.section:has(input, select, textarea) .form__field__information:not(.color-changing):not(:has(input, select, textarea), .file_drop){
//	background-color: var(--color-disabled);
//	border: thin solid white;
//}

/* Make it look like there is an input disabled in the field - needs to have INPUT in the field with section */
.disabled-input .form__field__information:not(:has(input, select, textarea))
,.section:has(input, select, textarea) .form__field:not(.color-changing) .form__field__information:not(:has(input, select, textarea), .file_drop){
	padding: 8px 15px; /* input + form__field__information padding */
}

/* Make the form seem like it is disabled without disabling the input so that it will SUBMIT */
.disabled-input :is(input, select, textarea) {
	background-color: var(--color-disabled);
	pointer-events: none;
}

.disabled-input .form__field__information {
	border-left: thin solid white;
	padding-left: 13px;
}


.form__field__information :is(input, select, textarea) 	{
	border: none;
	width: 100%;
	height: 100%;
}

.form__field__information :is(input, select, textarea)
	:not(.chosen-search-input)
	:not([type=checkbox])
	:not([type=radio]) 	{
	min-width: 10em;
}

.form__field__information:has(.character-count) :is(input, select, textarea) {
	height: unset;
}



.form__buttons-wrapper 	{
	display: flex;
	flex-direction: row;
	margin-top: 2em;
	justify-content: space-evenly;
}

.form__buttons-wrapper .btn 	{
	--_width: var(--width, 200px);

	font-size: 1.25rem;
	width: var(--_width);
	min-width: auto;
	max-width: unset;
	padding: 1em 2em;
}




.form__toggle__switch:has(input:disabled) {
	opacity: 0.75;
}

.form__toggle__switch:not(:has(input:disabled)) {
	cursor: pointer;
	transition: all 0.3s ease;
}

.form__toggle__track {
	width: 100px;
	height: 32px;
	background: #e5e7eb;
	border-radius: 16px;
	position: relative;
	transition: all 0.3s ease;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form__toggle__button {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: white;
	border-radius: 50%;
	top: 2px;
	left: 2px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transition: transform 0.3s ease;
	font-size: 14px;
	font-weight: bold;
}

.form__toggle__button::before {
	content: "X"; /* default state */
}


.toggle-on .form__toggle__track {
	background: linear-gradient(135deg, hsl(121, 100%, 18%), hsl(128, 85%, 6%));
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 92, 1, 0.3);
}

.toggle-on .form__toggle__button {
	transform: translateX(68px);
	color: hsl(121, 100%, 18%);
}


.toggle-on .form__toggle__button::before {
	content: "✓";
	font-size: 20px;
}

.form__field:has([required]) {
	border: 2px solid hsl(51, 100%, 44%);
	margin-block: 3px;
	margin-inline: 6px;
	padding: 0px;
}

.form__field:has([required]) .form__field__label {
	padding-right: 15px;
}


.form__field:has([required]) .form__field__label::after {
	content: " *";
	color: hsl(51, 100%, 44%);
	font-weight: bold;
	top: 6px;
	position: absolute;
	right: 3px;
	font-size: 20px;
}

.form__field .warning {
	border: 2px solid red;
}

.form__field:has(.upload-elements) .form__field__label {
	align-content: center;
	height: 70px;
}


.form__field__information:has(.radio-and-label) 	{
	display: flex;
	flex-direction: row;
}

.form__field > div:has(.radio-and-label) {
	justify-content: unset;
}

.form__field .radio-and-label {
	white-space: nowrap;
	display: flex;
	padding: .5em .5em .5em 0;
	align-items: center;
}


.form__field:has(.width--100p) {
	--label--width: 100%;
	--label--text-align: left;
	display: block;
}


/*
	 ,,                                                                 ,,
	 db                       mm                                 mm     db
	                          MM                                 MM
	7MM `7MMpMMMb.  ,pP"Ybd mmMMmm `7Mb,od8 `7MM  `7MM  ,p6"bo mmMMmm `7MM  ,pW"Wq.`7MMpMMMb.  ,pP"Ybd
	 MM   MM    MM  8I   `"   MM     MM' "'   MM    MM 6M'  OO   MM     MM 6W'   `Wb MM    MM  8I   `"
	 MM   MM    MM  `YMMMa.   MM     MM       MM    MM 8M        MM     MM 8M     M8 MM    MM  `YMMMa.
	 MM   MM    MM  L.   I8   MM     MM       MM    MM YM.    ,  MM     MM YA.   ,A9 MM    MM  L.   I8
	JMML.JMML  JMML.M9mmmP'   `Mbmo.JMML.     `Mbod"YML.YMbmd'   `Mbmo.JMML.`Ybmd9'.JMML  JMML.M9mmmP'
*/


.form__instructions {
	margin: var(--section--margin, 3px 12px 10px);

	padding: 1em;
	background: white;
	border: thin solid black;
	color: black;
}

.form__instructions__h1 {
	font-size: var(--base-font-size);
	background: hsl(212, 72%, 59%);
	color: white;
	text-align: left;
	margin: -1em;
	margin-bottom: .5em;
	padding: .5em .75em;
}

.form__instructions__ul {
	margin-left: 1em;
	margin-block: 10px;
}


.form__instructions p {
	margin-bottom: 10px;
}
