@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

.tnd-qc-box {
	max-width: 440px;
	margin: 0 auto;
	padding: 32px 28px;
	border-radius: 18px;
	border: 1px solid #ececec;
	box-shadow: 0 10px 40px rgba(31, 22, 90, 0.08), 0 2px 8px rgba(31, 22, 90, 0.04);
	font-family: 'Outfit', 'Segoe UI', sans-serif;
	background: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
	position: relative;
	overflow: hidden;
}

.tnd-qc-box::before {
	content: '';
	position: absolute;
	top: -60px;
	right: -60px;
	width: 160px;
	height: 160px;
	background: radial-gradient(circle, rgba(108, 92, 231, 0.10) 0%, rgba(108, 92, 231, 0) 70%);
	border-radius: 50%;
	pointer-events: none;
}

.tnd-qc-product {
	position: relative;
	z-index: 1;
}

.tnd-qc-product h3 {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 700;
	color: #1a1a2e;
	letter-spacing: -0.01em;
}

.tnd-qc-price {
	font-size: 20px;
	font-weight: 800;
	background: linear-gradient(90deg, #6c5ce7, #a55eea);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin: 0 0 22px;
}

.tnd-qc-field {
	margin-bottom: 16px;
	position: relative;
	z-index: 1;
}

.tnd-qc-field label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #6b6b80;
	margin-bottom: 6px;
}

.tnd-qc-field input {
	width: 100%;
	padding: 13px 14px;
	border: 1.5px solid #e2e0f0;
	border-radius: 10px;
	font-size: 15px;
	font-family: inherit;
	box-sizing: border-box;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tnd-qc-field input:focus {
	outline: none;
	border-color: #6c5ce7;
	box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.12);
}

.tnd-qc-submit {
	width: 100%;
	padding: 16px;
	margin-top: 6px;
	background: linear-gradient(135deg, #6c5ce7 0%, #8e6ff0 55%, #a55eea 100%);
	background-size: 200% 200%;
	color: #fff;
	border: none;
	border-radius: 12px;
	font-family: inherit;
	font-size: 16.5px;
	font-weight: 700;
	letter-spacing: 0.01em;
	cursor: pointer;
	position: relative;
	z-index: 1;
	box-shadow: 0 8px 20px rgba(108, 92, 231, 0.35);
	animation: tnd-qc-float 2.6s ease-in-out infinite, tnd-qc-glow 3.2s ease-in-out infinite;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tnd-qc-submit:hover {
	transform: translateY(-3px) scale(1.015);
	box-shadow: 0 14px 28px rgba(108, 92, 231, 0.45);
}

.tnd-qc-submit:active {
	transform: translateY(0) scale(0.99);
}

.tnd-qc-submit:disabled {
	animation: none;
	cursor: not-allowed;
}

@keyframes tnd-qc-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-4px); }
}

@keyframes tnd-qc-glow {
	0%, 100% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
	.tnd-qc-submit { animation: none; }
}

.tnd-qc-error {
	color: #b3184a;
	background: #fde8ef;
	border: 1px solid #f6c3d5;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 13.5px;
	font-weight: 500;
	margin-bottom: 14px;
	position: relative;
	z-index: 1;
}

.tnd-qc-loading {
	text-align: center;
	font-size: 13.5px;
	font-weight: 500;
	color: #6b6b80;
	margin-top: 12px;
	position: relative;
	z-index: 1;
}

/* ================= Thank-you page success animation ================= */

.tnd-qc-success {
	max-width: 460px;
	margin: 24px auto;
	padding: 40px 28px 34px;
	border-radius: 20px;
	background: linear-gradient(180deg, #ffffff 0%, #f6f4ff 100%);
	border: 1px solid #ececec;
	box-shadow: 0 12px 40px rgba(31, 22, 90, 0.10);
	font-family: 'Outfit', 'Segoe UI', sans-serif;
	text-align: center;
}

.tnd-qc-check-wrap {
	width: 84px;
	height: 84px;
	margin: 0 auto 20px;
}

.tnd-qc-check-circle {
	stroke-dasharray: 240;
	stroke-dashoffset: 240;
	animation: tnd-qc-draw-circle 0.6s ease-out forwards;
}

.tnd-qc-check-mark {
	stroke-dasharray: 48;
	stroke-dashoffset: 48;
	animation: tnd-qc-draw-check 0.35s ease-out 0.55s forwards;
}

@keyframes tnd-qc-draw-circle {
	to { stroke-dashoffset: 0; }
}

@keyframes tnd-qc-draw-check {
	to { stroke-dashoffset: 0; }
}

@keyframes tnd-qc-pop-in {
	0% { opacity: 0; transform: translateY(14px); }
	100% { opacity: 1; transform: translateY(0); }
}

.tnd-qc-success h2 {
	font-size: 23px;
	font-weight: 800;
	color: #1a1a2e;
	margin: 0 0 8px;
	opacity: 0;
	animation: tnd-qc-pop-in 0.5s ease-out 0.7s forwards;
}

.tnd-qc-success p {
	font-size: 15px;
	color: #6b6b80;
	margin: 0 0 22px;
	opacity: 0;
	animation: tnd-qc-pop-in 0.5s ease-out 0.85s forwards;
}

.tnd-qc-success .tnd-qc-cta {
	display: inline-block;
	padding: 14px 32px;
	background: linear-gradient(135deg, #6c5ce7, #a55eea);
	color: #fff !important;
	text-decoration: none;
	border-radius: 10px;
	font-weight: 700;
	font-size: 15px;
	box-shadow: 0 8px 20px rgba(108, 92, 231, 0.3);
	opacity: 0;
	animation: tnd-qc-pop-in 0.5s ease-out 1s forwards, tnd-qc-float 2.6s ease-in-out 1.4s infinite;
}

@media (prefers-reduced-motion: reduce) {
	.tnd-qc-check-circle, .tnd-qc-check-mark { animation-duration: 0.01s; }
	.tnd-qc-success h2, .tnd-qc-success p, .tnd-qc-success .tnd-qc-cta { animation: none; opacity: 1; }
}
