/* ========================================================= */
/* VARIABILI GLOBALI */
/* ========================================================= */
:root {
	--background-color: #181b31;
	--form-background: #fff;
	--border-radius: 2.3125rem;
}

/* ========================================================= */
/* TEXT UTILITY (globali e sicure) */
/* ========================================================= */
.white-text { color: #fff; }
.black-text { color: #181b31; }
.fucsia-text { color: #de1e63; text-align: center; }
.green-text { color: #9BCB3B; }
.semibold { font-family: Poppins-SemiBold, Arial, sans-serif; font-weight: 600; }
.semiboldc { font-family: Poppins-SemiBold, Arial, sans-serif; font-weight: 600; text-align: center; }
.small-obbl { font-size: 12px; margin: 3px 0; color: #181b31; text-align: left; }
.iol-night-blue { color: #181b31; }
.iol-error-label { color: #de1e63 !important; }

/* ========================================================= */
/* WRAPPER DEL FORM ( .iol-request-form ) */
/* ========================================================= */
.iol-request-form {
	padding: 2rem;
	background-color: var(--form-background);
	border-radius: var(--border-radius);
	text-align: center;
	border: 1px solid #00000070;
	margin: auto;
}

@media (min-width: 1220px) {
	.iol-request-form {
		width: 620px;
		display: flex;
		flex-direction: column;
		height: 100%;
		justify-content: space-evenly;
	}
}

/* ========================================================= */
/* FORM FIELDS — NAMESPACED SUL FORM */
/* ========================================================= */
#iol_LeadForm .form-group {
	margin: 10px 0 !important;
	position: relative;
	text-align: left;
}

#iol_LeadForm .form-group.iol-error input { border-color: #de1e63; }

#iol_LeadForm .form-group.iol-error input + .placeholder-text { color: #de1e63; }

#iol_LeadForm .form-group label { display: none; }

#iol_LeadForm .form-group .form-control {
	background-color: transparent;
	color: #181b31;
	padding: 1rem 0 0.5rem;
	border: none;
	border-radius: 0;
	border-bottom: 1px solid #181b31;
	font-family: Poppins-SemiBold, Arial, sans-serif;
	font-weight: 600;
	font-size: 16px;
}

#iol_LeadForm .form-group .form-control:focus { box-shadow: none; }

/* === Placeholder === */
#iol_LeadForm .form-group .form-control::placeholder { visibility: hidden; color: transparent; }

#iol_LeadForm .form-group .placeholder-text {
	padding: 1.25rem 0 0;
	position: absolute;
	left: 10px;
	top: 0;
	transition: opacity 0.2s ease, top 0.2s ease;
	opacity: 1;
	color: #181b31;
	font-size: 15px;
}

/* Animazione placeholder */
#iol_LeadForm .form-group input:focus + span,
#iol_LeadForm .form-group input:not(:placeholder-shown) + span {
	opacity: 1;
	transform: scale(0.75) translateY(-50%) translateX(-35px);
	padding: 0.625rem;
}

/* Autofill */
#iol_LeadForm .form-group input:-webkit-autofill {
	border-bottom: 1px solid #181b31;
	-webkit-text-fill-color: #181b31;
	-webkit-box-shadow: 0 0 0 1000px #003d3d00 inset;
	transition: background-color 5000s ease-in-out 0s;
}

/* PRIVACY */
#iol_LeadForm .privacy-label {
	color: #181b31;
	margin: 0;
	font-size: 11px;
}
#iol_LeadForm .privacy-label a,
#iol_LeadForm .privacy-label span {
	font-size: 11px;
	text-decoration: underline;
	text-decoration-color: #de1e63;
}

/* ========================================================= */
/* BUTTON — COMPLETAMENTE NAMESPACED */
/* ========================================================= */
#iol_LeadForm button {
	text-transform: uppercase;
	padding: 0 2rem;
	position: relative;
	width: 100%;
	margin-bottom: 1rem;
	font-family: Poppins, Arial, sans-serif;
	color: #fff;
	border-color: transparent;
	border-radius: 100px;
	height: 50px;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
}

@media (min-width: 640px) { #iol_LeadForm button { width: 65%; } }
@media (min-width: 1024px) { #iol_LeadForm button { width: 50%; } }
@media (min-width: 1220px) { #iol_LeadForm button { width: 95%; } }

/* Outline button */
#iol_LeadForm .outline-button {
	border: 1px solid #181b31;
	background-color: transparent;
	color: #181b31;
}
#iol_LeadForm button.outline-button:hover {
	background-color: #181b31;
	color: #fff;
}

/* Green button */
#iol_LeadForm .green-button {
	background-color: #9bcb3b !important;
	color: #fff;
	border-color: transparent !important;
	min-width: 270px;
}
#iol_LeadForm .green-button:hover { background-color: #85b22b !important; }

/* Loading ring */
#iol_LeadForm button .lds-ring {
	display: inline-block;
	position: absolute;
	width: 2.1875rem;
	height: 2.1875rem;
	right: 1.5625rem;
}
@media (min-width: 640px) { #iol_LeadForm button .lds-ring { right: 1.3rem; } }
@media (min-width: 1220px) { #iol_LeadForm button .lds-ring { right: 1.75rem; } }
@media (min-width: 1300px) { #iol_LeadForm button .lds-ring { right: 1.5rem; } }

.lds-ring div {
	box-sizing: border-box;
	position: absolute;
	margin-left: 1rem;
	width: 2rem;
	height: 2rem;
	top: -.25rem;
	border-radius: 50%;
	border: 4px solid;
	border-color: #fff transparent transparent;
	animation: p 1.2s cubic-bezier(.5,0,.5,1) infinite;
}
.lds-ring div:first-child { animation-delay: -.45s; }
.lds-ring div:nth-child(2) { animation-delay: -.3s; }
.lds-ring div:nth-child(3) { animation-delay: -.15s; }

@keyframes p {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* ========================================================= */
/* PARAGRAFI TESTUALI */
/* ========================================================= */
.iol-paragraph .heading-4 {
	color: #fff;
	font-size: 1.0625rem;
}
@media (min-width: 640px) {
	.iol-paragraph .heading-4 { margin-bottom: 1rem !important; font-size: 1.25rem; }
}
@media (min-width: 1024px) {
	.iol-paragraph .heading-4 { font-size: 1.25rem; }
}

/* Text della parte richiesta */
.iol-request-text {
	margin-top: 20px;
	display: flex;
	flex-direction: column;
}
@media (min-width: 1024px) { .iol-request-text { margin-top: 0; } }

.iol-request-text .heading-1 {
	color: #de1e63;
	font-size: 2.1875rem;
	font-weight: 700;
	margin-bottom: 0;
}
@media (min-width: 640px) { .iol-request-text .heading-1 { font-size: 1.875rem; } }
@media (min-width: 1024px) { .iol-request-text .heading-1 { font-size: 2.1875rem; } }
@media (min-width: 1220px) {
	.iol-request-text .heading-1 {
		font-size: 3rem;
		line-height: 3.5625rem;
		margin-bottom: 1rem !important;
	}
}
@media (min-width: 1600px) {
	.iol-request-text .heading-1 {
		font-size: 2.8125rem;
		line-height: 3.5625rem;
		margin-bottom: 1rem !important;
	}
}
