.po-widget,
.po-widget * {
	box-sizing: border-box;
}

.po-widget {
	position: relative;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	color: #10182a;
	font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.po-glow {
	position: absolute;
	inset: -28px -32px -16px;
	background: radial-gradient(ellipse at center, rgba(18, 38, 170, 0.22), transparent 68%);
	filter: blur(28px);
	pointer-events: none;
}

.po-card {
	position: relative;
	overflow: hidden;
	border-radius: 28px;
	border: 1px solid rgba(255, 255, 255, 0.8);
	background: #fff;
	box-shadow: 0 30px 80px -36px rgba(15, 23, 42, 0.45), 0 1px 2px rgba(15, 23, 42, 0.05);
}

.po-shine {
	position: absolute;
	top: 0;
	right: 64px;
	left: 64px;
	z-index: 1;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(244, 129, 57, 0.75), transparent);
	pointer-events: none;
}

.po-header {
	padding: 36px 20px 0;
	text-align: center;
}

.po-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	max-width: 100%;
	margin: 0;
	padding: 6px 14px;
	border-radius: 999px;
	background: #f48139;
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
	box-shadow: 0 10px 24px -12px rgba(244, 129, 57, 0.9);
}

.po-badge svg,
.po-icon svg,
.po-check svg,
.po-arrow,
.po-submit svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.po-badge svg {
	width: 14px;
	height: 14px;
	flex: 0 0 auto;
}

.po-amblem {
	position: absolute;
	top: 50%;
	right: -22%;
	z-index: 0;
	width: 78%;
	height: auto;
	transform: translateY(-50%);
	opacity: 0.15;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 46%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 46%);
}

.po-header,
.po-form,
.po-success {
	position: relative;
	z-index: 1;
}

.po-title {
	margin: 20px 0 0;
	color: #10182a;
	font-size: 2.15rem;
	font-weight: 600;
	letter-spacing: -0.035em;
	line-height: 1;
}

.po-lead {
	max-width: 34rem;
	margin: 16px auto 0;
	color: #64748b;
	font-size: 15.5px;
	line-height: 1.6;
}

.po-form {
	padding: 32px 16px 20px;
}

.po-tray {
	border-radius: 22px;
	background: rgba(244, 247, 251, 0.8);
	padding: 16px;
	box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.po-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.po-field-topic { order: 2; }
.po-field-learn { order: 3; }
.po-field-instructor { order: 4; }

.po-label-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
	align-items: start;
	margin-bottom: 8px;
}

.po-label-row label {
	color: #334155;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
}

.po-star { margin-left: 2px; color: #f48139; }
.po-hint { padding-top: 2px; color: #94a3b8; font-size: 12px; }
.po-count { font-variant-numeric: tabular-nums; }

.po-control,
.po-input-wrap { position: relative; }

.po-icon,
.po-check {
	position: absolute;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	transform: translateY(-50%);
	pointer-events: none;
}

.po-icon { left: 14px; color: #94a3b8; }
.po-icon-top,
.po-check-top { top: 14px; transform: none; }
.po-check { right: 14px; color: #10b981; opacity: 0; }
.po-field.is-filled .po-check { opacity: 1; }

.po-icon svg,
.po-check svg { display: block; width: 16px; height: 16px; }

.po-widget input.po-input,
.po-widget textarea.po-textarea {
	width: 100%;
	margin: 0;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
	color: #10182a;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.4;
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
	outline: none;
}

.po-widget input.po-input {
	height: 48px;
	padding: 0 40px;
}

.po-widget textarea.po-textarea {
	min-height: 144px;
	padding: 12px 40px;
	resize: vertical;
}

.po-widget input.po-input::placeholder,
.po-widget textarea.po-textarea::placeholder { color: #94a3b8; }

.po-widget input.po-input:hover,
.po-widget textarea.po-textarea:hover { border-color: #cbd5e1; }

.po-widget input.po-input:focus,
.po-widget textarea.po-textarea:focus {
	border-color: #1226aa;
	box-shadow: 0 0 0 4px rgba(18, 38, 170, 0.15);
}

.po-field.is-invalid input.po-input,
.po-field.is-invalid textarea.po-textarea {
	border-color: #e11d48;
	box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12);
}

.po-error {
	margin: 6px 0 0;
	color: #f48139;
	font-size: 13px;
	line-height: 1.35;
}

.po-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}

.po-widget button.po-chip {
	margin: 0;
	padding: 4px 10px;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	background: #fff;
	color: #475569;
	font-family: inherit;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	cursor: pointer;
}

.po-widget button.po-chip:hover { border-color: #cbd5e1; color: #0f172a; }
.po-widget button.po-chip.is-selected { border-color: #1226aa; background: #1226aa; color: #fff; }

.po-footer {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 20px 4px 0;
}

.po-note {
	margin: 0;
	color: #64748b;
	font-size: 13px;
	line-height: 1.4;
	text-align: center;
}

.po-note span { color: #f48139; }

.po-widget button.po-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 24px;
	border: 0;
	border-radius: 12px;
	background: #1226aa;
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 12px 28px -14px rgba(18, 38, 170, 0.95);
}

.po-widget button.po-submit:hover { background: #0e1d88; }
.po-widget button.po-submit:disabled { opacity: 0.65; cursor: default; }
.po-arrow { width: 16px; height: 16px; }
.po-widget button.po-submit:hover .po-arrow { transform: translateX(2px); }

.po-alert {
	margin: 0 0 16px;
	padding: 10px 14px;
	border: 1px solid #fecdd3;
	border-radius: 12px;
	background: #fff1f2;
	color: #be123c;
	font-size: 14px;
}

.po-success {
	padding: 40px 20px 48px;
	text-align: center;
}

.po-mark {
	display: grid;
	place-items: center;
	width: 80px;
	height: 80px;
	margin: 0 auto;
	border-radius: 999px;
	background: #eef3ff;
}

.po-mark svg {
	width: 56px;
	height: 56px;
	fill: none;
	stroke: #1226aa;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.po-success-title {
	margin: 24px 0 0;
	color: #10182a;
	font-size: 1.7rem;
	font-weight: 600;
	letter-spacing: -0.03em;
	outline: none;
}

.po-success-text {
	margin: 12px auto 0;
	max-width: 32rem;
	color: #64748b;
	font-size: 15.5px;
	line-height: 1.6;
}

.po-success-text strong { color: #10182a; font-weight: 600; }

.po-widget button.po-again {
	height: 44px;
	margin: 32px 0 0;
	padding: 0 20px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
	color: #10182a;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
}

.po-widget button.po-again:hover { background: #f8fafc; }

.po-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.po-spin { animation: po-spin 0.7s linear infinite; }
@keyframes po-spin { to { transform: rotate(360deg); } }

@media (min-width: 640px) {
	.po-amblem {
		right: -8%;
		width: 52%;
		opacity: 0.17;
	}
	.po-header { padding: 48px 40px 0; }
	.po-title { font-size: 3.15rem; }
	.po-form { padding: 32px 24px 24px; }
	.po-tray { padding: 24px; }
	.po-footer { flex-direction: row; align-items: center; justify-content: space-between; }
	.po-note { text-align: left; }
	.po-widget button.po-submit { width: auto; }
	.po-success { padding: 48px 40px 56px; }
}

@media (min-width: 1024px) {
	.po-grid {
		grid-template-columns: 1fr 1fr;
		column-gap: 20px;
	}
	.po-field-title { grid-column: 1; grid-row: 1; }
	.po-field-topic { order: 0; grid-column: 1; grid-row: 2; }
	.po-field-learn { order: 0; grid-column: 2; grid-row: 1 / span 2; }
	.po-field-instructor { order: 0; grid-column: 1 / -1; }
	.po-field-learn .po-textarea { height: 100%; min-height: 144px; }
}

@media (prefers-reduced-motion: reduce) {
	.po-spin,
	.po-widget button.po-submit:hover .po-arrow { animation: none; transform: none; }
}
