/* OEG Zoom Registration — shared styles for CTA button, guest form, and modal.
   Scoped with .oeg-zr-* prefix to avoid collision with host WP/Elementor styles.
   Uses OEG design tokens: primary #204F70, secondary #E2EEFF, black #1C1C1E.     */

/* Prevent theme/Elementor CSS from overriding [hidden] on plugin elements */
.oeg-zr-guest-wrap [hidden],
.oeg-zr-btn__spinner[hidden] { display: none !important; }

/* ── Register CTA button ──────────────────────────────────────────────────── */

.oeg-zr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 22px;
	font-size: 14px;
	font-weight: 700;
	font-family: inherit;
	border-radius: 8px;
	text-decoration: none !important;
	cursor: pointer;
	border: none;
	transition: filter 0.15s, background 0.15s, color 0.15s;
	white-space: nowrap;
}

.oeg-zr-btn--register {
	background: #204F70;
	color: #fff !important;
}
.oeg-zr-btn--register:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(32,79,112,0.3); }

.oeg-zr-btn--registered {
	background: #E2EEFF;
	color: #204F70 !important;
	cursor: default;
	pointer-events: none;
}
.oeg-zr-btn--registered:hover,
.oeg-zr-btn--registered:focus {
	background: #E2EEFF !important;
	color: #204F70 !important;
	transform: none !important;
	box-shadow: none !important;
	filter: none !important;
}

.oeg-zr-btn--join {
	background: #204F70;
	color: #fff !important;
	gap: 8px;
}
.oeg-zr-btn--join:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(32,79,112,0.3); }

/* Live pulse dot inside Join Session button */
.oeg-zr-live-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	background: #4cff91;
	border-radius: 50%;
	flex-shrink: 0;
	animation: oeg-zr-pulse 1.4s ease-in-out infinite;
}
@keyframes oeg-zr-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50%       { opacity: 0.5; transform: scale(0.75); }
}

.oeg-zr-btn--upsell {
	background: #FA4457;
	color: #fff !important;
	border: none;
}
.oeg-zr-btn--upsell:hover { filter: brightness(1.08); transform: translateY(-2px); }

.oeg-zr-btn--coming-soon {
	background: #D4DDE5;
	color: #6b7c8c !important;
	cursor: not-allowed;
	pointer-events: none;
	border: none;
}

.oeg-zr-btn--loading {
	opacity: 0.7;
	cursor: wait;
}

.oeg-zr-btn--submit {
	background: #204F70;
	color: #fff !important;
	width: 100%;
	padding: 14px;
	font-size: 15px;
}
.oeg-zr-btn--submit:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(32, 79, 112, 0.3);
}
.oeg-zr-btn--submit:disabled { opacity: 0.5; cursor: not-allowed; }

.oeg-zr-btn__spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255,255,255,0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: oeg-zr-spin 0.6s linear infinite;
	display: inline-block;
}
@keyframes oeg-zr-spin { to { transform: rotate(360deg); } }

.oeg-zr-inline-error {
	margin: 6px 0 0;
	font-size: 13px;
	color: #c0392b;
	font-weight: 600;
}

/* ── Guest registration form ──────────────────────────────────────────────── */

.oeg-zr-guest-wrap {
	max-width: 560px;
	margin: 0 auto;
	font-family: inherit;
	color: #1C1C1E;
}

.oeg-zr-form-title {
	font-size: clamp(20px, 3vw, 26px);
	font-weight: 800;
	margin: 0 0 24px;
	color: #1C1C1E;
}

.oeg-zr-field-group {
	margin-bottom: 18px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.oeg-zr-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
@media (max-width: 480px) { .oeg-zr-field-row { grid-template-columns: 1fr; } }

.oeg-zr-label {
	font-size: 13.5px;
	font-weight: 700;
	color: #1C1C1E;
}

.oeg-zr-required { color: #c0392b; margin-left: 2px; }

.oeg-zr-input,
.oeg-zr-select {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border: 1.5px solid #D4E1EA;
	border-radius: 8px;
	font-size: 15px;
	font-family: inherit;
	color: #1C1C1E;
	background: #fff;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
	box-sizing: border-box;
}
.oeg-zr-input:focus,
.oeg-zr-select:focus {
	border-color: #204F70;
	box-shadow: 0 0 0 4px rgba(32,79,112,0.10);
}

.oeg-zr-existing-account {
	background: #E2EEFF;
	border: 1px solid #b8cfe8;
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 13.5px;
	font-weight: 500;
	color: #1a3c56;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.oeg-zr-login-link {
	font-weight: 700;
	color: #204F70;
	text-decoration: underline;
	white-space: nowrap;
}

.oeg-zr-checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}
.oeg-zr-checkbox-label input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; }

.oeg-zr-create-account { padding-top: 6px; }

.oeg-zr-actions { margin-top: 24px; }


.oeg-zr-no-events {
	color: #7A95AB;
	font-size: 14px;
	margin: 0;
}

/* Select-event prompt (AC 5) */
.oeg-zr-select-prompt {
	font-size: 14px;
	color: #7A95AB;
	font-weight: 500;
	margin: 4px 0 18px;
	padding: 12px 16px;
	background: #f7f9fc;
	border: 1.5px dashed #D4E1EA;
	border-radius: 8px;
	text-align: center;
}

/* Zoom-defined event questions (PRD 6.13) */
.oeg-zr-choice-group { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.oeg-zr-questions-status { font-size: 13.5px; color: #7A95AB; margin: 0 0 12px; }
.oeg-zr-btn-link { background: none; border: 0; padding: 0; color: #204F70; text-decoration: underline; cursor: pointer; font: inherit; }
.oeg-zr-questions-section {
	margin-bottom: 6px;
	padding-top: 4px;
	border-top: 1px solid #E2EEFF;
	padding-bottom: 4px;
}

.oeg-zr-notice {
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 13.5px;
	font-weight: 500;
	margin-bottom: 18px;
	border: 1px solid transparent;
}
.oeg-zr-notice--info    { background: #E2EEFF; border-color: #b8cfe8; color: #1a3c56; }
.oeg-zr-notice--warning { background: #FFF8DC; border-color: #e6c940; color: #7a6200; }

.oeg-zr-error {
	background: #FFEAEA;
	border: 1px solid #f0a0a0;
	border-radius: 6px;
	padding: 10px 14px;
	font-size: 13.5px;
	color: #c0392b;
	font-weight: 600;
	margin: 12px 0 0;
}

/* ── Success state ────────────────────────────────────────────────────────── */

.oeg-zr-success {
	text-align: center;
	padding: 40px 20px;
}
.oeg-zr-success__title {
	font-size: 24px;
	font-weight: 800;
	color: #1C1C1E;
	margin: 16px 0 8px;
}
.oeg-zr-success__detail {
	font-size: 15px;
	font-weight: 700;
	color: #204F70;
	margin: 0 0 6px;
}
.oeg-zr-success__sub {
	font-size: 14px;
	color: #7A95AB;
	margin: 0;
}

/* ── Missing-fields modal ─────────────────────────────────────────────────── */

.oeg-zr-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0,0,0,0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.oeg-zr-modal {
	background: #fff;
	border-radius: 14px;
	padding: 32px;
	width: 100%;
	max-width: 460px;
	position: relative;
	box-shadow: 0 20px 60px rgba(0,0,0,0.22);
}

.oeg-zr-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 28px;
	height: 28px;
	padding: 0;
	flex-shrink: 0;
	border: 1.5px solid #D4E1EA;
	background: #fff;
	border-radius: 8px;
	font-size: 16px;
	cursor: pointer;
	color: #4E667D;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.oeg-zr-modal__close:hover {
	background: #E2EEFF;
	border-color: #204F70;
	color: #204F70;
}

.oeg-zr-modal__title {
	font-size: 20px;
	font-weight: 800;
	color: #1C1C1E;
	margin: 0 36px 6px 0;
}
.oeg-zr-modal__sub {
	font-size: 13px;
	color: #7A95AB;
	margin: 0 0 20px;
	line-height: 1.5;
}
.oeg-zr-modal__error {
	margin: 8px 0 12px;
}

body.oeg-zr-modal-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.oeg-zr-btn__spinner { animation: none; border-top-color: rgba(255,255,255,0.8); }
	.oeg-zr-live-dot { animation: none; }
}

/* ── CTA wrapper — chip + button + login link + helper text ───────────────── */

.oeg-zr-cta-wrap {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

/* ── Access chip ──────────────────────────────────────────────────────────── */

.oeg-zr-access-chip {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 100px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.oeg-zr-access-chip--open {
	background: #E2EEFF;
	color: #204F70;
}

.oeg-zr-access-chip--free-account {
	background: #D5E3FF;
	color: #1a3c70;
}

.oeg-zr-access-chip--oeg-one {
	background: #FFF9C7;
	color: #7a6200;
}

.oeg-zr-access-chip--free-session {
	background: #d9f6e6;
	color: #166534;
}

/* ── Helper text ──────────────────────────────────────────────────────────── */

.oeg-zr-helper-text {
	font-size: 12px;
	color: #6B7C8C;
	margin: 0;
	line-height: 1.4;
	font-weight: 500;
}

/* ── "Already a member? Log in" text link ─────────────────────────────────── */

.oeg-zr-member-login-link {
	font-size: 13px;
	font-weight: 600;
	color: #204F70;
	text-decoration: underline;
	cursor: pointer;
}
.oeg-zr-member-login-link:hover { color: #163a55; }

/* ── "Notify me" link under a Coming Soon CTA (§6.1 AC 11) ───────────────── */

.oeg-zr-notify-me-link {
	font-size: 13px;
	font-weight: 600;
	color: #204F70;
	text-decoration: underline;
	cursor: pointer;
}
.oeg-zr-notify-me-link:hover { color: #163a55; }

/* ── Registered tick ──────────────────────────────────────────────────────── */

.oeg-zr-tick {
	font-style: normal;
}

/* ── Mobile: chip + helper wrap without pushing CTA off-screen (§6.11 AC 5) */
.oeg-zr-cta-wrap {
	max-width: 100%;
	min-width: 0;
}
.oeg-zr-access-chip,
.oeg-zr-helper-text {
	max-width: 100%;
	min-width: 0;
	overflow-wrap: anywhere;
	word-break: break-word;
}
.oeg-zr-access-chip {
	white-space: normal;
}
@media (max-width: 480px) {
	.oeg-zr-cta-wrap {
		display: flex;
		width: 100%;
	}
	.oeg-zr-cta-wrap .oeg-zr-btn {
		width: 100%;
		white-space: normal;
	}
}

/* Phone: country code + number (same pattern as the course-page lead form) */
.oeg-zr-phone-group { display: flex; gap: 8px; align-items: stretch; }
.oeg-zr-phone-group .oeg-zr-phone-code { flex: 0 0 auto; width: 118px; min-width: 0; }
.oeg-zr-phone-group .oeg-zr-phone-number { flex: 1 1 auto; min-width: 0; }
@media (max-width: 480px) { .oeg-zr-phone-group .oeg-zr-phone-code { width: 104px; } }

/* ── Live training registration page: event card, member view ─────────────── */
/* The card reuses the homepage session-card class names and values (oeg-content-calendar). */

.oeg-zr-guest-wrap { max-width: 760px; padding-bottom: 72px; }

.oeg-zr-guest-wrap .session-card { border-radius: 16px; padding: clamp(1.25rem, 2.5vw, 1.75rem); display: flex; flex-direction: column; gap: .5rem; margin: 0 0 24px; }
.oeg-zr-guest-wrap .session-card-header { display: flex; flex-direction: column; align-self: stretch; width: 100%; min-width: 0; gap: .75rem; text-align: left; }
.oeg-zr-guest-wrap .session-header-meta { display: inline-flex; align-items: center; justify-content: flex-end; margin-left: auto; max-width: 100%; gap: .75rem; flex-wrap: wrap; order: 2; }
.oeg-zr-guest-wrap .session-title { margin: 0; padding: 0; min-width: 0; overflow-wrap: anywhere; order: 1; font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-weight: 700; line-height: 1.3; color: inherit; text-align: left; }
.oeg-zr-guest-wrap .session-number { font-size: 1.1rem; font-weight: 700; padding: 6px 16px; background: rgba(255,255,255,.5); border-radius: 8px; display: inline-flex; align-items: center; min-height: 32px; line-height: 1; }
.oeg-zr-guest-wrap .session-badge-live { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 6px 16px; border-radius: 8px; background: rgba(250,68,87,.1); color: #fa4457; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; line-height: 1; }
.oeg-zr-guest-wrap .oeg-portal-live-dot { width: 8px; height: 8px; background: #fa4457; border-radius: 50%; flex-shrink: 0; }
.oeg-zr-guest-wrap .session-access-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.oeg-zr-guest-wrap .session-access-chip--open { background: #E2EEFF; color: #204F70; }
.oeg-zr-guest-wrap .session-access-chip--oeg-one { background: #FFF9C7; color: #7a6200; }
.oeg-zr-guest-wrap .session-datetime-cta-row { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; margin: 8px 0 0; text-align: left; }
.oeg-zr-guest-wrap .session-datetime { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 12px 14px; background: rgba(255,255,255,.5); border-radius: 10px; min-height: 44px; }
.oeg-zr-guest-wrap .datetime-label,
.oeg-zr-guest-wrap .datetime-value { font-size: .95rem; font-weight: 700; }
.oeg-zr-guest-wrap .datetime-separator { font-size: .8rem; opacity: .5; }
.oeg-zr-guest-wrap .datetime-timezone { font-size: .85rem; font-weight: 600; opacity: .8; }
.oeg-zr-guest-wrap .oeg-portal-course-details-link { font-size: 13px; font-weight: 600; color: #204F70; text-decoration: underline; white-space: nowrap; margin: 0; }
.oeg-zr-guest-wrap .oeg-portal-course-details-link:hover { color: #163a54; }

@media (min-width: 640px) {
	.oeg-zr-guest-wrap .session-card-header { flex-direction: row; align-items: center; justify-content: space-between; gap: 1.5rem; }
	.oeg-zr-guest-wrap .session-header-meta { flex: 0 1 auto; max-width: 50%; }
	.oeg-zr-guest-wrap .session-title { order: 1; flex: 1; }
	.oeg-zr-guest-wrap .session-datetime-cta-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 1.25rem; width: 100%; }
}

/* "Already a member? Log in" under the register button, like the cards */
.oeg-zr-below { margin: 8px 0 0; text-align: center; font-size: 13px; }
.oeg-zr-signed-in { margin: -12px 0 20px; font-size: 13px; color: #6B7C8C; }
.oeg-zr-signed-in strong { color: #1C1C1E; }

.oeg-zr-member-view [hidden] { display: none !important; }
.oeg-zr-member-view .oeg-zr-cta-wrap { display: flex; flex-direction: column; gap: 8px; }
.oeg-zr-member-view .oeg-zr-btn { width: 100%; min-height: 48px; justify-content: center; text-align: center; }

/* ── Part 2 lifecycle: cancel registration menu, My Account list ───────────── */

.oeg-zr-btn--cancelling { opacity: 0.7; cursor: default; }
.oeg-zr-inline-note { margin: 6px 0 0; font-size: 13px; color: #204F70; font-weight: 600; }

.oeg-zr-reg-menu-wrap { position: relative; display: inline-block; vertical-align: middle; margin-left: 6px; }
.oeg-zr-reg-menu-toggle {
	width: 32px;
	height: 32px;
	border: 1px solid #b8cfe8;
	border-radius: 8px;
	background: #fff;
	color: #204F70;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}
.oeg-zr-reg-menu-toggle:hover,
.oeg-zr-reg-menu-toggle:focus { background: #E2EEFF; }
.oeg-zr-reg-menu {
	position: absolute;
	z-index: 20;
	top: 36px;
	right: 0;
	min-width: 180px;
	padding: 4px;
	background: #fff;
	border: 1px solid #b8cfe8;
	border-radius: 8px;
	box-shadow: 0 6px 18px rgba(32, 79, 112, 0.18);
}
.oeg-zr-reg-menu[hidden] { display: none; }
.oeg-zr-reg-menu__item {
	display: block;
	width: 100%;
	padding: 8px 10px;
	border: 0;
	border-radius: 6px;
	background: none;
	color: #c0392b;
	font: inherit;
	font-size: 14px;
	text-align: left;
	cursor: pointer;
}
.oeg-zr-reg-menu__item:hover,
.oeg-zr-reg-menu__item:focus { background: #fdecea; }
.oeg-zr-reg-menu__item:disabled { opacity: 0.6; cursor: default; }

.oeg-zr-lt-table { width: 100%; border-collapse: collapse; margin: 0 0 20px; }
.oeg-zr-lt-table th,
.oeg-zr-lt-table td { padding: 10px 8px; border-bottom: 1px solid #E2EEFF; text-align: left; vertical-align: top; }
.oeg-zr-lt-state--active { color: #1d7a46; font-weight: 600; }
.oeg-zr-lt-state--pending { color: #7a6200; font-weight: 600; }
.oeg-zr-lt-cancel { background: none; border: 1px solid #c0392b; color: #c0392b; border-radius: 6px; padding: 6px 10px; cursor: pointer; font: inherit; }
.oeg-zr-lt-cancel:disabled { opacity: 0.6; cursor: default; }
.oeg-zr-lt-msg { margin: 8px 0; font-size: 14px; }
@media (max-width: 600px) {
	.oeg-zr-lt-table thead { display: none; }
	.oeg-zr-lt-table tr { display: block; margin-bottom: 12px; border: 1px solid #E2EEFF; border-radius: 8px; }
	.oeg-zr-lt-table td { display: block; border: 0; }
}
