/* ==========================================================================
   Ashbar Exams — Payment styles
   ========================================================================== */

.ashbar-exams-payment {
	margin: 1.5em 0;
	padding: 1.5em;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	background: #f6f7f7;
	max-width: 480px;
}

.ashbar-exams-payment-step {
	display: block;
}

/* ===== Step 1: email + terms ============================================ */
.ashbar-exams-payment-label {
	display: block;
	margin-bottom: 0.4em;
	font-weight: 600;
	font-size: 1em;
}

.ashbar-exams-payment-input {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 0.6em 0.75em;
	font-size: 1em;
	line-height: 1.3;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ashbar-exams-payment-input:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.ashbar-exams-payment-input-ltr {
	direction: ltr;
	text-align: left;
}

.ashbar-exams-payment-input-half {
	width: calc(50% - 0.25em);
	display: inline-block;
	box-sizing: border-box;
}

.ashbar-exams-payment-help {
	margin: 0.4em 0 1em 0;
	color: #646970;
	font-size: 0.9em;
	line-height: 1.4;
}

.ashbar-exams-payment-terms {
	display: flex;
	align-items: flex-start;
	gap: 0.5em;
	margin: 0.5em 0 1em 0;
	cursor: pointer;
	line-height: 1.5;
}

.ashbar-exams-payment-terms input[type="checkbox"] {
	width: auto;
	margin-top: 0.25em;
	flex: 0 0 auto;
}

.ashbar-exams-payment-terms a {
	color: #2271b1;
	text-decoration: underline;
}

.ashbar-exams-payment-next {
	width: 100%;
	margin-top: 0.5em;
}

.ashbar-exams-payment-step1-errors {
	margin: 0.5em 0 1em 0;
	padding: 0.5em 0.75em;
	color: #b32d2e;
	background: #fcf0f1;
	border-right: 3px solid #b32d2e;
	border-radius: 2px;
}

/* ===== Step 2: price + ID + PayPal ====================================== */
.ashbar-exams-payment-price {
	margin-bottom: 1em;
	padding: 0.75em 1em;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75em;
}

.ashbar-exams-payment-price-label {
	font-weight: 600;
}

.ashbar-exams-payment-price-value {
	font-size: 1.05em;
	font-weight: 700;
	color: #00733b;
}

.ashbar-exams-payment-id-wrap {
	margin: 0 0 1em 0;
}

.ashbar-exams-payment-user-id {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 0.6em 0.75em;
	font-size: 1em;
	line-height: 1.3;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #fff;
	text-align: center;
	direction: ltr;
}

.ashbar-exams-payment-user-id:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.ashbar-exams-payment-user-id-error {
	display: block;
	margin-top: 0.3em;
	color: #b32d2e;
	font-size: 0.9em;
	min-height: 1.2em;
}

/* PayPal buttons + spinner */
.ashbar-exams-paypal-button-wrap {
	margin-top: 1em;
	min-height: 50px;
}

.ashbar-exams-paypal-button-container {
	min-height: 50px;
	pointer-events: none;
	opacity: 0.4;
	transition: opacity 0.15s ease;
}

/* The processing overlay covers the whole viewport during the brief window
   between PayPal's onApprove (their popup closes) and our redirect to the
   solution page. position:fixed + high z-index means it lands wherever the
   user happens to be scrolled — no need to chase them with scroll-to-top.

   Hidden by default. The .is-active class on the *body* shows it (we toggle
   it at the body level so the overlay element itself can live anywhere in
   the DOM tree without z-index/parent-stacking-context surprises from
   Elementor / themes). */
.ashbar-exams-processing-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2147483600;
	background: rgba(20, 24, 35, 0.78);
	align-items: center;
	justify-content: center;
}

body.ashbar-exams-processing .ashbar-exams-processing-overlay {
	display: flex;
}

/* Prevent background scroll/interaction while the overlay is up. */
body.ashbar-exams-processing {
	overflow: hidden;
}

.ashbar-exams-processing-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1em;
	padding: 2em 2.5em;
	min-width: 240px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
	color: #1d2327;
	font-family: inherit;
	direction: rtl;
	text-align: center;
}

.ashbar-exams-processing-circle {
	width: 48px;
	height: 48px;
	border: 4px solid #dcdcde;
	border-top-color: #2271b1;
	border-radius: 50%;
	animation: ashbar-exams-spin 0.8s linear infinite;
}

.ashbar-exams-processing-text {
	margin: 0;
	font-size: 1.05em;
	font-weight: 600;
}

@keyframes ashbar-exams-spin {
	to { transform: rotate(360deg); }
}

/* ===== Fake credit card form (honeypot) ================================ */
.ashbar-exams-payment-fake-cc form p {
	margin: 0 0 0.75em 0;
}

.ashbar-exams-payment-fake-cc input + input {
	margin-right: 0.5em;
}

.ashbar-exams-payment-fake-error {
	margin: 0.75em 0;
	padding: 0.6em 0.85em;
	color: #b32d2e;
	background: #fcf0f1;
	border-right: 3px solid #b32d2e;
	border-radius: 2px;
}

.ashbar-exams-payment-fake-submit {
	width: 100%;
}
