/**
 * SSBOGC Student Portal Stylesheet
 * High-trust defence aesthetic, accessible responsive layout, interactive components.
 */

:root {
	--ssbogc-navy: #0f172a;
	--ssbogc-navy-light: #1e293b;
	--ssbogc-slate: #334155;
	--ssbogc-muted: #64748b;
	--ssbogc-border: #e2e8f0;
	--ssbogc-bg-light: #f8fafc;
	--ssbogc-gold: #d97706;
	--ssbogc-gold-dark: #b45309;
	--ssbogc-emerald: #059669;
	--ssbogc-emerald-light: #d1fae5;
	--ssbogc-red: #dc2626;
	--ssbogc-red-light: #fee2e2;
	--ssbogc-blue: #2563eb;
	--ssbogc-blue-light: #dbeafe;
	--ssbogc-radius: 8px;
	--ssbogc-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
	--ssbogc-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
}

/* Base Wrapper */
.ssbogc-portal-wrapper {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: var(--ssbogc-navy-light);
	line-height: 1.6;
	max-width: 1140px;
	margin: 0 auto;
	padding: 24px 16px;
}

/* Authentication Cards (Login, Forgot Password, Verify) */
.ssbogc-auth-card {
	max-width: 480px;
	margin: 40px auto;
	background: #ffffff;
	border: 1px solid var(--ssbogc-border);
	border-radius: var(--ssbogc-radius);
	box-shadow: var(--ssbogc-shadow-lg);
	padding: 32px 28px;
}

.ssbogc-auth-header {
	text-align: center;
	margin-bottom: 24px;
}

.ssbogc-auth-header h2 {
	margin: 0 0 8px 0;
	color: var(--ssbogc-navy);
	font-size: 24px;
	font-weight: 700;
}

.ssbogc-auth-header p {
	margin: 0;
	color: var(--ssbogc-muted);
	font-size: 14px;
}

.ssbogc-auth-card .form-group {
	margin-bottom: 18px;
}

.ssbogc-auth-card label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 6px;
	color: var(--ssbogc-navy-light);
}

.ssbogc-auth-card input[type="text"],
.ssbogc-auth-card input[type="email"],
.ssbogc-auth-card input[type="password"],
.ssbogc-portal-wrapper input[type="text"],
.ssbogc-portal-wrapper input[type="email"],
.ssbogc-portal-wrapper input[type="password"],
.ssbogc-portal-wrapper input[type="tel"],
.ssbogc-portal-wrapper input[type="date"],
.ssbogc-portal-wrapper select,
.ssbogc-portal-wrapper textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--ssbogc-border);
	border-radius: 6px;
	font-size: 15px;
	background: #ffffff;
	box-sizing: border-box;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.ssbogc-portal-wrapper input:focus,
.ssbogc-portal-wrapper select:focus,
.ssbogc-portal-wrapper textarea:focus {
	outline: none;
	border-color: var(--ssbogc-gold);
	box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.ssbogc-auth-card .form-actions {
	margin-top: 24px;
}

.btn-ssbogc-primary {
	display: inline-block;
	width: 100%;
	padding: 12px 20px;
	background-color: var(--ssbogc-navy);
	color: #ffffff;
	font-weight: 600;
	font-size: 15px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s, transform 0.1s;
}

.btn-ssbogc-primary:hover {
	background-color: var(--ssbogc-navy-light);
	color: #ffffff;
}

.btn-ssbogc-gold {
	background-color: var(--ssbogc-gold);
	color: #ffffff;
}

.btn-ssbogc-gold:hover {
	background-color: var(--ssbogc-gold-dark);
}

.btn-ssbogc-secondary {
	background-color: #ffffff;
	color: var(--ssbogc-navy);
	border: 1px solid var(--ssbogc-border);
	padding: 8px 16px;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
}

.btn-ssbogc-secondary:hover {
	background-color: var(--ssbogc-bg-light);
}

/* Dashboard Header Banner */
.ssbogc-dashboard-header {
	background: linear-gradient(135deg, var(--ssbogc-navy) 0%, var(--ssbogc-navy-light) 100%);
	color: #ffffff;
	border-radius: var(--ssbogc-radius);
	padding: 28px 24px;
	margin-bottom: 24px;
	box-shadow: var(--ssbogc-shadow);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}

.ssbogc-candidate-meta h1 {
	margin: 0 0 6px 0;
	font-size: 24px;
	font-weight: 700;
	color: #ffffff;
}

.ssbogc-candidate-meta p {
	margin: 0;
	color: #cbd5e1;
	font-size: 14px;
}

/* The theme's ".ssbogc-entry-content strong" turns bold text dark navy, which
   made the reference and username invisible on this dark banner. */
.ssbogc-dashboard-header .ssbogc-candidate-meta p strong {
	color: #ffffff;
}

.ssbogc-reg-badges {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

/* Badges */
.ssbogc-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 700;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.badge-pending {
	background-color: #fef3c7;
	color: #92400e;
	border: 1px solid #fde68a;
}

.badge-confirmed {
	background-color: var(--ssbogc-emerald-light);
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.badge-joined {
	background-color: var(--ssbogc-blue-light);
	color: #1e40af;
	border: 1px solid #bfdbfe;
}

.badge-completed {
	background-color: #f1f5f9;
	color: #475569;
	border: 1px solid #cbd5e1;
}

.badge-cancelled {
	background-color: var(--ssbogc-red-light);
	color: #991b1b;
	border: 1px solid #fecaca;
}

.badge-verified {
	background-color: var(--ssbogc-emerald-light);
	color: #065f46;
}

.badge-unverified {
	background-color: #ffedd5;
	color: #9a3412;
}

/* Alert Notices */
.ssbogc-alert {
	padding: 14px 18px;
	border-radius: 6px;
	margin-bottom: 20px;
	font-size: 14px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.alert-warning {
	background-color: #fffbeb;
	border: 1px solid #fde68a;
	color: #92400e;
}

.alert-danger {
	background-color: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

.alert-success {
	background-color: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
}

.alert-info {
	background-color: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1e40af;
}

/* Countdown Clock */
.ssbogc-countdown-card {
	background: #ffffff;
	border: 1px solid var(--ssbogc-border);
	border-radius: var(--ssbogc-radius);
	padding: 20px;
	margin-bottom: 24px;
	box-shadow: var(--ssbogc-shadow);
	text-align: center;
}

.ssbogc-countdown-card h3 {
	margin: 0 0 14px 0;
	font-size: 16px;
	color: var(--ssbogc-navy);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.ssbogc-clock-grid {
	display: flex;
	justify-content: center;
	gap: 16px;
}

.clock-block {
	background: var(--ssbogc-navy);
	color: #ffffff;
	border-radius: 8px;
	padding: 12px 18px;
	min-width: 60px;
}

.clock-val {
	font-size: 26px;
	font-weight: 800;
	font-family: monospace;
	line-height: 1;
	color: #fef08a;
}

.clock-lbl {
	font-size: 11px;
	color: #94a3b8;
	text-transform: uppercase;
	margin-top: 4px;
}

/* Tabs Navigation */
.ssbogc-tabs-nav {
	display: flex;
	border-bottom: 2px solid var(--ssbogc-border);
	margin-bottom: 24px;
	overflow-x: auto;
	white-space: nowrap;
	scrollbar-width: none;
}

.ssbogc-tabs-nav::-webkit-scrollbar {
	display: none;
}

.tab-btn {
	background: transparent;
	border: none;
	border-bottom: 3px solid transparent;
	padding: 12px 18px;
	font-size: 15px;
	font-weight: 600;
	color: var(--ssbogc-muted);
	cursor: pointer;
	transition: color 0.2s, border-color 0.2s;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: -2px;
}

.tab-btn:hover {
	color: var(--ssbogc-navy);
}

.tab-btn.active {
	color: var(--ssbogc-navy);
	border-bottom-color: var(--ssbogc-gold);
}

.tab-badge {
	background-color: var(--ssbogc-red);
	color: #ffffff;
	border-radius: 10px;
	padding: 2px 7px;
	font-size: 11px;
	font-weight: 700;
}

/* Tab Panels */
.ssbogc-tab-panel {
	display: none;
}

.ssbogc-tab-panel.active {
	display: block;
}

/* Dashboard Cards & Layout */
.ssbogc-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.ssbogc-card {
	background: #ffffff;
	border: 1px solid var(--ssbogc-border);
	border-radius: var(--ssbogc-radius);
	padding: 22px;
	box-shadow: var(--ssbogc-shadow);
	margin-bottom: 20px;
}

.ssbogc-card h3 {
	margin: 0 0 16px 0;
	font-size: 17px;
	color: var(--ssbogc-navy);
	display: flex;
	align-items: center;
	gap: 8px;
	border-bottom: 1px solid var(--ssbogc-border);
	padding-bottom: 10px;
}

.ssbogc-info-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.ssbogc-info-table td {
	padding: 8px 6px;
	border-bottom: 1px solid var(--ssbogc-border);
}

.ssbogc-info-table tr:last-child td {
	border-bottom: none;
}

.ssbogc-info-table td.lbl {
	color: var(--ssbogc-muted);
	font-weight: 600;
	width: 40%;
}

.ssbogc-info-table td.val {
	color: var(--ssbogc-navy);
	font-weight: 500;
}

/* Checklist Section */
.checklist-category {
	margin-bottom: 24px;
}

.checklist-category h4 {
	margin: 0 0 12px 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--ssbogc-navy);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	background: var(--ssbogc-bg-light);
	padding: 8px 12px;
	border-radius: 4px;
	border-left: 3px solid var(--ssbogc-gold);
}

.checklist-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 6px;
	transition: background-color 0.15s;
	border-bottom: 1px solid #f1f5f9;
}

.checklist-item:hover {
	background-color: var(--ssbogc-bg-light);
}

.checklist-item input[type="checkbox"] {
	margin-top: 4px;
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: var(--ssbogc-emerald);
}

.checklist-item-content {
	flex: 1;
}

.checklist-item-title {
	font-weight: 600;
	font-size: 14px;
	color: var(--ssbogc-navy-light);
}

.checklist-item.is-done .checklist-item-title {
	text-decoration: line-through;
	color: var(--ssbogc-muted);
}

.checklist-item-desc {
	font-size: 13px;
	color: var(--ssbogc-muted);
	margin-top: 2px;
}

.checklist-progress-bar {
	background: #e2e8f0;
	border-radius: 10px;
	height: 12px;
	overflow: hidden;
	margin: 16px 0 24px 0;
}

.checklist-progress-fill {
	background: linear-gradient(90deg, var(--ssbogc-emerald) 0%, #34d399 100%);
	height: 100%;
	width: 0%;
	transition: width 0.3s ease;
}

/* Downloads Section */
.resource-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}

.resource-card {
	border: 1px solid var(--ssbogc-border);
	border-radius: 8px;
	padding: 16px;
	background: #ffffff;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.resource-card h4 {
	margin: 0 0 6px 0;
	font-size: 15px;
	color: var(--ssbogc-navy);
}

.resource-card p {
	margin: 0 0 14px 0;
	font-size: 13px;
	color: var(--ssbogc-muted);
	flex-grow: 1;
}

.resource-card .btn-download {
	align-self: flex-start;
	background: var(--ssbogc-navy);
	color: #ffffff;
	padding: 8px 14px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.resource-card .btn-download:hover {
	background: var(--ssbogc-navy-light);
}

/* Messages & Announcements */
.message-item {
	border: 1px solid var(--ssbogc-border);
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 16px;
	background: #ffffff;
	transition: border-color 0.2s;
}

.message-item.is-unread {
	border-left: 4px solid var(--ssbogc-blue);
	background: #f8fafc;
}

.message-item.priority-urgent {
	border-left: 4px solid var(--ssbogc-red);
}

.message-item.priority-high {
	border-left: 4px solid var(--ssbogc-gold);
}

.message-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
	flex-wrap: wrap;
	gap: 8px;
}

.message-header h4 {
	margin: 0;
	font-size: 16px;
	color: var(--ssbogc-navy);
}

.message-meta {
	font-size: 12px;
	color: var(--ssbogc-muted);
}

.message-body {
	font-size: 14px;
	color: var(--ssbogc-navy-light);
	line-height: 1.6;
}

.message-actions {
	margin-top: 10px;
	text-align: right;
}

.btn-mark-read {
	background: transparent;
	border: none;
	color: var(--ssbogc-blue);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
	.ssbogc-grid-2 {
		grid-template-columns: 1fr;
	}
	.ssbogc-dashboard-header {
		flex-direction: column;
		align-items: flex-start;
	}
	.ssbogc-clock-grid {
		gap: 8px;
	}
	.clock-block {
		padding: 8px 12px;
		min-width: 50px;
	}
	.clock-val {
		font-size: 20px;
	}
}

/* =============================================================
   Cookie Consent Banner & Modal Styles (PRD Section 19)
   ============================================================= */
.ssbogc-cookie-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #0f172a;
	color: #f8fafc;
	border-top: 2px solid #d97706;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
	z-index: 999990;
	padding: 16px 20px;
	font-family: inherit;
}

.ssbogc-cookie-banner-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.ssbogc-cookie-content {
	flex: 1 1 600px;
}

.ssbogc-cookie-title {
	margin: 0 0 4px 0;
	font-size: 15px;
	color: #facc15;
}

.ssbogc-cookie-desc {
	margin: 0;
	font-size: 13px;
	color: #cbd5e1;
	line-height: 1.5;
}

.ssbogc-cookie-desc a {
	color: #93c5fd;
	text-decoration: underline;
}

.ssbogc-cookie-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.ssbogc-btn-cookie {
	padding: 9px 18px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid transparent;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.ssbogc-btn-cookie-primary {
	/* White on #d97706 is 3.2:1 at 13px. Dark label takes it to 7.6:1. */
	background: #d97706;
	color: #050C18;
	border-color: #b45309;
}

.ssbogc-btn-cookie-primary:hover {
	background: #b45309;
}

.ssbogc-btn-cookie-secondary {
	background: #334155;
	color: #f8fafc;
	border-color: #475569;
}

.ssbogc-btn-cookie-secondary:hover {
	background: #475569;
}

.ssbogc-btn-cookie-outline {
	background: transparent;
	color: #e2e8f0;
	border-color: #64748b;
}

.ssbogc-btn-cookie-outline:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: #cbd5e1;
}

/* Preferences Modal */
.ssbogc-cookie-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999995;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.ssbogc-cookie-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(15, 23, 42, 0.75);
	backdrop-filter: blur(4px);
}

.ssbogc-cookie-modal-dialog {
	position: relative;
	background: #ffffff;
	border-radius: 10px;
	max-width: 560px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25);
	z-index: 2;
}

.ssbogc-cookie-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 24px;
	border-bottom: 1px solid var(--ssbogc-border);
	background: #0f172a;
	color: #ffffff;
	border-radius: 10px 10px 0 0;
}

.ssbogc-cookie-modal-header h3 {
	margin: 0;
	font-size: 18px;
	color: #facc15;
}

.ssbogc-cookie-modal-close {
	background: transparent;
	border: none;
	color: #94a3b8;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.ssbogc-cookie-modal-close:hover {
	color: #ffffff;
}

.ssbogc-cookie-modal-body {
	padding: 24px;
}

.ssbogc-cookie-category {
	background: #f8fafc;
	border: 1px solid var(--ssbogc-border);
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 16px;
}

.ssbogc-cookie-cat-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
}

.ssbogc-badge-always-active {
	font-size: 11px;
	background: #dcfce7;
	color: #166534;
	padding: 2px 8px;
	border-radius: 9999px;
	font-weight: 600;
	margin-left: 8px;
}

.ssbogc-cookie-cat-desc {
	margin: 0;
	font-size: 13px;
	color: var(--ssbogc-muted);
	line-height: 1.5;
}

.ssbogc-cookie-modal-footer {
	padding: 16px 24px;
	background: #f1f5f9;
	border-top: 1px solid var(--ssbogc-border);
	text-align: right;
	border-radius: 0 0 10px 10px;
}

/* Switches */
.ssbogc-switch {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
}

.ssbogc-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.ssbogc-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #cbd5e1;
	transition: .3s;
	border-radius: 24px;
}

.ssbogc-slider:before {
	position: absolute;
	content: "";
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: .3s;
	border-radius: 50%;
}

.ssbogc-switch input:checked + .ssbogc-slider {
	background-color: #059669;
}

.ssbogc-switch input:checked + .ssbogc-slider:before {
	transform: translateX(20px);
}

/* Floating Cookie Preferences Trigger Button */
.ssbogc-floating-cookie-trigger {
	position: fixed;
	bottom: 20px;
	left: 20px;
	background: #0f172a;
	color: #facc15;
	border: 1px solid #334155;
	border-radius: 9999px;
	padding: 8px 14px;
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
	z-index: 99990;
	transition: transform 0.2s, background-color 0.2s;
}

.ssbogc-floating-cookie-trigger:hover {
	transform: scale(1.05);
	background: #1e293b;
}

/* Clear the mobile sticky CTA bar. Both floating widgets are fixed at
   bottom:20-24px with a z-index far above the bar's, so they sat on top of it
   and swallowed taps meant for the Call and Register buttons underneath. The
   bar is ~70px tall (see the body padding-bottom that reserves it). */
@media (max-width: 767px) {
	.ssbogc-floating-cookie-trigger,
	.ssbogc-floating-wa {
		bottom: 86px;
	}
}

/* =============================================================
   Floating WhatsApp Quick-Chat Widget
   ============================================================= */
.ssbogc-floating-wa {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 99990;
}

.ssbogc-floating-wa-btn {
	/* A round icon button with the wordmark floating alongside it, rather than
	   one wide pill: the circle is the thing the eye locks onto, and dropping
	   the label out of the button itself keeps the tap target compact where it
	   overlaps page content. */
	position: relative;
	width: 60px;
	height: 60px;
	padding: 0;
	border-radius: 50%;
	/* White glyph on the brand green, as asked. Worth knowing: this pair is
	   1.98:1, under the 3:1 WCAG asks of a meaningful icon. The mark still
	   reads because it is a large solid shape people already know, and the
	   floating label spells the action out beside it. */
	background: #25d366;
	color: #fff !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none !important;
	box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
	transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s;
}

.ssbogc-floating-wa-btn:hover,
.ssbogc-floating-wa-btn:focus-visible {
	transform: translateY(-3px) scale(1.04);
	box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
}

.ssbogc-floating-wa-btn:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.ssbogc-floating-wa-label {
	/* Hidden until the circle is hovered or focused, so the wordmark cannot
	   sit on top of page content - the footer copyright most of all. The
	   button's aria-label carries the same words for assistive tech, so
	   nothing is lost while it is out of sight. */
	position: absolute;
	right: calc(100% + 12px);
	top: 50%;
	transform: translateY(-50%) translateX(8px);
	white-space: nowrap;
	padding: 8px 14px;
	border-radius: 9999px;
	background: #050C18;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.ssbogc-floating-wa-btn:hover .ssbogc-floating-wa-label,
.ssbogc-floating-wa-btn:focus-visible .ssbogc-floating-wa-label {
	opacity: 1;
	visibility: visible;
	transform: translateY(-50%) translateX(0);
}

/* The floating label is decoration on top of the button's own aria-label, so
   it goes rather than wrapping onto two lines when there is no room for it. */
@media (max-width: 600px) {
	.ssbogc-floating-wa-label {
		display: none;
	}
}

/* =============================================================
   Media Facades (YouTube & Maps)
   ============================================================= */
.ssbogc-youtube-facade {
	position: relative;
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
	background: #0f172a;
	box-shadow: var(--ssbogc-shadow-lg);
}

/* The whole still is the button. */
.ssbogc-facade-placeholder {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	width: 100%;
	aspect-ratio: 16 / 9;
	padding: 24px;
	margin: 0;
	border: 0;
	text-align: left;
	cursor: pointer;
	overflow: hidden;
	background: linear-gradient(135deg, var(--ssbogc-navy-900, #0a192f) 0%, var(--ssbogc-navy-950, #050c18) 100%);
	color: #ffffff;
	font: inherit;
}

.ssbogc-facade-poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.ssbogc-facade-placeholder:hover .ssbogc-facade-poster {
	transform: scale(1.04);
}

/* Compact variant: poster plus a corner play button, no overlay text.
   The button sits bottom-right because these thumbnails carry the
   candidate's name in large type across the middle. */
.ssbogc-youtube-facade--compact .ssbogc-facade-placeholder {
	align-items: flex-end;
	justify-content: flex-end;
	padding: 12px;
}

.ssbogc-youtube-facade--compact .ssbogc-facade-scrim {
	background: rgba(5, 12, 24, 0.12);
	transition: background 0.2s ease;
}

.ssbogc-youtube-facade--compact .ssbogc-facade-placeholder:hover .ssbogc-facade-scrim {
	background: rgba(5, 12, 24, 0.3);
}

.ssbogc-youtube-facade--compact .ssbogc-facade-play-btn {
	position: relative;
	margin: 0;
	width: 48px;
	height: 48px;
	box-shadow: 0 0 0 5px rgba(245, 166, 35, 0.3), 0 6px 18px rgba(5, 12, 24, 0.5);
}

.ssbogc-youtube-facade--compact .ssbogc-facade-play-btn svg {
	width: 20px;
	height: 20px;
}

/* Keeps the label legible over any still. */
.ssbogc-facade-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(5, 12, 24, 0.15) 0%, rgba(5, 12, 24, 0.55) 55%, rgba(5, 12, 24, 0.88) 100%);
}

.ssbogc-facade-content {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	max-width: 520px;
}

.ssbogc-facade-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(245, 166, 35, 0.18);
	border: 1px solid rgba(245, 166, 35, 0.45);
	color: var(--ssbogc-gold-400, #fbbf24);
	padding: 4px 12px;
	border-radius: 9999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.ssbogc-facade-title {
	margin: 0;
	font-family: var(--ssbogc-font-heading, inherit);
	font-size: 22px;
	line-height: 1.25;
	color: #ffffff;
	font-weight: 700;
	text-shadow: 0 1px 12px rgba(5, 12, 24, 0.6);
}

/* Gold, matching the site's primary action, rather than YouTube red. */
.ssbogc-facade-play-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	margin-top: 4px;
	border-radius: 50%;
	background: var(--ssbogc-gold-gradient, linear-gradient(135deg, #f5a623 0%, #d97706 100%));
	color: var(--ssbogc-navy-950, #050c18);
	box-shadow: 0 0 0 8px rgba(245, 166, 35, 0.2);
	transition: transform 0.2s, box-shadow 0.2s;
}

.ssbogc-facade-placeholder:hover .ssbogc-facade-play-btn,
.ssbogc-facade-placeholder:focus-visible .ssbogc-facade-play-btn {
	transform: scale(1.08);
	box-shadow: 0 0 0 12px rgba(245, 166, 35, 0.3);
}

.ssbogc-facade-placeholder:focus-visible {
	outline: 3px solid var(--ssbogc-gold-500, #f5a623);
	outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
	.ssbogc-facade-poster,
	.ssbogc-facade-play-btn {
		transition: none;
	}

	.ssbogc-facade-placeholder:hover .ssbogc-facade-poster {
		transform: none;
	}
}

@media (max-width: 575px) {
	.ssbogc-facade-placeholder {
		padding: 16px;
	}

	.ssbogc-facade-title {
		font-size: 17px;
	}

	.ssbogc-facade-play-btn {
		width: 52px;
		height: 52px;
	}
}

.ssbogc-maps-facade {
	border: 1px solid var(--ssbogc-border);
	border-radius: 8px;
	background: #ffffff;
	overflow: hidden;
	box-shadow: var(--ssbogc-shadow);
	margin: 20px 0;
}

.ssbogc-maps-card {
	padding: 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
	background: #f8fafc;
}

.ssbogc-maps-info {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.ssbogc-maps-icon {
	background: #0f172a;
	color: #facc15;
	padding: 10px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ssbogc-maps-info h4 {
	margin: 0 0 4px 0;
	font-size: 17px;
	color: #0f172a;
}

.ssbogc-maps-info p {
	margin: 0 0 4px 0;
	font-size: 14px;
	color: #475569;
}

/* #d97706 on the card's near-white ground is 3.0:1 at 13px, under AA.
   #b45309 keeps the amber read at 5.3:1. */
.ssbogc-maps-landmark {
	font-size: 13px !important;
	color: #b45309 !important;
}

.ssbogc-maps-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.ssbogc-btn-maps {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 18px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	transition: all 0.2s;
}

.ssbogc-btn-maps-directions {
	background: #0f172a;
	color: #ffffff !important;
}

.ssbogc-btn-maps-directions:hover {
	background: #1e293b;
}

.ssbogc-btn-maps-load {
	background: #ffffff;
	border-color: #cbd5e1;
	color: #334155;
}

.ssbogc-btn-maps-load:hover {
	background: #f1f5f9;
}

/* General CTA shortcodes */
.ssbogc-btn-whatsapp {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	/* Dark label on the brand green: white on #25d366 is only 2.0:1. */
	background: #25d366;
	color: #050C18 !important;
	padding: 10px 20px;
	border-radius: 6px;
	font-weight: 700;
	text-decoration: none !important;
	font-size: 14px;
	transition: opacity 0.2s;
}

.ssbogc-btn-whatsapp:hover {
	opacity: 0.9;
}

.ssbogc-btn-call {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #0f172a;
	color: #ffffff !important;
	padding: 10px 20px;
	border-radius: 6px;
	font-weight: 700;
	text-decoration: none !important;
	font-size: 14px;
	transition: background-color 0.2s;
}

.ssbogc-btn-call:hover {
	background: #1e293b;
}


/* ==========================================================================
   Registration success ("Thank You") screen
   The candidate's seat is not held until they pay offline, so this screen has
   to carry the reference, the amount and the WhatsApp hand-off on its own -
   it cannot rely on the confirmation email arriving.
   ========================================================================== */

.ssbogc-success-card {
	background: #fff;
	border: 1px solid var(--ssbogc-border);
	border-radius: var(--ssbogc-radius);
	box-shadow: var(--ssbogc-shadow);
	padding: 32px;
	max-width: 640px;
	margin: 0 auto;
}

.ssbogc-success-head {
	text-align: center;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--ssbogc-border);
	margin-bottom: 24px;
}

.ssbogc-success-tick {
	font-size: 40px;
	line-height: 1;
	color: var(--ssbogc-emerald);
	margin-bottom: 12px;
}

.ssbogc-success-head h2 {
	margin: 0 0 8px 0;
	color: var(--ssbogc-navy);
	font-size: 24px;
}

.ssbogc-success-head p {
	margin: 0;
	color: var(--ssbogc-muted);
	font-size: 15px;
}

/* The reference is the one thing they must not lose. */
.ssbogc-ref-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-align: center;
	background: var(--ssbogc-bg-light);
	border: 2px dashed var(--ssbogc-navy);
	border-radius: var(--ssbogc-radius);
	padding: 20px 16px;
	margin-bottom: 20px;
}

.ssbogc-ref-label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ssbogc-muted);
}

.ssbogc-ref-value {
	font-size: 26px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--ssbogc-navy);
	word-break: break-all;
}

.ssbogc-ref-hint {
	font-size: 13px;
	color: var(--ssbogc-slate);
}

.ssbogc-success-step {
	margin: 28px 0 12px 0;
	font-size: 16px;
	color: var(--ssbogc-navy);
}

.ssbogc-success-note {
	font-size: 14px;
	color: var(--ssbogc-muted);
	margin: 10px 0 0 0;
}

.ssbogc-amount-due {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 10px;
	background: var(--ssbogc-emerald-light);
	border-radius: var(--ssbogc-radius);
	padding: 14px 18px;
	margin-bottom: 14px;
}

.ssbogc-amount-due span {
	font-size: 14px;
	color: var(--ssbogc-slate);
}

.ssbogc-amount-due strong {
	font-size: 28px;
	color: var(--ssbogc-navy);
	line-height: 1;
}

.ssbogc-amount-due small {
	font-size: 12px;
	color: var(--ssbogc-slate);
}

.ssbogc-pay-box {
	border: 1px solid var(--ssbogc-border);
	border-radius: var(--ssbogc-radius);
	overflow: hidden;
}

.ssbogc-pay-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 12px 16px;
	font-size: 15px;
}

.ssbogc-pay-row + .ssbogc-pay-row {
	border-top: 1px solid var(--ssbogc-border);
}

.ssbogc-pay-row span {
	color: var(--ssbogc-muted);
	font-size: 14px;
}

.ssbogc-pay-row strong {
	color: var(--ssbogc-navy);
	font-size: 17px;
	letter-spacing: 0.02em;
	text-align: right;
}

.ssbogc-wa-cta {
	display: block;
	text-align: center;
	margin-top: 4px;
}

/* One-tap UPI payment. upi:// links only work on a phone, so on a desktop
   (fine pointer + hover) the button is replaced by a note to use the UPI ID. */
.ssbogc-upi-cta {
	display: block;
	text-align: center;
	margin: 4px 0 6px;
	font-size: 17px;
}

.ssbogc-pay-actions {
	display: grid;
	gap: 10px;
	margin: 4px 0 8px;
}

.ssbogc-pay-actions .ssbogc-upi-cta {
	margin: 0;
}

.ssbogc-upi-other {
	display: block;
	text-align: center;
	font-size: 14px;
}

.ssbogc-upi-desktop-note {
	display: none;
}

/* QR block */
.ssbogc-upi-qr {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 14px 0 18px;
	padding: 14px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #ffffff;
}

.ssbogc-upi-qr-code {
	flex: none;
	line-height: 0;
}

.ssbogc-upi-qr-code svg {
	width: 168px;
	height: 168px;
}

.ssbogc-upi-qr-text {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 14px;
	color: #475569;
	line-height: 1.5;
}

.ssbogc-upi-qr-text strong {
	color: var(--ssbogc-navy);
	font-size: 15px;
}

@media (max-width: 480px) {
	.ssbogc-upi-qr {
		flex-direction: column;
		text-align: center;
	}
}

/* Desktop: upi:// links cannot open an app, so hide the pay buttons and lead
   with the QR code, which the visitor scans with their phone. */
@media (hover: hover) and (pointer: fine) {
	.ssbogc-pay-actions,
	.ssbogc-upi-hint {
		display: none;
	}

	.ssbogc-upi-desktop-note {
		display: block;
	}

	.ssbogc-upi-qr-code svg {
		width: 200px;
		height: 200px;
	}
}

.ssbogc-copy-btn {
	margin-left: 8px;
	padding: 2px 10px;
	font-size: 12px;
	font-weight: 700;
	color: var(--ssbogc-navy);
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	cursor: pointer;
	vertical-align: middle;
}

.ssbogc-summary-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.ssbogc-summary-table th,
.ssbogc-summary-table td {
	text-align: left;
	padding: 10px 0;
	border-bottom: 1px solid var(--ssbogc-border);
	vertical-align: top;
}

.ssbogc-summary-table th {
	font-weight: 500;
	color: var(--ssbogc-muted);
	width: 45%;
}

.ssbogc-summary-table td {
	color: var(--ssbogc-navy);
}

.ssbogc-summary-table tr:last-child th,
.ssbogc-summary-table tr:last-child td {
	border-bottom: none;
}

.ssbogc-summary-hint {
	color: var(--ssbogc-muted);
	font-size: 13px;
}

@media (max-width: 560px) {
	.ssbogc-success-card {
		padding: 22px 18px;
	}

	.ssbogc-ref-value {
		font-size: 21px;
	}

	.ssbogc-pay-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 2px;
	}

	.ssbogc-pay-row strong {
		text-align: left;
	}
}
