/* =============================================
   Clarke Análise Gratuita — Modern Glass Form
   ============================================= */

/* --- Keyframes --- */
@keyframes clag-fadeInUp {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* --- Card --- */
.clag-widget {
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 20px;
	padding: 28px 24px;
	color: var(--uzeda-color-heading-black, #0f172a);
	font-family: inherit;
	font-size: 14px;
	width: 100%;
	max-width: 520px;
	min-height: 420px;
	margin-left: auto;
	position: relative;
	overflow: hidden;
}

.clag-widget * {
	font-family: inherit;
	box-sizing: border-box;
}

/* accent line at top */
.clag-widget::before {
	content: '';
	position: absolute;
	top: 0;
	left: 24px;
	right: 24px;
	height: 3px;
	background: linear-gradient(90deg, transparent, var(--uzeda-color-secondary, #0ea666) 50%, transparent);
	border-radius: 0 0 2px 2px;
}

/* --- Stepper (persistent) --- */
.clag-stepper {
	margin-bottom: 18px;
}

.clag-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-bottom: 10px;
}

.clag-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.12);
	transition: background 0.3s ease, transform 0.3s ease;
}

.clag-dot--active {
	background: #10d177;
	transform: scale(1.3);
}

.clag-dot--done {
	background: rgba(16, 209, 119, 0.45);
}

/* --- Steps --- */
.clag-step {
	display: none;
}

.clag-step--active {
	display: block;
}

.clag-step--active.clag-step--animated {
	animation: clag-fadeInUp 0.25s ease-out both;
}

/* --- Typography --- */
.clag-widget .clag-title {
	margin: 0 0 6px;
	font-size: 22px;
	line-height: 1.2;
	font-weight: 700;
	color: var(--uzeda-color-heading-black, #0f172a);
}

.clag-widget .clag-title--small {
	font-size: 17px;
	line-height: 1.25;
	margin-bottom: 16px;
}

.clag-subtitle {
	font-size: 14px;
	line-height: 1.4;
	color: var(--uzeda-color-text, #475569);
	margin: 0 0 14px;
}

/* --- Fields --- */
.clag-field {
	margin-bottom: 12px;
}

.clag-label {
	display: block;
	font-size: 14px;
	line-height: 1.2;
	font-weight: 600;
	color: var(--uzeda-color-heading-black, #0f172a);
	margin-bottom: 5px;
}

.clag-label span {
	color: #ff6b6b;
	margin-left: 2px;
}

.clag-note {
	font-size: 12px;
	line-height: 1.3;
	color: #10d177;
	margin: 2px 0 5px;
}

.clag-input {
	width: 100%;
	height: 34px;
	border-radius: 10px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	background: rgba(255, 255, 255, 0.6);
	padding: 0 14px;
	font-size: 14px;
	color: var(--uzeda-color-heading-black, #0f172a);
	outline: none;
	transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.clag-input::placeholder {
	color: #9ca3af;
}

.clag-input:focus {
	border-color: #10d177;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(16, 209, 119, 0.15);
}

/* --- Range Slider --- */
.clag-range {
	position: relative;
}

.clag-range__value {
	text-align: center;
	font-size: 22px;
	font-weight: 700;
	color: var(--uzeda-color-secondary, #0ea666);
	margin-bottom: 8px;
	letter-spacing: -0.02em;
}

.clag-range__track-wrap {
	position: relative;
	height: 6px;
	display: flex;
	align-items: center;
}

.clag-range__fill {
	position: absolute;
	left: 0;
	top: 0;
	height: 6px;
	border-radius: 3px;
	background: var(--uzeda-color-secondary, #0ea666);
	pointer-events: none;
	transition: width 0.05s linear;
}

.clag-range__input {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 6px;
	border-radius: 3px;
	background: rgba(0, 0, 0, 0.08);
	outline: none;
	margin: 0;
	padding: 0;
	cursor: pointer;
	position: relative;
	z-index: 1;
}

/* Webkit thumb */
.clag-range__input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--uzeda-color-secondary, #0ea666);
	border: 2px solid #ffffff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.clag-range__input::-webkit-slider-thumb:hover {
	transform: scale(1.15);
	box-shadow: 0 2px 10px rgba(14, 166, 102, 0.35);
}

.clag-range__input:active::-webkit-slider-thumb {
	transform: scale(1.05);
}

/* Firefox thumb */
.clag-range__input::-moz-range-thumb {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--uzeda-color-secondary, #0ea666);
	border: 2px solid #ffffff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
	cursor: pointer;
}

.clag-range__input::-moz-range-track {
	height: 6px;
	border-radius: 3px;
	background: transparent;
	border: none;
}

.clag-range__input::-moz-range-progress {
	height: 6px;
	border-radius: 3px;
	background: var(--uzeda-color-secondary, #0ea666);
}

.clag-range__limits {
	display: flex;
	justify-content: space-between;
	margin-top: 6px;
	font-size: 11px;
	color: #9ca3af;
	font-weight: 500;
}

.clag-field--slider {
	margin-bottom: 16px;
}

/* --- Upload / Dropzone --- */
.clag-dropzone {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 16px;
	border: 1.5px dashed rgba(0, 0, 0, 0.15);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	transition: border-color 0.25s ease, background 0.25s ease;
	margin-bottom: 12px;
	text-align: center;
	position: relative;
}

.clag-dropzone:hover,
.clag-dropzone.is-dragover {
	border-color: #10d177;
	background: rgba(16, 209, 119, 0.06);
}

.clag-dropzone__icon {
	display: block;
	margin: 0 auto 6px;
	opacity: 0.55;
}

.clag-dropzone__text {
	font-size: 13px;
	line-height: 1.3;
	color: #5a6577;
	margin: 0 0 2px;
}

.clag-dropzone__text strong {
	color: #10d177;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.clag-dropzone__hint {
	font-size: 11px;
	color: #9ca3af;
}

.clag-dropzone input[type="file"] {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.clag-dropzone__name {
	display: none;
	margin-top: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #10d177;
}

.clag-dropzone__name.is-visible {
	display: block;
}


/* --- Grid --- */
.clag-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 12px;
}

.clag-field--full {
	grid-column: 1 / -1;
}

/* --- Progress (global, inside .clag-stepper) --- */
.clag-progress {
	height: 4px;
	background: rgba(0, 0, 0, 0.08);
	border-radius: 4px;
	overflow: hidden;
}

.clag-progress span {
	display: block;
	height: 100%;
	border-radius: 4px;
	background: var(--uzeda-color-secondary, #0ea666);
	transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Actions --- */
.clag-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-top: 6px;
}

.clag-actions--end {
	justify-content: flex-end;
}

.clag-btn {
	border: 0;
	border-radius: 8px;
	padding: 0 20px;
	height: 30px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.clag-btn:hover {
	transform: translateY(-1px);
}

.clag-btn:active {
	transform: translateY(0);
}

.clag-btn--primary {
	background: var(--uzeda-color-secondary, #0ea666);
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(14, 166, 102, 0.3);
}

.clag-btn--primary:hover {
	box-shadow: 0 4px 14px rgba(14, 166, 102, 0.4);
}

.clag-btn--ghost {
	background: transparent;
	color: #4a5568;
	border: 1px solid rgba(0, 0, 0, 0.15);
}

.clag-btn--ghost:hover {
	background: rgba(0, 0, 0, 0.04);
	color: #1a2332;
	border-color: rgba(0, 0, 0, 0.25);
}

/* --- Consent Checkbox --- */
.clag-consent {
	margin-bottom: 10px;
}

.clag-consent__label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	cursor: pointer;
	font-size: 12px;
	line-height: 1.45;
	color: var(--uzeda-color-text, #475569);
}

.clag-consent__input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.clag-consent__check {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	border-radius: 4px;
	border: 1.5px solid rgba(0, 0, 0, 0.2);
	background: rgba(255, 255, 255, 0.6);
	transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	position: relative;
	margin-top: 1px;
}

.clag-consent__check::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 5px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	opacity: 0;
	transition: opacity 0.15s ease;
}

.clag-consent__input:checked + .clag-consent__check {
	background: var(--uzeda-color-secondary, #0ea666);
	border-color: var(--uzeda-color-secondary, #0ea666);
	box-shadow: 0 1px 4px rgba(14, 166, 102, 0.25);
}

.clag-consent__input:checked + .clag-consent__check::after {
	opacity: 1;
}

.clag-consent__input:focus-visible + .clag-consent__check {
	box-shadow: 0 0 0 3px rgba(14, 166, 102, 0.2);
}

.clag-consent__text {
	flex: 1;
}

.clag-consent__text a {
	color: var(--uzeda-color-secondary, #0ea666);
	text-decoration: underline;
	text-underline-offset: 2px;
	font-weight: 600;
}

.clag-consent__text a:hover {
	color: var(--uzeda-color-heading-black, #0f172a);
}

.clag-consent--error .clag-consent__check {
	border-color: #ff6b6b;
	box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.15);
}

/* --- Disclaimer --- */
.clag-disclaimer {
	font-size: 11px;
	line-height: 1.45;
	font-style: italic;
	color: #8896a6;
	margin: 0 0 10px;
}

/* --- Success Step --- */
.clag-success {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 24px 12px 12px;
}

.clag-success__icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--uzeda-color-secondary, #0ea666);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
	animation: clag-scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes clag-scaleIn {
	from { opacity: 0; transform: scale(0.5); }
	to   { opacity: 1; transform: scale(1); }
}

.clag-success__title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	color: var(--uzeda-color-heading-black, #0f172a);
}

.clag-success__text {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--uzeda-color-text, #475569);
	max-width: 340px;
}

/* --- Screen-reader only --- */
.clag-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* --- Status --- */
.clag-status {
	margin-top: 10px;
	font-size: 13px;
	color: #5a6577;
}

.clag-status--error {
	color: #ff6b6b;
}

.clag-submit.is-loading {
	opacity: 0.6;
	cursor: wait;
	pointer-events: none;
}

/* --- Loading Step --- */
.clag-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 48px 12px;
	min-height: 260px;
}

.clag-loading__spinner {
	width: 36px;
	height: 36px;
	border: 3px solid rgba(0, 0, 0, 0.08);
	border-top-color: var(--uzeda-color-secondary, #0ea666);
	border-radius: 50%;
	animation: clag-spin 0.7s linear infinite;
	margin-bottom: 16px;
}

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

.clag-loading__text {
	margin: 0;
	font-size: 13px;
	color: var(--uzeda-color-text, #475569);
}

/* --- Responsive: Tablet --- */
@media (max-width: 1024px) {
	.clag-widget {
		padding: 24px 20px;
		max-width: 100%;
		min-height: 380px;
		margin-left: 0;
	}

	.clag-widget .clag-title {
		font-size: 18px;
	}

	.clag-widget .clag-title--small {
		font-size: 16px;
	}

	.clag-btn {
		font-size: 14px;
		height: 34px;
	}
}

/* --- Responsive: Mobile --- */
@media (max-width: 767px) {
	.clag-widget {
		padding: 20px 16px;
		border-radius: 16px;
		min-height: 390px;
	}

	.clag-grid-2 {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.clag-input {
		height: 38px;
		font-size: 14px;
	}

	.clag-widget .clag-title {
		font-size: 17px;
	}

	.clag-widget .clag-title--small {
		font-size: 15px;
	}

	.clag-subtitle {
		font-size: 13px;
	}

	.clag-disclaimer {
		font-size: 10px;
	}

	.clag-btn {
		font-size: 13px;
		height: 34px;
		padding: 0 16px;
	}

	.clag-dropzone {
		padding: 14px;
	}
}
