.tqf-wrapper {
	--tqf-navy: #0f172a;
	--tqf-orange: #f5820c;
	--tqf-orange-dark: #e07208;
	--tqf-pink: #e11d48;
	--tqf-pink-dark: #be123c;
	--tqf-cream: #fdf9f0;
	--tqf-border: #e8e4da;
	--tqf-muted: #64748b;

	max-width: 620px;
	margin: 0 auto;
	padding: 32px 28px 40px;
	background: #ffffff;
	border-radius: 28px;
	box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
}

.tqf-wrapper *,
.tqf-wrapper *::before,
.tqf-wrapper *::after {
	box-sizing: border-box;
}

.tqf-lang-switch {
	display: flex;
	justify-content: flex-end;
	gap: 6px;
	margin-bottom: 14px;
}

.tqf-lang-btn {
	border: 1px solid var(--tqf-border);
	background: #fff;
	color: var(--tqf-muted);
	font-size: 13px;
	font-weight: 700;
	padding: 6px 14px;
	border-radius: 999px;
	cursor: pointer;
}

.tqf-lang-btn.active {
	background: var(--tqf-navy);
	border-color: var(--tqf-navy);
	color: #fff;
}

.tqf-field-hint {
	margin: 8px 2px 0;
	font-size: 12.5px;
	color: var(--tqf-muted);
	line-height: 1.4;
}

.tqf-field input[readonly],
.tqf-field input:disabled,
.tqf-field select:disabled {
	background: #f1f5f9;
	color: var(--tqf-muted);
	cursor: not-allowed;
}

.tqf-heading {
	font-size: 30px;
	line-height: 1.2;
	font-weight: 800;
	color: var(--tqf-navy);
	margin: 0 0 10px;
}

.tqf-step-label {
	color: var(--tqf-muted);
	font-size: 15px;
	margin: 0 0 20px;
}

.tqf-progress {
	background: #fff;
	border: 1px solid var(--tqf-border);
	border-radius: 20px;
	padding: 22px 12px;
	margin-bottom: 24px;
}

.tqf-progress-track {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
}

.tqf-progress-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	width: 33%;
}

.tqf-progress-circle {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 2px solid #cbd5e1;
	color: #94a3b8;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
	background: #fff;
	transition: all 0.25s ease;
}

.tqf-progress-text {
	font-size: 12.5px;
	color: #94a3b8;
	text-align: center;
	font-weight: 600;
	max-width: 90px;
}

.tqf-progress-line {
	flex: 1 1 auto;
	height: 2px;
	background: #e2e8f0;
	margin-top: 21px;
}

.tqf-progress-item.active .tqf-progress-circle {
	border-color: var(--tqf-navy);
	color: var(--tqf-navy);
}

.tqf-progress-item.active .tqf-progress-text {
	color: var(--tqf-navy);
}

.tqf-progress-item.completed .tqf-progress-circle {
	background: var(--tqf-navy);
	border-color: var(--tqf-navy);
	color: #fff;
}

.tqf-progress-item.completed .tqf-progress-text {
	color: var(--tqf-navy);
}

.tqf-alert {
	padding: 12px 16px;
	border-radius: 12px;
	font-size: 14px;
	margin-bottom: 16px;
}

.tqf-alert-error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.tqf-section-title {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--tqf-navy);
	font-size: 15px;
	text-transform: uppercase;
	margin-bottom: 18px;
}

.tqf-badge {
	background: #fde3c0;
	color: var(--tqf-orange-dark);
	font-weight: 800;
	font-size: 13px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.tqf-plans-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 24px;
}

.tqf-plan-card {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 18px;
	border: 1px solid var(--tqf-border);
	border-radius: 18px;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	background: #fff;
}

.tqf-plan-card:hover {
	border-color: var(--tqf-orange);
}

.tqf-plan-card:has(.tqf-plan-checkbox:checked) {
	border-color: var(--tqf-orange);
	box-shadow: 0 0 0 3px rgba(245, 130, 12, 0.12);
}

.tqf-plan-checkbox {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.tqf-plan-icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: #fde3c0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.tqf-plan-icon svg {
	width: 24px;
	height: 24px;
}

.tqf-plan-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
}

.tqf-plan-title {
	font-weight: 700;
	color: var(--tqf-navy);
	font-size: 17px;
}

.tqf-plan-desc {
	color: var(--tqf-muted);
	font-size: 14px;
	line-height: 1.4;
}

.tqf-plan-check {
	width: 24px;
	height: 24px;
	border-radius: 7px;
	border: 2px solid #cbd5e1;
	flex-shrink: 0;
	margin-top: 2px;
	position: relative;
}

.tqf-plan-checkbox:checked ~ .tqf-plan-check {
	background: var(--tqf-navy);
	border-color: var(--tqf-navy);
}

.tqf-plan-checkbox:checked ~ .tqf-plan-check::after {
	content: "";
	position: absolute;
	left: 7px;
	top: 3px;
	width: 6px;
	height: 11px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.tqf-field {
	margin-bottom: 18px;
}

.tqf-field label {
	display: block;
	font-weight: 600;
	color: var(--tqf-navy);
	font-size: 15px;
	margin-bottom: 8px;
}

.tqf-field input[type="text"],
.tqf-field input[type="email"],
.tqf-field input[type="tel"],
.tqf-field input[type="date"],
.tqf-field select {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--tqf-border);
	border-radius: 14px;
	background: var(--tqf-cream);
	font-size: 15px;
	color: var(--tqf-navy);
}

.tqf-field input:focus,
.tqf-field select:focus {
	outline: none;
	border-color: var(--tqf-orange);
}

.tqf-field-checkbox .tqf-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid var(--tqf-border);
	border-radius: 14px;
	cursor: pointer;
	font-weight: 400;
	font-size: 14.5px;
	color: var(--tqf-navy);
}

.tqf-field-checkbox input[type="checkbox"] {
	margin-top: 3px;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.tqf-btn {
	width: 100%;
	padding: 17px;
	border-radius: 16px;
	border: none;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
	margin-top: 6px;
	transition: transform 0.1s ease, opacity 0.15s ease;
}

.tqf-btn:active {
	transform: scale(0.99);
}

.tqf-btn-primary {
	background: var(--tqf-orange);
	color: #fff;
}

.tqf-btn-primary:hover {
	background: var(--tqf-orange-dark);
}

.tqf-btn-danger {
	background: var(--tqf-pink);
	color: #fff;
}

.tqf-btn-danger:hover {
	background: var(--tqf-pink-dark);
}

.tqf-btn-outline {
	background: #fff;
	color: var(--tqf-navy);
	border: 1px solid var(--tqf-border);
	margin-bottom: 12px;
}

.tqf-btn-outline:hover {
	background: #f8fafc;
}

.tqf-btn[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

.tqf-success {
	text-align: center;
	padding: 30px 10px 10px;
}

.tqf-success-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #dcfce7;
	color: #16a34a;
	font-size: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 18px;
}

.tqf-success h3 {
	color: var(--tqf-navy);
	font-size: 22px;
	margin: 0 0 10px;
}

.tqf-success p {
	color: var(--tqf-muted);
	font-size: 15px;
	margin: 0;
}

@media (max-width: 480px) {
	.tqf-wrapper {
		padding: 24px 18px 30px;
		border-radius: 20px;
	}

	.tqf-heading {
		font-size: 24px;
	}

	.tqf-progress-text {
		font-size: 11px;
	}
}
