/*
 * Stili specifici del wizard pubblico "Chat AI" - step 1 (dati fattura + verifica OTP) e
 * indicatore di progresso condiviso (aichat/public/chatAIStep1.jsp, aichat/public/wizard.jsp).
 * Gli stili comuni della conversazione (messaggi, input, riepilogo fattura, header modale)
 * sono in resources4/css/aichat/aichat-chat-ui.css.
 */
input[type=checkbox] {
	opacity: 0;
}

/* Stato errore: checkbox privacy non selezionata */
.form-group.is-invalid .checkbox-inline-right label[for="privacy1"] {
	background: url(/cidricoWeb/resources4/images/checkbox-unchecked-error.png) no-repeat !important;
}

.form-group.is-invalid .checkbox-inline-right input[type=checkbox]:hover ~ label[for="privacy1"],
.form-group.is-invalid .checkbox-inline-right label[for="privacy1"]:hover {
	background: url(/cidricoWeb/resources4/images/checkbox-unchecked-error.png) no-repeat !important;
}

/* Default solo per privacy1 (non hover, non checked, non errore) */
.checkbox-inline-right input#privacy1:not(:checked):not(:hover) + label[for="privacy1"] {
    background: url(/cidricoWeb/resources4/images/checkbox-unchecked-default.png) no-repeat;
}

/* Titoli sezioni Chat AI */
#step1-panel .section-heading,
#step2-panel .section-heading {
	color: var(--primary-color);
}

/* Allinea il messaggio errore privacy alla checkbox custom */
#privacy1Error {
	margin-left: 17px;
}

.field-error-message {
	display: block;
	margin-top: 5px;
	font-size: 0.875rem;
	min-height: 1em;
}

.field-error-message:empty {
	display: none !important;
	margin: 0;
	min-height: 0;
}

/* Spaziatura header e azioni wizard */
#step1-panel .page-header .page-subtitle {
	margin-top: 8px;
}

#step2-panel .otp-resend-row {
	margin-bottom: 18px;
}

#step1-panel .step1-first-section-row {
	margin-top: 12px;
}

#step2-panel .otp-resend-btn-col {
	margin-top: 10px;
}

.otp-input {
	font-size: 1.5rem;
	letter-spacing: 0.5rem;
	text-align: center;
	font-weight: bold;
}

/* Responsive mobile */
@media (max-width: 576px) {
	.otp-input {
		font-size: 1.2rem;
		letter-spacing: 0.3rem;
	}

	#step1-panel .step1-first-section-row {
		margin-top: 20px;
	}

	#step2-panel .otp-resend-btn-col {
		margin-top: 14px;
	}
}

/* ===== Indicatore di progresso wizard (aichat/public/wizard.jsp) ===== */
.wizard-item {
	height: 85px;
	width: 85px;
	background-color: #bbb;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 1;
}

.wizard-item-active {
	height: 85px;
	width: 85px;
	background-color: #00a9e1;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 3px solid white;
	box-shadow: 0px 0px 35px -5px #888888;
	position: relative;
	z-index: 1;
}

.wizard-item-completed {
	height: 85px;
	width: 85px;
	background-color: #00a9e1;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 1;
}

/* Assicura che le icone siano centrate */
.wizard-item span, .wizard-item-active span, .wizard-item-completed span
	{
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.wizard-activeitem-text {
	font-weight: bold;
	color: black;
}

.wizard-mobile-text {
	display: flex;
	align-items: center;
}

.first-dashed-line {
	border-bottom: 1px dashed #808080;
	position: absolute;
	left: 50%;
	width: 100%;
	top: 50%;
	height: auto;
	border-spacing: 5px;
}

.last-dashed-line {
	border-bottom: 1px dashed #808080;
	position: absolute;
	width: 100%;
	top: 50%;
	right: 50%;
	height: auto;
	border-spacing: 5px;
}

.first-mobile-dashed-line {
	border-left: 1px dashed #808080;
	position: absolute;
	width: auto;
	top: 50%;
	right: 50%;
	height: 100%;
}

.last-mobile-dashed-line {
	border-left: 1px dashed #808080;
	position: absolute;
	width: auto;
	bottom: 50%;
	height: 100%;
	right: 50%;
}

#wizard-item-step1.wizard-item-completed+.first-dashed-line {
	border-bottom: 1px solid #00a9e1 !important;
}

#wizard-item-step2.wizard-item-completed+.last-dashed-line {
	border-bottom: 1px solid #00a9e1 !important;
}

#wizard-mobile-item-step1.wizard-item-completed+.first-mobile-dashed-line
	{
	border-left: 1px solid #00a9e1 !important;
}

#wizard-mobile-item-step2.wizard-item-completed+.last-mobile-dashed-line
	{
	border-left: 1px solid #00a9e1 !important;
}

/* Icona mondo accanto al sottotitolo (stessa regola di aichat-chat-ui.css, non incluso nello step 1) */
.chat-title-globe {
	display: inline-block;
	width: 1em;
	height: 1em;
	vertical-align: -0.125em;
	background: url("../../../resourcesDSO/images/mondo.svg") no-repeat center / contain;
}
