.ir-ui {
	--ir-navy: #02278e;
	--ir-blue: #02258d;
	--ir-blue-hover: #0a36b8;
	--ir-ink: #0d1530;
	--ir-muted: #5b647d;
	--ir-line: #d8deea;
	--ir-line-soft: #e9edf5;
	--ir-error: #c4282d;
	--ir-ok: #138a52;
	--ir-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--ir-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	box-sizing: border-box;
	color: var(--ir-ink);
	font-family: "Urbanist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.ir-ui *,
.ir-ui *::before,
.ir-ui *::after {
	box-sizing: border-box;
}

@keyframes ir-rise {
	from { opacity: 0; transform: translateY(14px); }
}

@keyframes ir-drop {
	from { opacity: 0; transform: translateY(-6px) scale(0.98); }
}

@keyframes ir-lift {
	from { opacity: 0; transform: translateY(6px) scale(0.98); }
}

@keyframes ir-shake {
	20%, 60% { transform: translateX(-5px); }
	40%, 80% { transform: translateX(5px); }
}

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

@keyframes ir-draw {
	to { stroke-dashoffset: 0; }
}

.ir-ui .ir-card {
	position: relative;
	padding: clamp(28px, 5vw, 48px);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 30px 60px -30px rgba(0, 10, 50, 0.6);
	color: var(--ir-ink);
}

.ir-ui .ir-form[hidden],
.ir-ui .ir-success[hidden],
.ir-ui .ir-alert[hidden],
.ir-ui [hidden].ir-select-option {
	display: none;
}

.ir-ui .ir-group {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.ir-ui .ir-group + .ir-group {
	margin-top: 32px;
	padding-top: 32px;
	border-top: 1px solid var(--ir-line-soft);
}

.ir-ui .ir-legend {
	float: left;
	width: 100%;
	margin: 0 0 18px;
	padding: 0;
	color: var(--ir-ink);
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.ir-ui .ir-legend + * {
	clear: both;
}

.ir-ui .ir-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

.ir-ui .ir-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.ir-ui .ir-field.is-raised {
	position: relative;
	z-index: 40;
}

.ir-ui .ir-label {
	float: none;
	padding: 0;
	color: var(--ir-ink);
	font-size: 15px;
	font-weight: 600;
}

.ir-ui .ir-req {
	color: var(--ir-error);
}

.ir-ui .ir-opt {
	margin-left: 4px;
	color: var(--ir-muted);
	font-size: 13px;
	font-weight: 500;
}

.ir-ui .ir-input {
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 15px;
	border: 1px solid var(--ir-line);
	border-radius: 10px;
	background-color: #fff;
	box-shadow: none;
	color: var(--ir-ink);
	font: inherit;
	font-size: 16px;
	line-height: 1.3;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.ir-ui .ir-input::placeholder {
	color: #9aa3b8;
	opacity: 1;
}

.ir-ui textarea.ir-input {
	height: auto;
	min-height: 116px;
	padding: 14px 15px;
	line-height: 1.5;
	resize: vertical;
}

.ir-ui select.ir-input,
.ir-ui .ir-select-trigger {
	padding-right: 42px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b647d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-position: right 16px center;
	background-repeat: no-repeat;
	cursor: pointer;
}

.ir-ui .ir-input:hover {
	border-color: #b8c1d6;
}

.ir-ui .ir-input:focus,
.ir-ui .ir-select.is-open .ir-select-trigger {
	outline: none;
	border-color: var(--ir-blue);
	box-shadow: 0 0 0 3px rgba(2, 37, 141, 0.16);
}

.ir-ui .ir-input[aria-invalid="true"] {
	border-color: var(--ir-error);
}

.ir-ui .ir-input[aria-invalid="true"]:focus {
	box-shadow: 0 0 0 3px rgba(196, 40, 45, 0.14);
}

.ir-ui .ir-error {
	margin: 0;
	color: var(--ir-error);
	font-size: 14px;
	font-weight: 500;
	animation: ir-drop 0.2s ease-out backwards;
}

.ir-ui .ir-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.ir-ui .ir-select {
	position: relative;
}

.ir-ui .ir-select-trigger {
	display: flex;
	align-items: center;
	text-align: left;
}

.ir-ui .ir-select-value {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.ir-ui .ir-select-text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ir-ui .ir-flag {
	flex: none;
	width: 22px;
	height: 16px;
	border-radius: 2px;
	background: var(--ir-line-soft);
	box-shadow: 0 0 0 1px rgba(13, 21, 48, 0.1);
	object-fit: cover;
}

.ir-ui .ir-select-panel {
	position: absolute;
	z-index: 40;
	top: calc(100% + 6px);
	right: 0;
	left: 0;
	padding: 8px;
	border: 1px solid var(--ir-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 24px 48px -16px rgba(0, 10, 50, 0.32);
	transform-origin: top center;
	animation: ir-drop 0.18s var(--ir-ease) backwards;
}

.ir-ui .ir-select.is-up .ir-select-panel {
	top: auto;
	bottom: calc(100% + 6px);
	transform-origin: bottom center;
	animation-name: ir-lift;
}

.ir-ui .ir-select-search {
	position: relative;
	margin-bottom: 6px;
	color: var(--ir-muted);
}

.ir-ui .ir-select-search svg {
	position: absolute;
	top: 50%;
	left: 12px;
	transform: translateY(-50%);
	pointer-events: none;
}

.ir-ui .ir-select-filter {
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 0 12px 0 36px;
	border: 1px solid var(--ir-line);
	border-radius: 8px;
	background: #fff;
	box-shadow: none;
	color: var(--ir-ink);
	font: inherit;
	font-size: 15px;
}

.ir-ui .ir-select-filter:focus,
.ir-ui .ir-select-list:focus {
	outline: none;
}

.ir-ui .ir-select-filter:focus {
	border-color: var(--ir-blue);
}

.ir-ui .ir-select-list {
	max-height: 280px;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	list-style: none;
	scrollbar-width: thin;
}

.ir-ui .ir-select-option {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 10px 12px;
	border-radius: 7px;
	color: var(--ir-ink);
	font-size: 15px;
	line-height: 1.3;
	cursor: pointer;
	transition: background-color 0.1s;
}

.ir-ui .ir-select-option.is-active {
	background: #eef2fb;
}

.ir-ui .ir-select-option[aria-selected="true"] {
	color: var(--ir-blue);
	font-weight: 700;
}

.ir-ui .ir-select-option[aria-selected="true"]::after {
	content: "";
	width: 14px;
	height: 14px;
	margin-left: auto;
	background: currentColor;
	-webkit-mask: var(--ir-check) center / contain no-repeat;
	mask: var(--ir-check) center / contain no-repeat;
}

.ir-ui .ir-select-empty {
	margin: 0;
	padding: 14px 10px;
	color: var(--ir-muted);
	font-size: 14px;
}

.ir-ui .ir-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ir-ui .ir-pill {
	position: relative;
	margin: 0;
}

.ir-ui .ir-pill input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.ir-ui .ir-pill span {
	display: inline-flex;
	align-items: center;
	height: 46px;
	padding: 0 18px;
	border: 1px solid var(--ir-line);
	border-radius: 10px;
	background: #fff;
	color: var(--ir-ink);
	font-size: 15px;
	font-weight: 600;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.ir-ui .ir-pill span::before {
	content: "";
	width: 0;
	height: 14px;
	margin-right: 0;
	background: currentColor;
	-webkit-mask: var(--ir-check) center / contain no-repeat;
	mask: var(--ir-check) center / contain no-repeat;
	transition: width 0.2s var(--ir-ease), margin 0.2s var(--ir-ease);
}

.ir-ui .ir-pill:hover span {
	border-color: var(--ir-blue);
}

.ir-ui .ir-pill input:checked + span {
	border-color: var(--ir-blue);
	background: var(--ir-blue);
	color: #fff;
}

.ir-ui .ir-pill input:checked + span::before {
	width: 14px;
	margin-right: 8px;
}

.ir-ui .ir-pill input:focus-visible + span {
	box-shadow: 0 0 0 3px rgba(2, 37, 141, 0.2);
}

.ir-ui fieldset[aria-invalid="true"] .ir-pill span {
	border-color: var(--ir-error);
}

.ir-ui .ir-consent {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 32px 0 8px;
	padding-top: 28px;
	border-top: 1px solid var(--ir-line-soft);
	color: var(--ir-muted);
	font-size: 15px;
	line-height: 1.5;
	cursor: pointer;
}

.ir-ui .ir-consent input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: var(--ir-blue);
	cursor: pointer;
}

.ir-ui .ir-consent + .ir-error {
	margin-left: 32px;
}

.ir-ui .ir-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 22px;
	margin-top: 24px;
}

.ir-ui .ir-submit {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 54px;
	padding: 0 30px;
	border: 0;
	border-radius: 7px;
	background: var(--ir-blue);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.15s, transform 0.1s;
}

.ir-ui .ir-submit:hover,
.ir-ui .ir-submit:focus-visible {
	background: var(--ir-blue-hover);
	color: #fff;
}

.ir-ui .ir-submit:active {
	transform: translateY(1px);
}

.ir-ui .ir-submit:focus-visible {
	outline: 3px solid rgba(2, 37, 141, 0.3);
	outline-offset: 3px;
}

.ir-ui .ir-spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 22px;
	height: 22px;
	margin: -11px 0 0 -11px;
	border: 2.5px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	opacity: 0;
	animation: ir-spin 0.7s linear infinite;
}

.ir-ui .ir-submit.is-loading {
	cursor: progress;
}

.ir-ui .ir-submit.is-loading .ir-submit-label {
	opacity: 0;
}

.ir-ui .ir-submit.is-loading .ir-spinner {
	opacity: 1;
}

.ir-ui .ir-hint {
	margin: 0;
	color: var(--ir-muted);
	font-size: 14px;
	font-weight: 600;
}

.ir-ui .ir-hint.is-ready {
	color: var(--ir-ok);
}

.ir-ui .ir-alert {
	margin: 0 0 28px;
	padding: 12px 16px;
	border-left: 3px solid var(--ir-error);
	border-radius: 6px;
	background: #fdeeee;
	color: #8f1d21;
	font-size: 15px;
	font-weight: 500;
	outline: none;
}

.ir-ui .ir-alert.is-shaking {
	animation: ir-shake 0.35s ease;
}

.ir-ui .ir-hp {
	position: absolute !important;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ir-ui .ir-success {
	padding: 16px 0 4px;
	text-align: center;
}

.ir-ui .ir-success > :not(svg) {
	animation: ir-rise 0.5s var(--ir-ease) backwards;
}

.ir-ui .ir-success > :nth-child(2) { animation-delay: 0.45s; }
.ir-ui .ir-success > :nth-child(3) { animation-delay: 0.53s; }
.ir-ui .ir-success > :nth-child(4) { animation-delay: 0.61s; }

.ir-ui .ir-success-icon {
	display: block;
	margin: 0 auto 18px;
}

.ir-ui .ir-success-circle {
	stroke: var(--ir-ok);
	stroke-width: 2;
	stroke-dasharray: 151;
	stroke-dashoffset: 151;
	animation: ir-draw 0.5s 0.05s ease-out forwards;
}

.ir-ui .ir-success-check {
	stroke: var(--ir-ok);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 32;
	stroke-dashoffset: 32;
	animation: ir-draw 0.3s 0.45s ease-out forwards;
}

.ir-ui .ir-success-title {
	margin: 0 0 8px;
	color: var(--ir-ink);
	font-family: inherit;
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.01em;
	outline: none;
}

.ir-ui .ir-success-text {
	max-width: 420px;
	margin: 0 auto 24px;
	color: var(--ir-muted);
	font-size: 17px;
}

.ir-ui .ir-success-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px 24px;
}

.ir-ui .ir-link {
	color: var(--ir-blue);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ir-ui .ir-link:hover {
	color: var(--ir-blue-hover);
}

.ir-ui .ir-btn-ghost {
	height: 44px;
	padding: 0 22px;
	border: 1px solid var(--ir-line);
	border-radius: 7px;
	background: #fff;
	color: var(--ir-ink);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: border-color 0.15s;
}

.ir-ui .ir-btn-ghost:hover {
	border-color: var(--ir-blue);
	background: #fff;
	color: var(--ir-ink);
}

@media (min-width: 640px) {
	.ir-ui .ir-grid {
		grid-template-columns: 1fr 1fr;
	}

	.ir-ui .ir-span-2 {
		grid-column: 1 / -1;
	}

	.ir-ui .ir-submit {
		width: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ir-ui,
	.ir-ui *,
	.ir-ui *::before,
	.ir-ui *::after {
		animation: none !important;
		transition: none !important;
	}

	.ir-ui .ir-success-circle,
	.ir-ui .ir-success-check {
		stroke-dashoffset: 0;
	}
}
