@charset "UTF-8";
/* Additions to the base file (r108root.css) used only by this sheet */
:root {
	--emerald-hover: #22a05f;
	--coral-bright: #ff7a7a;
	--blue-bright: #2f7fd0;
	--ruby-bright: #e2457d;
	--r16: 16px;
	
	/* RGB values for the translucent glows and shadows */
	--blue-rgb: 0, 103, 165;
	--ruby-rgb: 192, 16, 80;
	--emerald-rgb: 40, 179, 108;
	--yellow-rgb: 250, 218, 94;
}
span.rcardcontent.no-padding {
	padding: 0 !important;
}
button[disabled],
.btn1[disabled] {
	cursor: not-allowed !important;
}
/* ===== Voice fill panel ===== */
.AIvoice-section {
	position: relative;
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	background: var(--white);
	border: 1px solid var(--border1);
	border-radius: var(--r16);
	box-shadow: var(--shadow2), 0 24px 48px -24px rgba(var(--blue-rgb), .25);
	color: var(--text-primary);
	overflow: hidden;
	
	.voice-inner {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 15px;
		flex-wrap: wrap;
		padding: 10px 15px;
		
		.aiContent-text {
			line-height: 1.2;
			white-space: nowrap;
		}
		.left,
		.right {
			margin: 0;
			display: flex;
			align-items: center !important;
			gap: 10px;
			
			#language {
				width: 120px;
				border-radius: var(--r20);
				font-size: 12px !important;
				padding: 5px 10px;
				height: auto !important;
				min-height: auto;
				font-weight: 500;
				background: var(--blue-l);
			}
		}
		.controls {
			gap: 5px 10px;
			align-items: center;
		}
		.btn1 {
			font-size: 14px;
			height: auto;
			border-radius: var(--r20) !important;
			
			span {
				color: inherit;
				font-size: inherit;
				font-weight: inherit;
			}
		}
		.vf-mic {
			background: linear-gradient(135deg, var(--blue), var(--blue-bright));
			box-shadow: 0 6px 14px -6px rgba(var(--blue-rgb), .7);
		}
		.vf-mic:hover:not(:disabled) {
			filter: brightness(1.07);
		}
		.vf-stop {
			background: linear-gradient(135deg, var(--ruby-mid), var(--ruby-bright));
			transform: scale(calc(1 + var(--vf-level, 0) * .08));
			animation: vfPulse 1.6s infinite;
		}
		.vf-insert:not(:disabled) {
			background: var(--rdr-emerald);
			box-shadow: 0 6px 14px -6px rgba(var(--emerald-rgb), .8);
		}
		.vf-insert:hover:not(:disabled) {
			background: var(--emerald-hover);
		}
		.vf-insert:active:not(:disabled) {
			transform: translateY(1px);
		}
	}
	.Ai-inputBlock {
		display: flex;
		flex-direction: column;
		gap: 10px;
		padding: 0 15px 15px;
	}
	.vf-alert {
		display: none;
		padding: 5px 15px;
		border-radius: var(--r6);
		background: var(--coral-l);
		color: var(--coral-deep);
		font-size: 12px;
		line-height: normal;
		font-weight: 500;
	}
	.tg {
		margin: auto 0;
	}
	.tg-icon > .tg-ui {
		width: 40px;
		height: 24px;
	}
	.tg-icon .tg-knob {
		width: 18px;
		height: 18px;
	}
	.tg-icon .tg-knob::before,
	.tg-icon .tg-knob::after {
		width: 8px;
	}
	.tg-icon > input:checked ~ .tg-ui .tg-knob {
		transform: translateX(16px) rotate(360deg);
	}
	.tg-icon > input:checked ~ .tg-ui .tg-knob::before {
		width: 5px;
		transform: translate(-50%, -50%) translate(-2.7px, .8px) rotate(45deg);
	}
	.tg-icon > input:checked ~ .tg-ui .tg-knob::after {
		width: 8px;
		transform: translate(-50%, -50%) translate(1.4px, -.8px) rotate(-45deg);
	}
	.vf-sheet.vf-sheet-error textarea.cust-formcontrol {
		border-color: var(--ruby-mid);
		box-shadow: 0 0 0 4px rgba(var(--ruby-rgb), .12);
	}
	.vf-sheet-foot {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 2px 10px 6px 14px;
		color: var(--txt8);
		font-size: 12px;
	}
	.vf-sheet-foot span {
		color: inherit;
		font-size: inherit;
	}
	.vf-link {
		width: auto;
		min-width: 0;
		height: auto;
		padding: 4px 6px;
		border: 0;
		border-radius: var(--r6);
		font-size: 12px;
		cursor: pointer;
		background: var(--ruby-l);
		color: var(--ruby-mid);
	}
	.vf-label {
		display: block;
		margin: 0 0 2px;
		font-size: 12px;
		color: var(--txt5);
		font-weight: normal;
	}
}
.AIvoice-section.vf.vf-error {
	.vf-mic {
		background: linear-gradient(135deg, var(--rdr-coral), var(--coral-bright));
	}
	.vf-alert {
		display: block;
	}
}
.screen-body.consumer-screen {
	.page_break {
		display: flex;
		flex-direction: column;
		gap: 15px;
		
		.fullquestiondiv {
			margin: 0 !important;
			padding: 15px;
			border: 1px solid var(--border1);
			border-radius: var(--r16);
			background-color: var(--white);
			transition: border-color .25s, box-shadow .25s;
			
			span.rcardcontent {
				gap: 15px;
				padding: 0 !important;
			}
		}
		.fullquestiondiv.vf-active,
		.fullquestiondiv:focus-within {
			border-color: var(--hessonite);
			box-shadow: var(--shadow1);
		}
		/* Answered tick */
		.fullquestiondiv.vf-done .singleFormcontrol > .queviewtext::after {
			content: "";
			position: absolute;
			top: 0;
			right: 0;
			width: 20px;
			height: 20px;
			border-radius: 50%;
			background: var(--rdr-emerald) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
		}
	}
	.consumer_question_rank.ui-sortable-handle.ui-sortable-helper {
		border: 2px solid var(--blue) !important;
	}
	.m15.radioInputdiv {
		input[type="radio"],
		input[type="checkbox"] {
			position: absolute;
			top: 0;
			left: 0;
			width: 1px;
			height: 1px;
			margin: 0 !important;
			opacity: 0;
		}
	}
}
/* Progress row at the bottom of the panel */
.vf-progress {
	display: none;
	padding: 5px 15px 5px;
	
	.vf-progress-row {
		display: flex;
		justify-content: space-between;
		align-items: baseline;
		gap: 10px;
		color: var(--txt2);
		font-size: 14px;
		font-weight: 600;
	}
	.vf-progress-row span {
		color: inherit;
		font-size: inherit;
		font-weight: inherit;
	}
	#voiceProgressText {
		color: var(--txt3);
		font-size: 12px;
		font-weight: 400;
		white-space: nowrap;
	}
	.vf-bar {
		height: 4px;
		margin-top: 8px;
		border-radius: 4px;
		background: var(--blue-l);
		overflow: hidden;
	}
	#voiceProgressBar {
		display: block;
		width: 0;
		height: 100%;
		border-radius: 4px;
		background: linear-gradient(90deg, var(--blue), var(--rdr-emerald));
		transition: width .4s;
	}
}
/* Review once the functionality is implemented */
/* Select the question to fill using voice */
.AIvoice-section.vf #voiceTarget {
	text-overflow: ellipsis;
}
.AIvoice-section.vf #voiceTarget.vf-changed {
	animation: vfChanged 1.4s ease-out;
}
@keyframes vfChanged {
	0%   { background: rgba(var(--yellow-rgb), .55); border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(var(--yellow-rgb), .45); }
	60%  { background: rgba(var(--yellow-rgb), .25); border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(var(--yellow-rgb), .15); }
	100% { background: var(--white); border-color: var(--border1); box-shadow: 0 0 0 0 rgba(var(--yellow-rgb), 0); }
}
@keyframes vfPulse {
	0%   { box-shadow: 0 0 0 0 rgba(var(--ruby-rgb), .45); }
	70%  { box-shadow: 0 0 0 12px rgba(var(--ruby-rgb), 0); }
	100% { box-shadow: 0 0 0 0 rgba(var(--ruby-rgb), 0); }
}
@media ( max-width : 480px) {
	.AIvoice-section.vf .vf-lead {
		flex-wrap: wrap;
	}
	.AIvoice-section.vf .vf-title {
		width: 100%;
		font-size: 16px;
	}
	#language-div {
		width: auto;
	}
	.AIvoice-section.vf .vf-actions {
		margin-left: 0;
	}
	.AIvoice-section.vf .vf-mic {
		flex: 1;
	}
}
/* Review once the functionality is implemented */
/* Green flash on the questions voice fill just answered */
.fullquestiondiv.vf-filled {
	animation: vfFilled 1.4s ease-out;
	border-radius: var(--r12);
}
@keyframes vfFilled {
	0%   { background-color: rgba(var(--emerald-rgb), .28); }
	100% { background-color: transparent; }
}