.ebp-portal,
.ebp-portal *,
.ebp-portal *::before,
.ebp-portal *::after {
	box-sizing: border-box;
}

.ebp-portal {
	--ebp-primary: #0056b3;
	--ebp-secondary: #0a84ff;
	--ebp-background: #f4f8fc;
	--ebp-card: #ffffff;
	--ebp-border: #d9e3f0;
	--ebp-text: #1b2a41;
	--ebp-muted: #6b7280;
	--ebp-success: #16a34a;
	--ebp-danger: #dc2626;
	--ebp-focus: rgba(10, 132, 255, 0.28);
	color: var(--ebp-text);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	margin: 0 auto;
	max-width: 900px;
	padding: 20px 12px;
	width: 100%;
}

.ebp-card {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 1)),
		var(--ebp-card);
	border: 1px solid var(--ebp-border);
	border-radius: 8px;
	box-shadow: 0 22px 55px rgba(27, 42, 65, 0.12);
	overflow: hidden;
	position: relative;
}

.ebp-card::before {
	background: linear-gradient(90deg, var(--ebp-primary), var(--ebp-secondary), var(--ebp-success));
	content: "";
	height: 5px;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

.ebp-card__header {
	align-items: center;
	background:
		linear-gradient(135deg, rgba(0, 86, 179, 0.08), rgba(22, 163, 74, 0.06)),
		var(--ebp-background);
	display: grid;
	gap: 18px;
	grid-template-columns: auto 1fr;
	padding: 34px 34px 26px;
}

.ebp-logo-frame {
	align-items: center;
	background: #ffffff;
	border: 1px solid rgba(217, 227, 240, 0.95);
	border-radius: 8px;
	box-shadow: 0 12px 28px rgba(0, 86, 179, 0.12);
	display: flex;
	height: 92px;
	justify-content: center;
	padding: 12px;
	width: 118px;
}

.ebp-company-logo {
	display: block;
	height: auto;
	max-height: 68px;
	max-width: 94px;
	object-fit: contain;
	width: auto;
}

.ebp-heading {
	min-width: 0;
}

.ebp-kicker {
	color: var(--ebp-primary);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0;
	margin: 0 0 7px;
	text-transform: uppercase;
}

.ebp-heading h2 {
	color: var(--ebp-text);
	font-size: clamp(1.55rem, 1.2rem + 1vw, 2.25rem);
	font-weight: 800;
	line-height: 1.18;
	margin: 0;
}

.ebp-heading p:last-child {
	color: var(--ebp-muted);
	font-size: 1rem;
	line-height: 1.6;
	margin: 10px 0 0;
	max-width: 620px;
}

.ebp-form {
	background: #ffffff;
	display: grid;
	gap: 20px;
	padding: 30px 34px 34px;
}

.ebp-fieldset {
	border: 0;
	margin: 0;
	min-width: 0;
	padding: 0;
}

.ebp-fieldset legend {
	color: var(--ebp-text);
	display: block;
	font-size: 0.92rem;
	font-weight: 800;
	margin: 0 0 10px;
	padding: 0;
}

.ebp-company-grid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ebp-company-option,
.ebp-pill-option {
	cursor: pointer;
	display: block;
	position: relative;
	-webkit-tap-highlight-color: transparent;
}

.ebp-company-option input,
.ebp-pill-option input {
	height: 1px;
	opacity: 0;
	position: absolute;
	width: 1px;
}

.ebp-company-option span {
	align-items: center;
	background: #ffffff;
	border: 1px solid var(--ebp-border);
	border-radius: 8px;
	color: var(--ebp-text);
	display: flex;
	font-size: 0.92rem;
	font-weight: 800;
	justify-content: center;
	min-height: 48px;
	padding: 12px 8px;
	text-align: center;
	transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
	width: 100%;
}

.ebp-company-option:hover span,
.ebp-pill-option:hover span {
	border-color: rgba(10, 132, 255, 0.65);
	box-shadow: 0 10px 22px rgba(0, 86, 179, 0.1);
	transform: translateY(-1px);
}

.ebp-company-option input:checked + span {
	background: linear-gradient(180deg, rgba(10, 132, 255, 0.12), rgba(0, 86, 179, 0.08));
	border-color: var(--ebp-secondary);
	color: var(--ebp-primary);
}

.ebp-company-option input:focus-visible + span,
.ebp-pill-option input:focus-visible + span,
.ebp-submit:focus-visible,
.ebp-search-input:focus,
.ebp-select-wrap select:focus {
	box-shadow: 0 0 0 4px var(--ebp-focus);
	outline: none;
}

.ebp-search-type {
	background: var(--ebp-background);
	border: 1px solid var(--ebp-border);
	border-radius: 8px;
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	padding: 8px;
	width: min(100%, 440px);
}

.ebp-pill-option span {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 7px;
	color: var(--ebp-muted);
	display: flex;
	font-weight: 800;
	justify-content: center;
	min-height: 44px;
	padding: 10px 12px;
	text-align: center;
	transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.ebp-pill-option input:checked + span {
	background: #ffffff;
	border-color: var(--ebp-border);
	color: var(--ebp-primary);
}

.ebp-search-row {
	align-items: end;
	display: grid;
	gap: 14px;
	grid-template-columns: minmax(0, 1fr) 124px;
}

.ebp-input-wrap,
.ebp-select-wrap {
	display: grid;
	gap: 8px;
	min-width: 0;
}

.ebp-input-wrap label,
.ebp-select-wrap label {
	color: var(--ebp-text);
	font-size: 0.9rem;
	font-weight: 800;
}

.ebp-input-wrap {
	position: relative;
}

.ebp-input-icon {
	align-items: center;
	bottom: 14px;
	color: var(--ebp-muted);
	display: flex;
	height: 24px;
	left: 16px;
	pointer-events: none;
	position: absolute;
	width: 24px;
}

.ebp-input-icon svg {
	fill: currentColor;
	height: 20px;
	width: 20px;
}

.ebp-search-input,
.ebp-select-wrap select {
	appearance: none;
	background-color: #ffffff;
	border: 1px solid var(--ebp-border);
	border-radius: 8px;
	color: var(--ebp-text);
	font: inherit;
	font-size: 1rem;
	min-height: 54px;
	transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
	width: 100%;
}

.ebp-search-input {
	padding: 0 16px 0 48px;
}

.ebp-search-input::placeholder {
	color: #8a95a6;
	opacity: 1;
}

.ebp-search-input::-webkit-outer-spin-button,
.ebp-search-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.ebp-search-input[type="number"] {
	-moz-appearance: textfield;
}

.ebp-select-wrap {
	position: relative;
}

.ebp-select-wrap::after {
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid var(--ebp-muted);
	bottom: 24px;
	content: "";
	pointer-events: none;
	position: absolute;
	right: 16px;
}

.ebp-select-wrap select {
	cursor: pointer;
	padding: 0 38px 0 16px;
}

.ebp-error {
	align-items: center;
	background: rgba(220, 38, 38, 0.08);
	border: 1px solid rgba(220, 38, 38, 0.24);
	border-radius: 8px;
	color: var(--ebp-danger);
	display: none;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.45;
	min-height: 46px;
	padding: 12px 14px;
}

.ebp-error.is-visible {
	display: flex;
}

.ebp-card.has-error .ebp-search-input {
	border-color: rgba(220, 38, 38, 0.75);
}

.ebp-card.has-error {
	animation: ebp-shake 320ms ease both;
}

.ebp-submit {
	align-items: center;
	background: linear-gradient(135deg, var(--ebp-primary), var(--ebp-secondary));
	border: 0;
	border-radius: 8px;
	box-shadow: 0 16px 32px rgba(0, 86, 179, 0.24);
	color: #ffffff;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 1.04rem;
	font-weight: 850;
	gap: 10px;
	justify-content: center;
	min-height: 56px;
	overflow: hidden;
	padding: 0 24px;
	position: relative;
	transition: box-shadow 180ms ease, filter 180ms ease, transform 180ms ease;
	width: 100%;
}

.ebp-submit:hover {
	box-shadow: 0 20px 38px rgba(0, 86, 179, 0.28);
	filter: saturate(1.05);
	transform: translateY(-1px);
}

.ebp-submit:disabled {
	cursor: wait;
	opacity: 0.82;
	transform: none;
}

.ebp-submit__spinner {
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #ffffff;
	border-radius: 50%;
	display: none;
	height: 18px;
	width: 18px;
}

.ebp-submit.is-loading .ebp-submit__spinner {
	animation: ebp-spin 700ms linear infinite;
	display: inline-block;
}

.ebp-ripple {
	animation: ebp-ripple 580ms ease-out forwards;
	background: rgba(255, 255, 255, 0.42);
	border-radius: 50%;
	height: 20px;
	pointer-events: none;
	position: absolute;
	transform: translate(-50%, -50%) scale(0);
	width: 20px;
}

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

@keyframes ebp-ripple {
	to {
		opacity: 0;
		transform: translate(-50%, -50%) scale(18);
	}
}

@keyframes ebp-shake {
	0%,
	100% {
		transform: translateX(0);
	}
	25% {
		transform: translateX(-4px);
	}
	75% {
		transform: translateX(4px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ebp-portal *,
	.ebp-portal *::before,
	.ebp-portal *::after {
		animation-duration: 1ms !important;
		scroll-behavior: auto !important;
		transition-duration: 1ms !important;
	}
}

@media (max-width: 760px) {
	.ebp-portal {
		padding: 12px 0;
	}

	.ebp-card {
		border-left: 0;
		border-radius: 0;
		border-right: 0;
	}

	.ebp-card__header {
		grid-template-columns: 1fr;
		padding: 28px 18px 22px;
		text-align: center;
	}

	.ebp-logo-frame {
		justify-self: center;
	}

	.ebp-form {
		padding: 24px 18px 26px;
	}

	.ebp-company-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ebp-search-row {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 425px) {
	.ebp-heading h2 {
		font-size: 1.5rem;
	}

	.ebp-company-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ebp-search-type {
		grid-template-columns: 1fr;
	}

	.ebp-company-option span,
	.ebp-pill-option span {
		min-height: 46px;
	}
}
