.supera-form {
	--supera-focus-color: #f37021;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	max-width: 32rem;
	font-family: 'Roboto', Arial, 'Helvetica Neue', Helvetica, sans-serif;
}

.supera-field {
	margin: 0;
}

.supera-field label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: #1a1a1a;
}

.supera-field input[type='text'],
.supera-field input[type='email'],
.supera-field input[type='tel'],
.supera-field select {
	box-sizing: border-box;
	width: 100%;
	margin-top: 0.4rem;
	padding: 0.75rem 0.9rem;
	border: 1px solid #d7d7d7;
	border-radius: 8px;
	background-color: #ffffff;
	color: #1a1a1a;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.4;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.supera-field input[type='text']:hover,
.supera-field input[type='email']:hover,
.supera-field input[type='tel']:hover,
.supera-field select:hover {
	border-color: #b8b8b8;
}

.supera-field input[type='text']:focus,
.supera-field input[type='email']:focus,
.supera-field input[type='tel']:focus,
.supera-field select:focus {
	outline: none;
	border-color: var(--supera-focus-color);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--supera-focus-color) 15%, transparent);
}

.supera-field input::placeholder {
	color: var(--supera-placeholder-color, #999999);
}

.supera-field--select select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1.5 2L6 6.2L10.5 2' stroke='%23757575' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.9rem center;
	background-size: 11px 7px;
	padding-right: 2.25rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-image 0.15s ease;
}

.supera-field--has-icon input[type='text'],
.supera-field--has-icon input[type='email'],
.supera-field--has-icon input[type='tel'],
.supera-field--has-icon select {
	padding-left: 2.6rem;
}

.supera-field--checkbox {
	font-size: 0.85rem;
}

.supera-field--checkbox label {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	font-weight: 400;
	cursor: pointer;
}

.supera-field--checkbox input[type='checkbox'] {
	width: 1.05rem;
	height: 1.05rem;
	flex-shrink: 0;
	accent-color: #f37021;
	cursor: pointer;
}

.supera-field--select select:disabled {
	background-color: #f5f5f5;
	color: #999999;
	cursor: not-allowed;
}

.supera-field.is-hidden {
	display: none;
}

@keyframes supera-field-fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.supera-field--location-cidade:not(.is-hidden),
.supera-field--location-bairro:not(.is-hidden) {
	animation: supera-field-fade-in 0.2s ease;
}

.supera-field__control {
	position: relative;
	display: block;
}

.supera-field__control.is-loading select {
	background-image: none !important;
}

.supera-field__control.is-loading::after {
	content: '';
	position: absolute;
	top: 50%;
	right: 0.9rem;
	width: 1rem;
	height: 1rem;
	margin-top: -0.5rem;
	border: 2px solid rgba(0, 0, 0, 0.15);
	border-top-color: var(--supera-focus-color, #f37021);
	border-radius: 50%;
	animation: supera-form-spin 0.6s linear infinite;
	pointer-events: none;
}

.supera-field--invalid input:not([type='checkbox']),
.supera-field--invalid select {
	border-width: 1px !important;
	border-style: solid !important;
	border-color: #cf2e2e !important;
}

.supera-field--invalid input:not([type='checkbox']):focus,
.supera-field--invalid select:focus {
	box-shadow: 0 0 0 3px rgba(207, 46, 46, 0.15);
}

.supera-field--invalid input[type='checkbox'] {
	accent-color: #cf2e2e;
}

.supera-field__error {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.8125rem;
	color: #cf2e2e;
}

.supera-field__error:empty {
	display: none;
}

.supera-form__turnstile {
	display: flex;
	justify-content: safe center;
	overflow-x: auto;
	width: 0;
	min-width: 100%;
	order: 1;
}

.cf-turnstile {
	width: 100%;
}

.supera-form__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0.95rem 1rem;
	border: 0;
	font-weight: 700;
	font-size: 1.125rem;
	font-family: inherit;
	cursor: pointer;
	transition: filter 0.15s ease, opacity 0.15s ease;
	order: 2;
}

.supera-form__submit:hover,
.supera-form__submit:focus-visible {
	filter: brightness(0.92);
}

.supera-form__submit:disabled {
	cursor: default;
	opacity: 0.6;
}

.supera-form__submit-loader {
	display: none;
	width: 1.25rem;
	height: 1.25rem;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: supera-form-spin 0.7s linear infinite;
}

.supera-form__submit--loading .supera-form__submit-label {
	display: none;
}

.supera-form__submit--loading .supera-form__submit-loader {
	display: block;
}

@keyframes supera-form-spin {
	to {
		transform: rotate(360deg);
	}
}

.supera-form__notice {
	margin: 0;
	padding: 0.65rem 0.9rem;
	border-radius: 6px;
	border-left: 3px solid transparent;
	font-size: 0.85rem;
	line-height: 1.4;
	order: 3;
}

.supera-form__notice:empty {
	display: none;
}

.supera-form__notice--error {
	background-color: #fdeded;
	border-left-color: #cf2e2e;
	color: #8a1f1f;
}

.supera-form__notice--success {
	background-color: #eaf7ec;
	border-left-color: #2b9d3b;
	color: #1e6b29;
}

@media (max-width: 480px) {
	.supera-form {
		gap: 1rem;
	}
}
