@layer main {
/* Forms
----------------------*/

.wpcf7 {
	/* Global */
	--gapBetweenFields: 2rem;
	--font-family: var(--textFont);
	--textColor: var(--lace);
	--errorColor: #E26F6F;
	color: var(--textColor);
	/* Label */
	--labelSize: 1.6rem;
	--labelWeight: 400;
	--labelLineHeight: 1.5em;
	--labelLetterspacing: 0;
	--labelColor: var(--brown);
	/* Inputs */
	--fieldSize: 1.6rem;
	--fieldWeight: 400;
	--fieldLineHeight: 1.5em;
	--fieldLetterspacing: 0;
	--fieldColor: var(--canvas-weave);
	--fieldbackgroundColor: var(--bodyBackground);
	--fieldBorderColor: var(--lace);
	--fieldPadding: .8rem;
	--fieldBorderRadius: 0;
	/* Icons */
	--fieldSelectIcon: url('../../img/global/forms/icon-dropdown.svg');
	--fieldUncheckedIcon: url('../../img/global/forms/icon-unchecked.svg');
	--fieldCheckedIcon: url('../../img/global/forms/icon-checked.svg');
	--fieldAlertIcon: url('../../img/global/forms/icon-alert.svg');
	/* Submit */
	--submitPadding: 1rem 2rem;
	--submitBackgroundColor: var(--brown);
	--submitBorderColor: var(--brown);
	--submitColor: var(--cream);
	--submitHoverBackgroundColor: var(--cream);
	--submitHoverBorderColor: var(--brown);
	--submitHoverColor: var(--brown);
}

.wpcf7 form {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gapBetweenFields);
}

.wpcf7 form :is(label, span) {
	display: block;
	width: 100%;
	font-family: var(--font-family);
}

.wpcf7 form > label {
	font-family: var(--font-family);
	font-size: var(--labelSize);
	font-weight: var(--labelWeight);
	line-height: var(--labelLineHeight);
	letter-spacing: var(--labelLetterspacing);
	color: var(--labelColor);
}

.wpcf7 .wpcf7-list-item {
	margin: 0!important;
}

.wpcf7 input:not([type="submit"], [type="checkbox"]),
.wpcf7 select,
.wpcf7 textarea {
	display: block;
	width: 100%;
	font-family: var(--font-family);
	font-size: var(--fieldSize);
	font-weight: var(--fieldWeight);
	line-height: var(--fieldLineHeight);
	letter-spacing: var(--fieldLetterspacing);
	color: var(--fieldColor);
	border: 1px solid var(--fieldBorderColor);
	background-color: var(--fieldBackgroundColor);
	border-radius: var(--fieldBorderRadius);
	padding: var(--fieldPadding);
}
.wpcf7 input:not([type="submit"], [type="checkbox"])::placeholder,
.wpcf7 select::placeholder,
.wpcf7 textarea::placeholder { color: var(--fieldColor); }

.wpcf7 input:-webkit-autofill,
.wpcf7 input:-webkit-autofill:hover,
.wpcf7 input:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--fieldColor);
	-webkit-box-shadow: 0 0 0px 1000px var(--fieldBackgroundColor) inset;
	transition: background-color 5000s ease-in-out 0s;
}


/* Textarea */
.wpcf7 textarea {
	resize: none;
	height: 15rem;
}

/* Select */
.wpcf7 select {
    background: no-repeat var(--fieldSelectIcon) right center;
	background-size: 2.4rem;
}

/* Acceptance */
.wpcf7 .wpcf7-acceptance label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.wpcf7 .wpcf7-acceptance .wpcf7-list-item-label {
	font-family: var(--font-family);
	font-size: var(--labelSize);
	font-weight: var(--labelWeight);
	line-height: var(--labelLineHeight);
	letter-spacing: var(--labelLetterspacing);
	color: var(--labelColor);
}
.wpcf7 .wpcf7-acceptance .wpcf7-list-item-label :is(a, #important) {
	text-decoration: underline!important
}
.wpcf7 .wpcf7-acceptance input[type="checkbox"] {
	display: inline-block;
	flex: 0 1 2.4rem;
	width: 2.4rem;
	height: 2.4rem;
	background: no-repeat var(--fieldUncheckedIcon) center center;
	background-size: contain;
}
.wpcf7 .wpcf7-acceptance input[type="checkbox"]:checked {
	background: no-repeat var(--fieldCheckedIcon) center center;
}

/* Error messages */
.wpcf7 .wpcf7-not-valid-tip {
	margin-top: .6rem;
	font-size: 1.2rem!important;
	line-height: 1.53em;
	color: var(--errorColor)!important;
	padding-left: 2rem;
	position: relative;
}
.wpcf7 .wpcf7-not-valid-tip::before {
	content: '';
	position: absolute;
	left: 0;
	width: 1.6rem;
	height: 1.6rem;
	background: no-repeat var(--fieldAlertIcon) center center;
	background-size: contain;
}

.wpcf7 form:not(.sent) .wpcf7-response-output {
	display: none;
}
.wpcf7 form:is(.sent) :is(.wpcf7-response-output, #important) { 
    margin: 2.4rem 0 0;
    padding: 1rem 1.25rem;
    font-size: var(--fieldSize);
}

/* Submit */
.wpcf7 input[type="submit"] {
	padding: var(--submitPadding);
	color: var(--submitColor);
	background-color: var(--submitBackgroundColor);
	border: 1px solid var(--submitBorderColor);
	text-transform: uppercase;
	transition: all .3s;
}

@media only screen 
and (min-width: 961px) {
    .wpcf7 input[type="submit"] {
        width: fit-content;
    }
	.wpcf7 input[type="submit"]:hover {
		color: var(--submitHoverColor);
		background-color: var(--submitHoverBackgroundColor);
		border-color: var(--submitHoverBorderColor);
	}
}
@media only screen 
and (min-width: 0) 
and (max-width: 960px) {
    .wpcf7 {
        --fieldPadding: 2rem;
    }
}
}
