@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');

html {
	scroll-behavior: smooth;
}
body {
	margin: 0;
	font-family: "Inter", sans-serif;
	font-size: 14px;
	background-color: #f8f8f8;
	color: #212529;
}

.page-calc .indicator-form2 {
    padding-top: 0;
    margin-top: -100px;
    position: relative;
    z-index: 10;
}

.page-calc .indicator-form2 .form-floating>label {
	width: 100%;
}

.page-calc .indicator-form2 .btn {
	min-height: auto;
}

.site-form {
	max-width: 1200px;
	margin: 0 auto;
	padding: 16px;
}

.form__check {
	position: absolute;
	opacity: 0;
}
.form__check:checked + label .svg-checkbox rect:last-child {
	opacity: 1;
	fill: red;
}

.form-search__list {
	position: absolute;
	background: #e9ecef;
	z-index: 9999;
	left: 0;
	width: 100%;
	top: calc(100% + 5px);
	border: 1px solid #ccc;
	border-radius: 5px;
	padding: 0;
	margin: 0;
	max-height: 300px;
	overflow: auto;
	display: none;
}
.form-search__list li {
	list-style: none;
	padding: 10px;
	border-bottom: 1px solid #ccc;
	cursor: pointer;
}
.form-search--mark,
.form-search--model,
.form-search--address {
	position: relative;
}

.card .card__title {
	font-size: 1.25rem;
	font-weight: 600;
	background-color: #aac15c59;
	text-align: center;
}

.insurance-calculator__item {
	background: #fff;
	border: 1px solid #dee2e6;
	border-radius: 5px;
	padding: 15px;
	margin-bottom: 15px;
}
.insurance-calculator__item .top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}
.insurance-calculator__item .logo img {
	max-height: 48px;
	max-width: 140px;
}
.insurance-calculator__name {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
}
.insurance-calculator__price {
	text-align: right;
}
.insurance-calculator__item .cost {
	font-size: 1.35rem;
	font-weight: 600;
	margin-bottom: 8px;
}
.insurance-calculator__error,
.insurance-calculator__messang {
	margin-top: 12px;
	padding: 8px 12px;
	background: #fff3cd;
	border: 1px solid #ffecb5;
	border-radius: 4px;
	color: #664d03;
}
.insurance-calculator__messang p {
	margin-bottom: 5px;
	font-size: 14px;
}
.insurance-calculator__item .params {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.insurance-calculator__item .params span {
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 4px;
	padding: 4px 8px;
}
.insurance-calculator__item .params span strong {
	margin-right: 4px;
}

.invalid-tooltip {
	position: absolute;
	z-index: 10000;
	background: #dc3545;
	color: #fff;
	padding: 6px 10px;
	border-radius: 4px;
	font-size: 13px;
}

.insurance-calculator > .row {
	margin-left: 0;
	margin-right: 0;
}

.insurance-calculator > .row > .tab-content {
	width: 100%;
	margin-top: 0;
	padding-left: 0;
	padding-right: 0;
}

.form-steps {
	display: flex;
	align-items: center;
	width: 100%;
	gap: 0;
	margin: 4px 0 22px;
}

.form-steps__item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1 1 0;
	min-width: 0;
	border: 0;
	background: #f3f3f3;
	color: #2b2b2b;
	border-radius: 999px;
	padding: 5px 18px 5px 5px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	text-align: left;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}

.page-calculator {
	margin-bottom: 0;
}

.osago-calculator__inner {
	padding: 50px 1px;
}

.form-steps__label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.form-steps__item.is-active {
	background: #111149;
	color: #fff;
}

.form-steps__item.is-locked {
	cursor: default;
}

.form-steps__item:not(.is-locked):not(.is-active):hover {
	background: #e7e7e7;
}

.form-steps__num {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	color: #111149;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 16px;
	flex-shrink: 0;
}

.form-steps__line {
	width: 28px;
	height: 2px;
	margin: 0 6px;
	background: #111149;
	flex: 0 0 auto;
}

.driver-bar {
	display: none;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
}

.card.is-collapsed > .driver-bar {
	display: flex;
}

.card.is-collapsed > .card__title,
.card.is-collapsed > .card-body {
	display: none;
}

.driver-bar__open {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 4px 0;
	text-align: left;
	cursor: pointer;
	color: inherit;
}

.driver-bar__index {
	flex: 0 0 auto;
	font-weight: 600;
}

.driver-bar__summary {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #666;
}

.driver-bar__hint,
.driver-bar__remove {
	flex: 0 0 auto;
	border: 0;
	background: transparent;
	color: #111149;
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
	padding: 4px 2px;
}

.driver-bar__remove {
	padding: 4px 8px;
}

.form-actions {
	display: flex;
	justify-content: flex-end;
	margin: 4px 0 16px;
}

.form-actions .btn {
	min-width: 180px;
	padding: 10px 32px;
	font-weight: 600;
	border-radius: 10px;
	background-color: #111149;
	border-color: #111149;
}

.form-actions .btn:hover,
.form-actions .btn:focus {
	background-color: #c40510;
	border-color: #c40510;
}

@media (max-width: 991px) {
	.site-form {
		padding: 12px;
	}

	.indicator-form2__inner {
		padding: 20px;
	}

	.page-calc .indicator-form2 {
		margin-top: 30px;
	}

	.form-steps {
		position: relative;
		flex-wrap: nowrap;
		margin-bottom: 36px;
	}

	.form-steps__item,
	.form-steps__item.is-active {
		position: static;
		flex: 0 0 auto;
		gap: 0;
		padding: 0;
		background: transparent;
		color: inherit;
	}

	.form-steps__item:not(.is-locked):not(.is-active):hover {
		background: transparent;
	}

	.form-steps__num {
		width: 34px;
		height: 34px;
		font-size: 15px;
		background: #fff;
		box-shadow: 0 0 0 1px #e4e4e4;
	}

	.form-steps__item.is-active .form-steps__num {
		background: #111149;
		color: #fff;
		box-shadow: none;
	}

	.form-steps__label {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		padding: 0;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.form-steps__item.is-active .form-steps__label {
		left: 0;
		right: 0;
		top: 42px;
		width: auto;
		height: auto;
		margin: 0;
		clip: auto;
		overflow: hidden;
		color: #212529;
		font-size: 14px;
		font-weight: 600;
		line-height: 1.2;
		text-overflow: ellipsis;
	}

	.form-steps__line {
		display: block;
		flex: 1 1 0;
		width: auto;
		min-width: 12px;
		max-width: none;
		margin: 0 6px;
	}

	.form-actions .btn {
		width: 100%;
	}

	.card .card__title {
		font-size: 1.05rem;
	}
}
