/**
 * EduNexa — Ultra-Solid & Professional Forms, Inputs & Payment Styles
 *
 * @package EduNexa
 * @author  امیر حسین بناوند (Amir Hossein Banavand)
 * @link    https://npocto.ir
 * @version 1.1.0
 */

/* ==========================================================================
   Form Wrapper & Container
   ========================================================================== */
.edunexa-form-wrapper {
	width: 100%;
	max-width: 880px;
	margin: 0 auto;
	box-sizing: border-box;
	font-family: inherit;
	direction: rtl;
	text-align: right;
}

.edunexa-form-card {
	background: #ffffff;
	border: 1.5px solid #e2e8f0;
	border-radius: 28px;
	box-shadow: 0 20px 50px -12px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(0, 0, 0, 0.02);
	padding: 44px;
	position: relative;
	overflow: hidden;
	transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.edunexa-form-card:hover {
	box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.12), 0 8px 16px rgba(0, 0, 0, 0.03);
	border-color: #cbd5e1;
}

/* Luxury Top Accent Line */
.edunexa-form-card::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 6px;
	background: linear-gradient(90deg, #FAB237 0%, #f59e0b 50%, #222733 100%);
}

/* ==========================================================================
   Header & Badges
   ========================================================================== */
.edunexa-form-header {
	margin-bottom: 36px;
	border-bottom: 1.5px solid #f1f5f9;
	padding-bottom: 28px;
	position: relative;
}

.edunexa-form-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(250, 178, 55, 0.14);
	color: #b45309;
	font-size: 0.82rem;
	font-weight: 800;
	padding: 6px 16px;
	border-radius: 30px;
	margin-bottom: 16px;
	letter-spacing: 0.3px;
	border: 1px solid rgba(250, 178, 55, 0.3);
}

.nx-badge-dot {
	width: 9px;
	height: 9px;
	background: #FAB237;
	border-radius: 50%;
	display: inline-block;
	box-shadow: 0 0 0 3px rgba(250, 178, 55, 0.35);
	animation: nxPulse 2s infinite ease-in-out;
}

@keyframes nxPulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.45; transform: scale(0.85); }
}

.edunexa-form-title {
	font-size: 1.75rem;
	font-weight: 900;
	color: #0f172a;
	margin: 0 0 10px 0;
	line-height: 1.35;
	letter-spacing: -0.5px;
}

.edunexa-form-subtitle {
	font-size: 0.98rem;
	color: #64748b;
	margin: 0;
	line-height: 1.65;
	max-width: 680px;
}

/* Feedback / Alert Notice */
.edunexa-form-feedback {
	padding: 16px 20px;
	border-radius: 14px;
	margin-bottom: 28px;
	font-size: 0.95rem;
	font-weight: 800;
	line-height: 1.5;
	display: flex;
	align-items: center;
	gap: 10px;
	animation: fadeInNotice 0.3s ease;
}

@keyframes fadeInNotice {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: translateY(0); }
}

.edunexa-form-feedback.is-error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1.5px solid #fecaca;
	box-shadow: 0 4px 14px rgba(239, 68, 68, 0.08);
	display: flex;
}

.edunexa-form-feedback.is-success {
	background: #f0fdf4;
	color: #15803d;
	border: 1.5px solid #bbf7d0;
	box-shadow: 0 4px 14px rgba(22, 163, 74, 0.08);
	display: flex;
}

/* ==========================================================================
   Grid System & Fields Architecture
   ========================================================================== */
.edunexa-form-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 26px;
}

.edunexa-form-field-wrap {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	position: relative;
}

.nx-col-12 {
	flex: 0 0 100%;
	width: 100%;
}

.nx-col-6 {
	flex: 0 0 calc(50% - 13px);
	width: calc(50% - 13px);
}

.nx-col-4 {
	flex: 0 0 calc(33.333% - 17.3px);
	width: calc(33.333% - 17.3px);
}

@media (max-width: 768px) {
	.nx-col-6, .nx-col-4 {
		flex: 0 0 100%;
		width: 100%;
	}
	.edunexa-form-card {
		padding: 28px 20px;
		border-radius: 20px;
	}
	.edunexa-form-title {
		font-size: 1.45rem;
	}
}

/* ==========================================================================
   Solid Field Labels & Typography
   ========================================================================== */
.edunexa-field-label {
	font-size: 0.96rem;
	font-weight: 800;
	color: #1e293b;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: color 0.2s ease;
}

.edunexa-form-field-wrap:focus-within .edunexa-field-label {
	color: #0f172a;
}

.required-star {
	color: #ef4444;
	font-weight: 900;
	font-size: 1.05rem;
	margin-right: 2px;
}

/* ==========================================================================
   Robust Input Elements (اینپوت‌های قدرتمند و بنیه‌دار)
   ========================================================================== */
.edunexa-input {
	width: 100%;
	height: 54px;
	background: #f8fafc;
	border: 1.5px solid #e2e8f0;
	border-radius: 14px;
	padding: 0 18px;
	font-size: 0.98rem;
	font-weight: 600;
	font-family: inherit;
	color: #0f172a;
	box-sizing: border-box;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	outline: none;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) inset;
}

.edunexa-input::placeholder {
	color: #94a3b8;
	font-weight: 400;
	font-size: 0.92rem;
}

.edunexa-input:hover {
	background: #ffffff;
	border-color: #cbd5e1;
}

.edunexa-input:focus {
	background: #ffffff;
	border-color: #FAB237;
	box-shadow: 0 0 0 4px rgba(250, 178, 55, 0.18), 0 6px 16px -2px rgba(250, 178, 55, 0.12);
	color: #000000;
}

/* Valid & Invalid States */
.edunexa-input.is-invalid {
	border-color: #ef4444 !important;
	background: #fffbfa !important;
	box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14) !important;
}

.edunexa-input.is-valid {
	border-color: #10b981 !important;
	background: #f0fdf4 !important;
	box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14) !important;
}

.edunexa-textarea {
	height: auto;
	min-height: 120px;
	padding: 16px 18px;
	line-height: 1.6;
	resize: vertical;
}

/* ==========================================================================
   Name Inputs (تک‌فیلدی یا دو بخشی)
   ========================================================================== */
.edunexa-single-name-wrap {
	width: 100%;
}

.edunexa-name-group {
	display: flex;
	gap: 16px;
}

.edunexa-subfield {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.edunexa-sublabel {
	font-size: 0.82rem;
	font-weight: 700;
	color: #64748b;
	padding-right: 4px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.edunexa-sublabel::before {
	content: '';
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #cbd5e1;
	display: inline-block;
}

.edunexa-subfield:focus-within .edunexa-sublabel {
	color: #FAB237;
}

.edunexa-subfield:focus-within .edunexa-sublabel::before {
	background: #FAB237;
}

/* ==========================================================================
   Digital Inputs (کد ملی و موبایل با اعداد واضح)
   ========================================================================== */
.edunexa-input-with-icon {
	position: relative;
	width: 100%;
}

.edunexa-validate-national,
.edunexa-validate-mobile {
	font-family: inherit;
	font-feature-settings: "tnum";
	letter-spacing: 1px;
	font-weight: 700;
	direction: ltr;
	padding-left: 90px;
}

.nx-validation-badge {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 0.78rem;
	font-weight: 800;
	padding: 4px 10px;
	border-radius: 8px;
	letter-spacing: 0;
	pointer-events: none;
	animation: badgePop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes badgePop {
	from { transform: translateY(-50%) scale(0.8); opacity: 0; }
	to { transform: translateY(-50%) scale(1); opacity: 1; }
}

.nx-validation-badge.valid {
	background: #dcfce7;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

.nx-validation-badge.invalid {
	background: #fee2e2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

/* Help Text */
.edunexa-field-help {
	font-size: 0.83rem;
	color: #64748b;
	margin-top: 8px;
	line-height: 1.5;
	display: flex;
	align-items: center;
	gap: 6px;
}

.edunexa-field-help::before {
	content: 'ℹ';
	font-size: 0.85rem;
	color: #94a3b8;
}

/* ==========================================================================
   Ultra-Solid File Upload Dropzone (دراپ‌زون لوکس آپلود مدارک)
   ========================================================================== */
.edunexa-file-dropzone {
	position: relative;
	background: #f8fafc;
	border: 2px dashed #cbd5e1;
	border-radius: 16px;
	padding: 14px 18px;
	display: flex;
	align-items: center;
	transition: all 0.25s ease;
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) inset;
	min-height: 54px;
	box-sizing: border-box;
}

.edunexa-file-dropzone:hover {
	border-color: #FAB237;
	background: #fffdfa;
	box-shadow: 0 4px 12px rgba(250, 178, 55, 0.1);
}

.edunexa-file-input {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	z-index: 2;
}

.edunexa-file-ui {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	pointer-events: none;
}

.edunexa-file-browse-btn {
	background: #222733;
	border: 1px solid rgba(250, 178, 55, 0.4);
	border-radius: 10px;
	padding: 8px 18px;
	font-size: 0.85rem;
	font-weight: 800;
	color: #FAB237;
	white-space: nowrap;
	box-shadow: 0 2px 6px rgba(34, 39, 51, 0.15);
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.edunexa-file-dropzone:hover .edunexa-file-browse-btn {
	background: #0f172a;
	border-color: #FAB237;
	color: #ffffff;
	transform: translateY(-1px);
}

.edunexa-file-chosen-text {
	font-size: 0.9rem;
	color: #64748b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	direction: ltr;
	text-align: right;
	font-weight: 600;
}

/* File Selected State */
.edunexa-file-dropzone.has-file {
	border-color: #10b981;
	border-style: solid;
	background: #f0fdf4;
	box-shadow: 0 4px 15px rgba(16, 185, 129, 0.12);
}

.edunexa-file-dropzone.has-file .edunexa-file-chosen-text {
	color: #15803d;
	font-weight: 800;
}

.edunexa-file-dropzone.has-file .edunexa-file-browse-btn {
	background: #10b981;
	color: #ffffff;
	border-color: #059669;
}

/* ==========================================================================
   Solid Radio Cards (کارت‌های انتخابی نوع آزمون)
   ========================================================================== */
.edunexa-radio-cards-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.edunexa-radio-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 22px;
	background: #ffffff;
	border: 1.5px solid #e2e8f0;
	border-radius: 16px;
	cursor: pointer;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	user-select: none;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.edunexa-radio-card:hover {
	border-color: #cbd5e1;
	background: #f8fafc;
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.edunexa-radio-input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.radio-custom-indicator {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 2px solid #cbd5e1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: all 0.25s ease;
	background: #ffffff;
}

.radio-custom-indicator::after {
	content: '';
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #FAB237;
	opacity: 0;
	transform: scale(0.3);
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.radio-card-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

.radio-card-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	text-align: right;
}

.radio-opt-title {
	font-size: 1.02rem;
	font-weight: 800;
	color: #1e293b;
	letter-spacing: -0.2px;
}

.radio-opt-desc {
	font-size: 0.82rem;
	font-weight: 500;
	color: #64748b;
	line-height: 1.5;
}

.edunexa-radio-card.is-selected .radio-opt-desc {
	color: #475569;
}

.radio-opt-price {
	font-size: 0.94rem;
	font-weight: 800;
	color: #0284c7;
	background: #f0f9ff;
	padding: 6px 14px;
	border-radius: 30px;
	border: 1px solid #bae6fd;
	box-shadow: 0 2px 6px rgba(2, 132, 199, 0.08);
	letter-spacing: 0.2px;
	white-space: nowrap;
}

/* Radio Card Selected */
.edunexa-radio-card.is-selected {
	border-color: #FAB237;
	border-width: 2px;
	background: #fffdf7;
	box-shadow: 0 8px 24px rgba(250, 178, 55, 0.16);
	transform: translateY(-2px);
}

.edunexa-radio-card.is-selected .radio-custom-indicator {
	border-color: #FAB237;
	box-shadow: 0 0 0 3px rgba(250, 178, 55, 0.2);
}

.edunexa-radio-card.is-selected .radio-custom-indicator::after {
	opacity: 1;
	transform: scale(1);
}

.edunexa-radio-card.is-selected .radio-opt-title {
	color: #0f172a;
}

.edunexa-radio-card.is-selected .radio-opt-price {
	background: #222733;
	color: #FAB237;
	border-color: #222733;
}

.radio-opt-price.is-free {
	color: #059669;
	background: #ecfdf5;
	border-color: #a7f3d0;
	box-shadow: 0 2px 6px rgba(5, 150, 105, 0.08);
}

.edunexa-radio-card.is-selected .radio-opt-price.is-free {
	background: #059669;
	color: #ffffff;
	border-color: #059669;
}

/* ==========================================================================
   Accordion Style (آکاردئونی بازشونده با جزئیات کامل)
   ========================================================================== */
.edunexa-accordion-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.edunexa-accordion-card {
	background: #ffffff;
	border: 1.5px solid #e2e8f0;
	border-radius: 16px;
	overflow: hidden;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.edunexa-accordion-card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.edunexa-accordion-card.is-selected {
	border-color: #FAB237;
	border-width: 2px;
	background: #fffdf9;
	box-shadow: 0 8px 24px rgba(250, 178, 55, 0.14);
}

.accordion-card-header {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 20px;
	cursor: pointer;
	user-select: none;
	width: 100%;
	box-sizing: border-box;
}

.accordion-card-title-wrap {
	flex: 1;
	text-align: right;
}

.accordion-opt-title {
	font-size: 1rem;
	font-weight: 800;
	color: #1e293b;
}

.edunexa-accordion-card.is-selected .accordion-opt-title {
	color: #0f172a;
}

.accordion-card-meta {
	display: flex;
	align-items: center;
	gap: 12px;
}

.accordion-opt-price {
	font-size: 0.9rem;
	font-weight: 800;
	color: #0284c7;
	background: #f0f9ff;
	padding: 5px 12px;
	border-radius: 30px;
	border: 1px solid #bae6fd;
	white-space: nowrap;
}

.edunexa-accordion-card.is-selected .accordion-opt-price {
	background: #222733;
	color: #FAB237;
	border-color: #222733;
}

.accordion-opt-price.is-free {
	color: #059669;
	background: #ecfdf5;
	border-color: #a7f3d0;
}

.edunexa-accordion-card.is-selected .accordion-opt-price.is-free {
	background: #059669;
	color: #ffffff;
}

.accordion-chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #94a3b8;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.edunexa-accordion-card.is-selected .accordion-chevron,
.edunexa-accordion-card.is-open .accordion-chevron {
	transform: rotate(180deg);
	color: #FAB237;
}

.accordion-card-body {
	border-top: 1px dashed #e2e8f0;
	background: rgba(250, 178, 55, 0.04);
	transition: all 0.3s ease;
}

.accordion-card-content {
	padding: 14px 22px 18px 22px;
}

.accordion-desc-text {
	font-size: 0.88rem;
	color: #475569;
	line-height: 1.7;
	margin: 0;
	font-weight: 500;
}

/* ==========================================================================
   Pills / Badges Style (نشان‌های دکمه‌ای مدرن)
   ========================================================================== */
.edunexa-pills-group {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.edunexa-pill-label {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 18px;
	background: #ffffff;
	border: 1.5px solid #e2e8f0;
	border-radius: 40px;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	user-select: none;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.edunexa-pill-label:hover {
	border-color: #cbd5e1;
	background: #f8fafc;
	transform: translateY(-1px);
}

.pill-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #cbd5e1;
	transition: all 0.2s ease;
}

.pill-title {
	font-size: 0.92rem;
	font-weight: 700;
	color: #334155;
}

.pill-price {
	font-size: 0.82rem;
	font-weight: 800;
	color: #0284c7;
	background: #f0f9ff;
	padding: 2px 8px;
	border-radius: 20px;
	white-space: nowrap;
}

.pill-price.is-free {
	color: #059669;
	background: #ecfdf5;
}

.edunexa-pill-label.is-selected {
	background: #222733;
	border-color: #222733;
	box-shadow: 0 4px 14px rgba(34, 39, 51, 0.2);
	transform: translateY(-1px);
}

.edunexa-pill-label.is-selected .pill-dot {
	background: #FAB237;
	box-shadow: 0 0 8px rgba(250, 178, 55, 0.8);
}

.edunexa-pill-label.is-selected .pill-title {
	color: #ffffff;
}

.edunexa-pill-label.is-selected .pill-price {
	background: rgba(250, 178, 55, 0.2);
	color: #FAB237;
}

.edunexa-pill-label.is-selected .pill-price.is-free {
	background: rgba(16, 185, 129, 0.2);
	color: #34d399;
}

/* ==========================================================================
   Classic Radio Style (لیست رادیویی کلاسیک مدرن)
   ========================================================================== */
.edunexa-classic-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #f8fafc;
	border: 1.5px solid #e2e8f0;
	border-radius: 16px;
	padding: 12px;
}

.edunexa-classic-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 16px;
	background: #ffffff;
	border-radius: 10px;
	border: 1px solid #e2e8f0;
	cursor: pointer;
	transition: all 0.2s ease;
	user-select: none;
}

.edunexa-classic-item:hover {
	border-color: #cbd5e1;
	background: #fafbfc;
}

.classic-radio-circle {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid #cbd5e1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	background: #ffffff;
	transition: all 0.2s ease;
}

.classic-radio-circle::after {
	content: '';
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #FAB237;
	opacity: 0;
	transform: scale(0.4);
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.classic-content-wrap {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-align: right;
}

.classic-title {
	font-size: 0.95rem;
	font-weight: 700;
	color: #1e293b;
}

.classic-desc {
	font-size: 0.8rem;
	color: #64748b;
}

.classic-price {
	font-size: 0.88rem;
	font-weight: 800;
	color: #0284c7;
	white-space: nowrap;
}

.classic-price.is-free {
	color: #059669;
}

.edunexa-classic-item.is-selected {
	border-color: #FAB237;
	background: #fffdf5;
}

.edunexa-classic-item.is-selected .classic-radio-circle {
	border-color: #FAB237;
}

.edunexa-classic-item.is-selected .classic-radio-circle::after {
	opacity: 1;
	transform: scale(1);
}

.edunexa-classic-item.is-selected .classic-title {
	color: #0f172a;
}

/* ==========================================================================
   Robust Total Price Box (باکس مجموع نهایی شاپرک)
   ========================================================================== */
.edunexa-pricing-total-box {
	background: radial-gradient(circle at 95% 10%, rgba(250, 178, 55, 0.16) 0%, transparent 60%), linear-gradient(135deg, #222733 0%, #151922 100%);
	color: #ffffff;
	border-radius: 20px;
	padding: 24px 32px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: 0 16px 35px -5px rgba(34, 39, 51, 0.35), 0 0 0 1px rgba(250, 178, 55, 0.25);
	margin-top: 14px;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.edunexa-pricing-total-box::before {
	content: '';
	position: absolute;
	right: -30px;
	top: -30px;
	width: 100px;
	height: 100px;
	background: radial-gradient(circle, rgba(250, 178, 55, 0.2) 0%, transparent 70%);
	pointer-events: none;
}

.pricing-label {
	font-size: 1.15rem;
	font-weight: 800;
	color: #e2e8f0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.pricing-label::before {
	content: '💳';
	font-size: 1.25rem;
}

.pricing-value-wrapper {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.pricing-amount {
	font-size: 2.3rem;
	font-weight: 900;
	color: #FAB237;
	font-feature-settings: "tnum";
	letter-spacing: -0.5px;
	text-shadow: 0 2px 14px rgba(250, 178, 55, 0.3);
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-currency {
	font-size: 1.05rem;
	font-weight: 800;
	color: #cbd5e1;
}

/* ==========================================================================
   Submit Button with Luxury Shimmer (دکمه اکشن طلا)
   ========================================================================== */
.edunexa-form-actions {
	margin-top: 36px;
}

.edunexa-submit-btn {
	width: 100%;
	height: 60px;
	background: linear-gradient(135deg, #FAB237 0%, #f59e0b 50%, #ea580c 100%);
	color: #222733;
	border: none;
	border-radius: 16px;
	font-size: 1.15rem;
	font-weight: 900;
	font-family: inherit;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	box-shadow: 0 10px 28px rgba(250, 178, 55, 0.4);
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	position: relative;
	overflow: hidden;
}

/* Shimmer Sweep Animation */
.edunexa-submit-btn::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	bottom: -50%;
	left: -50%;
	background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 100%);
	transform: rotate(30deg) translate(-100%, 0);
	transition: transform 0.8s ease;
}

.edunexa-submit-btn:hover::before {
	transform: rotate(30deg) translate(100%, 0);
}

.edunexa-submit-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 35px rgba(250, 178, 55, 0.5);
	color: #0f172a;
}

.edunexa-submit-btn:active {
	transform: translateY(0);
	box-shadow: 0 6px 18px rgba(250, 178, 55, 0.3);
}

.edunexa-submit-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.btn-spinner .nx-spin {
	width: 24px;
	height: 24px;
	animation: nxRotating 0.8s linear infinite;
}

@keyframes nxRotating {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

.edunexa-security-notice {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 0.84rem;
	font-weight: 600;
	color: #64748b;
	margin-top: 22px;
	text-align: center;
}

.edunexa-security-notice svg {
	color: #10b981;
}

/* ==========================================================================
   Receipt & Thank You Page Styles
   ========================================================================== */
.edunexa-receipt-wrapper {
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
	box-sizing: border-box;
	direction: rtl;
}

.edunexa-receipt-card {
	background: #ffffff;
	border: 1.5px solid #e2e8f0;
	border-radius: 28px;
	padding: 44px;
	box-shadow: 0 16px 45px rgba(0, 0, 0, 0.06);
	text-align: center;
	position: relative;
	overflow: hidden;
}

.edunexa-receipt-card::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 6px;
}

.edunexa-receipt-card.is-success::before {
	background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

.edunexa-receipt-card.is-failed::before {
	background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
}

.receipt-header {
	margin-bottom: 30px;
}

.receipt-icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 18px auto;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.edunexa-receipt-card.is-success .receipt-icon {
	background: #dcfce7;
	border: 2px solid #bbf7d0;
}

.edunexa-receipt-card.is-failed .receipt-icon {
	background: #fee2e2;
	border: 2px solid #fecaca;
}

.receipt-title {
	font-size: 1.55rem;
	font-weight: 900;
	color: #0f172a;
	margin: 0 0 10px 0;
}

.receipt-desc {
	font-size: 0.95rem;
	color: #64748b;
	margin: 0;
	line-height: 1.6;
}

.receipt-code-highlight {
	background: #f8fafc;
	border: 2px dashed #0284c7;
	border-radius: 16px;
	padding: 20px 26px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 30px;
	flex-wrap: wrap;
	gap: 14px;
}

.code-title {
	font-size: 0.92rem;
	font-weight: 800;
	color: #64748b;
}

.code-value {
	font-size: 1.5rem;
	font-family: monospace;
	font-weight: 900;
	color: #0284c7;
	letter-spacing: 1.5px;
}

.btn-copy-code {
	background: #0284c7;
	color: #ffffff;
	border: none;
	border-radius: 10px;
	padding: 8px 18px;
	font-size: 0.85rem;
	font-weight: 800;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.btn-copy-code:hover {
	background: #0369a1;
	transform: translateY(-1px);
}

.receipt-details-table {
	background: #ffffff;
	border: 1.5px solid #e2e8f0;
	border-radius: 18px;
	padding: 20px 24px;
	margin-bottom: 30px;
	text-align: right;
}

.receipt-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 0;
	border-bottom: 1px dashed #e2e8f0;
	font-size: 0.96rem;
}

.receipt-row:last-child {
	border-bottom: none;
}

.r-label {
	color: #64748b;
	font-weight: 700;
}

.r-value {
	color: #0f172a;
	font-weight: 800;
}

.r-value.highlight-price {
	color: #10b981;
	font-size: 1.25rem;
}

.receipt-actions {
	display: flex;
	gap: 16px;
	justify-content: center;
}

.btn-receipt-print {
	background: #222733;
	color: #FAB237;
	border: 1px solid rgba(250, 178, 55, 0.4);
	padding: 14px 28px;
	border-radius: 14px;
	font-size: 0.98rem;
	font-weight: 800;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	transition: all 0.25s ease;
	box-shadow: 0 4px 14px rgba(34, 39, 51, 0.2);
}

.btn-receipt-print:hover {
	background: #0f172a;
	transform: translateY(-2px);
	border-color: #FAB237;
}

.btn-receipt-home {
	background: #f1f5f9;
	color: #334155;
	text-decoration: none;
	padding: 14px 28px;
	border-radius: 14px;
	font-size: 0.98rem;
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	transition: all 0.25s ease;
	border: 1px solid #e2e8f0;
}

.btn-receipt-home:hover {
	background: #e2e8f0;
	color: #0f172a;
	transform: translateY(-2px);
}

@media (max-width: 640px) {
	.edunexa-receipt-card {
		padding: 24px 16px;
		border-radius: 18px;
	}

	.receipt-header {
		margin-bottom: 20px;
	}

	.receipt-icon {
		width: 64px;
		height: 64px;
	}

	.receipt-title {
		font-size: 1.3rem;
	}

	.receipt-desc {
		font-size: 0.875rem;
	}

	.receipt-actions {
		flex-direction: column;
		width: 100%;
		gap: 10px;
	}

	.btn-receipt-print,
	.btn-receipt-home {
		width: 100%;
		justify-content: center;
		padding: 12px 18px;
		font-size: 0.92rem;
	}

	.receipt-row {
		padding: 12px 14px;
		font-size: 0.875rem;
	}
}

@media print {
	body * {
		visibility: hidden;
	}
	.edunexa-receipt-wrapper, .edunexa-receipt-wrapper * {
		visibility: visible;
	}
	.edunexa-receipt-wrapper {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
	}
	.receipt-actions, .btn-copy-code {
		display: none !important;
	}
}

