/*
Template Css: Vòng quay 2026
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

.wheel-container {
	position: relative;
	width: 500px;
	height: 500px;
}

#wheelCanvas {
	width: 100%;
	height: 100%;
	border-radius: 50%;
}

#spin-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100px;
	height: 100px;
	font-size: 150%;
	background: #2069ff;
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	cursor: pointer;
	border: 4px solid #fff;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	z-index: 10;
	user-select: none;
}

.pointer {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 20px solid transparent;
	border-right: 20px solid transparent;
	border-top: 40px solid #f1c40f;
	z-index: 20;
}

/* Toast CSS */
.toast-wrapper {
	pointer-events: none;
	position: relative;
	z-index: 99;
}

.toast-wrapper.show {
	pointer-events: auto;
}

.toast-container {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 9999;
	transform: translate(-50%, 100%);
	opacity: 0;
	visibility: hidden;
	transition: all 1s ease;
	max-width: 600px;
	width: 600px;
}

.toast-container .toast::before {
	content: "";
	background-image: url("https://www.bkns.vn/wp-content/uploads/2026/04/popup-deco-1.png");
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	display: flex;
	width: 133px;
	height: 186px;
	position: absolute;
	top: -140%;
	left: 10%;
}

#toastContainer .toast-container .toast::before{
	background-image: url("https://www.bkns.vn/wp-content/uploads/2026/04/popup-deco-3.png");
	top: -45%;
	width: 100px;
	height: 140px;
}

#starOfHope .toast-container .toast::after {
	content: "";
	background-image: url("https://www.bkns.vn/wp-content/uploads/2026/04/popup-deco-2.png");
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	display: flex;
	width: 150px;
	height: 112px;
	position: absolute;
	top: -55%;
	right: 5%;
	animation: bounce 3s ease infinite;
}

.toast-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	transition: all 1s ease;
	pointer-events: none;
}

.toast-wrapper.show .toast-overlay {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.toast-wrapper.show .toast-container {
	transform: translate(-50%, -50%);
	opacity: 1;
	visibility: visible;
}

#toastContainer.toast-wrapper.show .toast-container {
    transform: translate(-50%, -50%);
}

.toast {
	padding: 15px 25px;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	font-size: 150%;
}

.toast-content {
	color: #303030;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	font-weight: 700;
	width: 100%;
}

#starOfHope .toast-content {
	width: fit-content;

	em {
		font-size: 50%;
		font-weight: 400;
	}
}

.toast-content h3 {
	font-size: 155%;
	color: #2f2f2f;
	font-weight: 900;
	margin: 0 auto;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
	text-transform: uppercase;
	line-height: 1;
}

#toastContainer .toast-content h3 {
	font-size: 110%;
	color: #ffffff;
	background-color: #196af9;
	border-radius: 15px;
	padding: 10px 50px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.toast-content h3 span {
	font-size: 50%;
	color: #ffffff;
	font-style: italic;
	font-weight: 300;
}

.toast-bg {
	width: 100%;
	position: absolute;
	top: 50%;
	left: 0;
	z-index: -1;
	transform: translateY(-55%);

	img {
		width: 100%;
	}
}

.toast-actions {
	margin-top:10px;
	display: flex;
	justify-content: center;
	gap: 10px;
	width: 100%;

	button {
		border-radius: 8px;
		padding: 12px 22px;
		font-size: 20px;
		font-weight: 700;
		line-height: 1;
		text-transform: uppercase;
		font-family: Inter, Arial, Roboto, sans-serif;
		border: unset;
		cursor: pointer;
		background-color: #3e3e3e;
		color: #ffffff;
		transition: all .4s ease;

		&:focus-visible {
			outline: unset;
		}
	}

	button:hover {
		transform: scale(1.03);
		background-color: #186af8;
	}
}

#starOfHope .toast-actions {
	justify-content: center;
}

.toast-actions #btnSubmit {
	background: linear-gradient(90deg, #ff9a9d 0%, #ffff00 57.78%, #ffff00 100%);
	color: #000000;
}

.toast-actions #roleAgain {
	background-color: #c240cc;
}

#toastContainer .toast-container {
	perspective: 1200px;
}

.voucher-code-container {
	background: rgba(255, 255, 255);
	border: 2px dashed rgb(255 184 11);
	border-radius: 10px;
	padding: 10px 20px;
	margin: 10px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	box-sizing: border-box;
	color: #000;
}

.voucher-code-label {
	font-size: 14px;
	font-weight: 400;
	text-transform: none;
}

.voucher-code-value {
	font-size: 20px;
	font-weight: 900;
	letter-spacing: 1px;
}

#btnCopyVoucher {
	background: #dddddd;
	color: #000;
	border: none;
	padding: 5px 10px;
	border-radius: 5px;
	font-size: 10px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	min-width: 80px;
}

.voucher-register-row {
	display: flex;
	gap: 12px;
	align-items: stretch;
	width: 100%;
	margin: 10px 0;
}

.voucher-register-row .voucher-code-container {
	flex: 1;
	margin: 0;
}

.voucher-register-row #btnOpenForm {
	background: linear-gradient(90deg, #ff9a9d 0%, #ffff00 57.78%, #ffff00 100%);
	color: #000000;
	border-radius: 10px;
	padding: 0 20px;
	font-size: 18px;
	font-weight: 900;
	text-transform: uppercase;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 15px rgba(255, 255, 0, 0.3);
}

.voucher-register-row #btnOpenForm:hover {
	transform: scale(1.03);
	filter: brightness(1.1);
	box-shadow: 0 6px 20px rgba(255, 255, 0, 0.4);
}

.other-vouchers-list {
	width: 100%;
	margin-top: 15px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 15px;
	padding: 15px;
	box-sizing: border-box;
	color: #ffffff;
}

.other-vouchers-title {
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 10px;
	text-align: center;
	width: 100%;
}

.voucher-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 14px;
}

.voucher-item:last-child {
	border-bottom: none;
}

.voucher-item-info {
	font-weight: 500;
}

.voucher-item-code {
	font-weight: 700;
	background: rgba(255, 255, 255, 0.2);
	padding: 2px 8px;
	border-radius: 4px;
}

.toast-form {
	margin-top: 50px;
	background: linear-gradient(65.5deg, #2a6dff 0%, #00deff 57.57%, #abeeff 100%);
	padding: 70px 25px;
	border-radius: 56px;
	transform: rotateX(0);
	backface-visibility: hidden;
	transform-origin: top;
	transition: transform 0.9s cubic-bezier(.65, 0, .35, 1),
		box-shadow 0.9s;
}

.toast-form::after {
	content: "";
	background-image: url(https://www.bkns.vn/wp-content/uploads/2026/04/popup-deco-2.png);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	display: flex;
	width: 150px;
	height: 112px;
	position: absolute;
	top: -10%;
	right: -20%;
	animation: bounce 3s ease infinite;
}

.toast-form.show {
	transform: rotate(0);
}

.toast-form form {
	background-color: #ffffff;
	border-radius: 25px;
	position: relative;
	padding: 5px 50px 5px 20px;
	margin-top: 35px;
}

#mauticform_vpslandingcloudvpsamd_sdt input {
	font-size: 170%;
	font-weight: 700;
	border: unset;
	outline: unset;

	&:focus-visible {
		border: unset;
		outline: unset;
	}

	&::placeholder {
		color: #b7b7b7;
	}
}

.toast-form form .mautic-grid {
	height: 100%;
	position: absolute;
	right: 0;
	top: 0;

	.mautic-row {
		height: 100%;
	}
}

.toast-form form button {
	font-size: 135%;
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
	height: 100%;
	padding: 0 25px;
	border: unset;
	outline: unset;
	border-radius: 25px;
	background: linear-gradient(90deg, #ff9a9d 0%, #ffff00 57.78%, #ffff00 100%);
	color: #000000;

	&:focus-visible {
		border: unset;
		outline: unset;
	}
}

.toast-form .form-desc {
	color: #484848;
	margin: 15px 0 0 10px !important;
}

.form-notice-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	z-index: 10000;
	display: none;
	backdrop-filter: blur(2px);
}

.form-notice-overlay.show {
	display: block;
}

.form-notice {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.8);
	background: #ffffff;
	padding: 35px 30px;
	border-radius: 15px;
	box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
	z-index: 10001;
	display: none;
	flex-direction: column;
	align-items: center;
	text-align: center;
	min-width: 380px;
	max-width: 90%;
	transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	opacity: 0;
	box-sizing: border-box;
}

.form-notice.show {
	display: flex;
	transform: translate(-50%, -50%) scale(1);
	opacity: 1;
}

.notice-icon {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	border: 4px solid #a5dc86;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 25px;
	position: relative;
}

.notice-icon::before {
	content: "L";
	font-family: Arial, sans-serif;
	font-size: 45px;
	color: #a5dc86;
	transform: scaleX(-1) rotate(-35deg);
	display: block;
	font-weight: bold;
}

.notice-title {
	font-size: 32px;
	font-weight: 700;
	color: #595959;
	margin-bottom: 15px;
	font-family: Inter, Arial, sans-serif;
}

.notice-msg {
	font-size: 18px;
	color: #545454;
	margin-bottom: 25px;
	line-height: 1.5;
}

.notice-btn {
	background: #7066e0;
	color: #ffffff;
	border: none;
	padding: 12px 35px;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	font-size: 18px;
	transition: background 0.3s ease;
	font-family: Inter, Arial, sans-serif;
}

.notice-btn:hover {
	background: #5d54c7;
}

/* Error state icons/colors */
.form-notice.is-error .notice-icon {
	border-color: #f27474;
}

.form-notice.is-error .notice-icon::before {
	content: "X";
	color: #f27474;
	transform: none;
	font-size: 40px;
}

.mautic-err {
	position: absolute;
	top: -40%;
	font-size: 80%;
}

.already-participated-box {
	background: linear-gradient(65.5deg, #2a6dff 0%, #00deff 80.57%, #abeeff 100%);
	padding: 70px 30px;
	border-radius: 30px;
	text-align: center;
	color: #fff;
	font-weight: bold;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	max-width: 500px;
	width: 90%;
	margin: 0 auto;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	
	h3 {
		color: #ffffff;
		font-size: 170%;
    margin: 0;
    line-height: 1.4;
	}
}

@keyframes bounce {
	0% {
		transform: translateY(3px);
	}

	25% {
		transform: translateY(-3px);
	}

	50% {
		transform: translateY(3px);
	}

	75% {
		transform: translateY(-3px);
	}

	100% {
		transform: translateY(3px);
	}
}

@media (max-width: 576px){
	.wheel-container {
    width: 370px;
    height: 370px;
    margin: 0 auto;
	}
	
	.toast-container {
		max-width: 90%;
	}
	
	.toast {
		padding: 30px 25px 0;
	}
	
	.toast-content {
		gap: 0;
	}
	
	.toast-content h3 {
		font-size: 100%;
	}
	
	.toast-container .toast::before {
		width: 50px;
    height: 70px;
    top: -54%;
    left: 10%;
	}
	
	#starOfHope .toast-container .toast::after {
		width: 40px;
    height: 30px;
    top: -5%;
    right: 5%;
	}
	
	.toast-actions {
		gap: 5px;
	}
	.toast-actions button {
		font-size: 12px;
		line-height: 1.3;
		padding: 0 10px;
	}
	
	#toastContainer .toast {
		font-size: 120%;
		padding: 20px 25px 10px;
	}
	
	#toastContainer .toast-content h3 {
		font-size: 120%;
		padding: 10px 20px;
	}
	
	#toastContainer .toast-container .toast::before {
		top: -40%;
	}
	
	.toast-form {
		padding: 40px 25px;
		border-radius: 45px;
		margin-top: 30px;
	}
	
	.toast-form form {
		border-radius: 15px;
	}
	
	#mauticform_vpslandingcloudvpsamd_sdt input {
    font-size: 100%;
	}
	
	.toast-form form button {
		font-size: 100%;
		padding: 0 15px;
		border-radius: 15px;
	}
	
	.toast-form::after {
		width: 70px;
    height: 54px;
    position: absolute;
    top: -25%;
    right: 5%;
	}
	
	.toast-form .form-desc {
		font-size: 80%;
	}
	
	.already-participated-box {
		padding: 25px 15px;
		max-width: 95%;
		width: 95%;
		left: 50%;
		transform: translate(-50%, -50%);
	}
		
	.already-participated-box h3 {
		font-size: 160%;
	}
	
	.mautic-err {
		top: -50%;
	}
}