/**
 * Public styles for Event Product Registration.
 *
 * @package Event_Product_Registration
 * @since   1.0.0
 */

 /* ============================================
   HIDE DEFAULT WOOCOMMERCE ELEMENTS FOR EVENT PRODUCT
   ============================================ */
/* body.postid-33143 div.quantity {
	display: none !important;
}

body.postid-33143 button.btn-outline-primary {
	display: none !important;
} */

/* ==========================================================================
   1. REGISTRATION FLOW — CONTAINER
   ========================================================================== */

.epr-registration-flow {
	max-width: 600px;
	margin: 20px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
		Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial,
		sans-serif;
}

/* ==========================================================================
   2. STEPS
   ========================================================================== */

.epr-step {
	margin-bottom: 20px;
}

.epr-step__title {
	font-size: 16px !important;
    font-weight: 600 !important;
    color: #1e1e1e;
    margin: 0 0 12px;
    line-height: 1.4 !important;
}

/* ==========================================================================
   3. RADIO BUTTONS
   ========================================================================== */

.epr-radio-group {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.epr-radio-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 14px;
	color: #333;
	padding: 10px 20px;
	border: 2px solid #ddd;
	border-radius: 8px;
	transition: all 0.2s ease;
	background: #fff !important;
	user-select: none;
}

.epr-radio-label:hover {
	border-color: #0073aa;
	background: #f0f7fc;
}

.epr-radio-label input[type="radio"] {
	margin: 0;
	accent-color: #0073aa;
	width: 16px;
	height: 16px;
	cursor: pointer;
}

.epr-radio-label input[type="radio"]:checked + span {
	color: #0073aa;
	font-weight: 600;
}

.epr-radio-label:has(input[type="radio"]:checked) {
	border-color: #0073aa;
	background: #f0f7fc;
}

/* ==========================================================================
   4. FORM INPUTS (General)
   ========================================================================== */

.epr-input {
	width: 100%;
	padding: 10px 14px;
	font-size: 14px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fff;
	color: #333;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
	outline: none;
}

.epr-input:focus {
	border-color: #0073aa;
	box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15);
}

.epr-input::placeholder {
	color: #999;
}

/* Input with error state */
.epr-input--error {
	border-color: #dc3545 !important;
	box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12) !important;
}

.epr-input--error:focus {
	border-color: #dc3545 !important;
	box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2) !important;
}

/* ==========================================================================
   5. FORM ROW (General)
   ========================================================================== */

.epr-form-row {
	margin-bottom: 16px;
}

.epr-form-row label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #333;
	margin-bottom: 6px;
}

/* Per-field inline error message */
.epr-field-error {
	display: none;
	font-size: 12px;
	color: #dc3545;
	margin-top: 4px;
	line-height: 1.4;
}

.epr-field-error.epr-field-error--visible {
	display: block;
}

/* ==========================================================================
   6. BUTTONS
   ========================================================================== */

.epr-btn {
	display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: none;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    line-height: 1 !important;
    white-space: nowrap;
}

.epr-btn--primary {
	background: #0073aa;
	color: #fff !important;
}

.epr-btn--primary:hover {
	background: #005a87;
	color: #fff;
}

.epr-btn--primary:active {
	background: #004b70;
	transform: translateY(1px);
}

.epr-btn--primary:disabled {
	background: #93c5e1;
	cursor: not-allowed;
	transform: none;
}

.epr-btn--secondary {
	background: #f7f7f7;
	color: #0073aa !important;
	border: 1px solid #ddd;
}

.epr-btn--secondary:hover {
	background: #eef6fb;
	border-color: #0073aa;
	color: #005a87;
}

.epr-btn--full {
	width: 100%;
}

.epr-btn--add-to-cart {
	padding: 14px 32px;
	font-size: 16px;
	border-radius: 8px;
}

/* Button loader */
.epr-btn__loader {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

/* ==========================================================================
   7. MESSAGES (Success / Error / Info)
   ========================================================================== */

.epr-message {
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.5;
	margin: 0;
}

.epr-message p {
	margin: 0;
}

.epr-message--error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
	margin-top: 10px;
}

.epr-message--success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
	margin-top: 10px;
}

.epr-message--info {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1e40af;
}

/* ==========================================================================
   8. SPINNER
   ========================================================================== */

.epr-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: epr-spin 0.6s linear infinite;
	flex-shrink: 0;
}

/* Dark spinner (for non-button contexts like verify loader) */
.epr-loader .epr-spinner {
	border-color: rgba(0, 115, 170, 0.2);
	border-top-color: #0073aa;
}

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

/* Loader wrapper (inline) */
.epr-loader {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #666;
	margin-top: 10px;
}

/* ==========================================================================
   9. EMAIL VERIFY WRAPPER
   ========================================================================== */

.epr-email-verify-wrapper {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.epr-email-verify-wrapper .epr-input {
	flex: 1;
}

.epr-email-verify-wrapper .epr-btn {
	flex-shrink: 0;
}

/* ==========================================================================
   10. PRICE DISPLAY
   ========================================================================== */

.epr-price-display {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 16px;
	padding: 16px;
	background: #f8f9fa;
	border-radius: 8px;
	border: 1px solid #e9ecef;
}

.epr-price-label {
	font-size: 14px;
	font-weight: 600;
	color: #555;
}

.epr-price-value {
	font-size: 24px;
	font-weight: 700;
	color: #0073aa;
}

.epr-membership-badge {
	font-size: 12px;
	color: #666;
	background: #e9ecef;
	padding: 4px 10px;
	border-radius: 20px;
	font-weight: 500;
}

/* ==========================================================================
   11. REGISTRATION LINKS
   ========================================================================== */

.epr-registration-links {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 12px;
}

/* ==========================================================================
   12. LOGIN POPUP — OVERLAY
   ========================================================================== */

.epr-login-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	justify-content: center;
	align-items: center;
	padding: 20px;
	box-sizing: border-box;
}

.epr-login-overlay--active {
	display: flex;
}

/* ==========================================================================
   13. LOGIN POPUP — CARD
   ========================================================================== */

.epr-login-popup {
	position: relative;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3),
	            0 0 0 1px rgba(0, 0, 0, 0.05);
	width: 100%;
	max-width: 420px;
	padding: 0;
	animation: epr-popup-enter 0.3s ease-out;
	overflow: hidden;
}

@keyframes epr-popup-enter {
	from {
		opacity: 0;
		transform: scale(0.95) translateY(10px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

/* ==========================================================================
   14. LOGIN POPUP — CLOSE BUTTON
   ========================================================================== */

.epr-login-popup__close {
	position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: #005e8d !important;
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    z-index: 10;
    padding: 0 !important;
}

.epr-login-popup__close:hover {
	background: #fee2e2;
	color: #dc2626;
	transform: rotate(90deg);
}

.epr-login-popup__close:active {
	transform: rotate(90deg) scale(0.95);
}

/* ==========================================================================
   15. LOGIN POPUP — HEADER
   ========================================================================== */

.epr-login-popup__header {
	padding: 32px 32px 0;
	text-align: center;
}

.epr-login-popup__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
	border-radius: 16px;
	margin-bottom: 16px;
}

.epr-login-popup__icon svg {
	width: 28px;
	height: 28px;
	fill: #fff;
}

.epr-login-popup__title {
	font-size: 22px !important;
    font-weight: 700 !important;
    color: #111827;
    margin: 0 0 6px;
    line-height: 1.3 !important;
}

.epr-login-popup__subtitle {
	font-size: 14px;
	color: #6b7280;
	margin: 0;
	line-height: 1.4;
}

/* ==========================================================================
   16. LOGIN POPUP — FORM FIELDS
   ========================================================================== */

.epr-login-fields {
	padding: 24px 32px 32px;
}

.epr-login-fields .epr-form-row {
	margin-bottom: 18px;
}

.epr-login-fields .epr-form-row label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 6px;
	letter-spacing: 0.01em;
}

.epr-login-fields .epr-input {
	width: 100%;
	padding: 12px 14px;
	font-size: 14px;
	border: 1.5px solid #d1d5db;
	border-radius: 10px;
	background: #f9fafb;
	color: #111827;
	transition: all 0.2s ease;
	box-sizing: border-box;
	outline: none;
}

.epr-login-fields .epr-input:focus {
	border-color: #0073aa;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.1);
}

.epr-login-fields .epr-input::placeholder {
	color: #9ca3af;
}

/* Input error state inside login popup */
.epr-login-fields .epr-input--error {
	border-color: #ef4444 !important;
	background: #fef2f2 !important;
	box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

.epr-login-fields .epr-input--error:focus {
	border-color: #ef4444 !important;
	box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
}

/* ==========================================================================
   17. LOGIN POPUP — MESSAGES (Error / Success)
   ========================================================================== */

.epr-login-fields .epr-message {
	margin: 0 0 18px;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 13px;
	line-height: 1.5;
}

.epr-login-fields .epr-message p {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.epr-login-fields .epr-message--error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

.epr-login-fields .epr-message--success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
}

/* ==========================================================================
   18. LOGIN POPUP — SUBMIT BUTTON
   ========================================================================== */

.epr-login-fields .epr-btn--primary {
	width: 100%;
	padding: 14px 24px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 10px;
	background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
	color: #fff;
	border: none;
	cursor: pointer;
	transition: all 0.2s ease;
	margin-top: 4px;
}

.epr-login-fields .epr-btn--primary:hover {
	background: linear-gradient(135deg, #005a87 0%, #004b70 100%);
	box-shadow: 0 4px 12px rgba(0, 115, 170, 0.35);
	transform: translateY(-1px);
}

.epr-login-fields .epr-btn--primary:active {
	transform: translateY(0);
	box-shadow: 0 2px 6px rgba(0, 115, 170, 0.3);
}

.epr-login-fields .epr-btn--primary:disabled {
	background: linear-gradient(135deg, #93c5e1 0%, #a8d4ea 100%);
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* Spinner inside login button */
.epr-login-fields .epr-btn__loader .epr-spinner {
	border-color: rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
}

/* ==========================================================================
   19. LOGIN POPUP — FOOTER (Forgot Password)
   ========================================================================== */

.epr-login-popup__footer {
	padding: 0 32px 28px;
	text-align: center;
}

.epr-login-popup__footer a {
	font-size: 13px;
    color: #0073aa !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.epr-login-popup__footer a:hover {
	color: #005a87;
	text-decoration: underline;
}

/* ==========================================================================
   20. RESPONSIVE
   ========================================================================== */

@media (max-width: 480px) {

	.epr-login-popup {
		max-width: 100%;
		border-radius: 12px;
	}

	.epr-login-popup__header {
		padding: 24px 20px 0;
	}

	.epr-login-fields {
		padding: 20px 20px 24px;
	}

	.epr-login-popup__footer {
		padding: 0 20px 20px;
	}

	.epr-login-popup__title {
		font-size: 20px;
	}

	.epr-login-popup__icon {
		width: 48px;
		height: 48px;
		border-radius: 12px;
	}

	.epr-login-popup__icon svg {
		width: 24px;
		height: 24px;
	}

	.epr-email-verify-wrapper {
		flex-direction: column;
	}

	.epr-radio-group {
		flex-direction: column;
	}

	.epr-registration-links {
		flex-direction: column;
	}
}
