/*
 * استایل فرم ثبت‌نام تورنمنت نبردینو
 * تمام کلاس‌ها با پیشوند nb- نام‌گذاری شده‌اند تا با قالب‌ها و افزونه‌های دیگر (از جمله Divi) تداخل نداشته باشند.
 */

.nb-tournament-wrapper {
	max-width: 640px;
	margin: 30px auto;
	font-family: inherit;
	box-sizing: border-box;
	position: relative;
	padding: 3px;
	border-radius: 20px;
	overflow: hidden;
	background:
		radial-gradient(circle at 15% 15%, rgba(255, 153, 0, 0.35), transparent 45%),
		radial-gradient(circle at 85% 85%, rgba(255, 92, 51, 0.3), transparent 45%),
		linear-gradient(135deg, #05070a 0%, #0d1420 55%, #05070a 100%);
	background-size: 200% 200%;
	animation: nb-bg-shift 12s ease infinite;
}

/* پترن شبکه‌ای شبیه HUD بازی، به‌صورت لایه‌ای شفاف روی گرادیان اصلی */
.nb-tournament-wrapper::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: 26px 26px;
	pointer-events: none;
	opacity: 0.5;
}

/* افکت نور مورب که به آرامی حرکت می‌کند، حس یک اسکن رادار/HUD را می‌دهد */
.nb-tournament-wrapper::after {
	content: "";
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: linear-gradient(115deg, transparent 40%, rgba(255, 153, 0, 0.08) 50%, transparent 60%);
	animation: nb-scan 6s linear infinite;
	pointer-events: none;
}

@keyframes nb-bg-shift {
	0%   { background-position: 0% 0%; }
	50%  { background-position: 100% 100%; }
	100% { background-position: 0% 0%; }
}

@keyframes nb-scan {
	0%   { transform: translate(-10%, -10%) rotate(0deg); }
	100% { transform: translate(10%, 10%) rotate(0deg); }
}

.nb-tournament-wrapper * {
	box-sizing: border-box;
}

.nb-tournament-form {
	position: relative;
	z-index: 1;
	background: rgba(16, 21, 29, 0.92);
	border-radius: 17px;
	padding: 32px 28px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.06);
	backdrop-filter: blur(2px);
}

/* برای کاربرانی که حرکت کم را ترجیح می‌دهند، انیمیشن‌ها غیرفعال می‌شود */
@media (prefers-reduced-motion: reduce) {
	.nb-tournament-wrapper,
	.nb-tournament-wrapper::after {
		animation: none;
	}
}

.nb-form-header h3 {
	color: #ffffff;
	font-size: 22px;
	margin: 0 0 8px;
	font-weight: 700;
}

.nb-form-header p {
	color: #9aa4b2;
	font-size: 14px;
	margin: 0 0 24px;
	line-height: 1.8;
}

.nb-form-group {
	margin-bottom: 18px;
}

.nb-form-row {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.nb-form-row .nb-half {
	flex: 1 1 220px;
}

.nb-tournament-form label {
	display: block;
	color: #d7dce2;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 6px;
}

.nb-required {
	color: #ff5c5c;
}

.nb-tournament-form input[type="text"],
.nb-tournament-form input[type="tel"],
.nb-tournament-form select {
	width: 100%;
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: #1c2733;
	color: #ffffff;
	font-size: 14px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	outline: none;
}

.nb-tournament-form input::placeholder {
	color: #6b7684;
}

.nb-tournament-form input:focus,
.nb-tournament-form select:focus {
	border-color: #ff9900;
	box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.15);
}

.nb-tournament-form select option {
	background: #1c2733;
	color: #fff;
}

.nb-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.nb-form-submit {
	margin-top: 8px;
	margin-bottom: 0;
}

.nb-submit-btn {
	width: 100%;
	padding: 14px 18px;
	border: none;
	border-radius: 10px;
	background: linear-gradient(135deg, #ff9900 0%, #ff5c33 100%);
	color: #ffffff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	box-shadow: 0 6px 18px rgba(255, 92, 51, 0.35);
}

.nb-submit-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(255, 92, 51, 0.45);
}

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

.nb-alert {
	padding: 14px 18px;
	border-radius: 10px;
	margin-bottom: 18px;
	font-size: 14px;
	line-height: 1.8;
}

.nb-alert-success {
	background: rgba(46, 204, 113, 0.12);
	border: 1px solid rgba(46, 204, 113, 0.4);
	color: #2ecc71;
}

.nb-alert-error {
	background: rgba(255, 92, 92, 0.12);
	border: 1px solid rgba(255, 92, 92, 0.4);
	color: #ff5c5c;
}

@media (max-width: 480px) {
	.nb-tournament-form {
		padding: 22px 16px;
	}
}

.nb-field-note {
	color: #6b7684;
	font-size: 12px;
	margin: -10px 0 18px;
}

.nb-coin-pay-group {
	background: rgba(255, 153, 0, 0.08);
	border: 1px solid rgba(255, 153, 0, 0.3);
	border-radius: 10px;
	padding: 14px 16px;
}

.nb-coin-pay-label {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #ffb84d;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.nb-coin-pay-label input[type="checkbox"] {
	width: auto;
	accent-color: #ff9900;
}

.nb-coin-pay-group .nb-field-note {
	margin: 8px 0 0;
}
