.rental-task {
	--rental-accent: #c92d63;
	--rental-accent-dark: #b0184e;
	--rental-ink: #24415a;
	--rental-muted: #85888d;
	--rental-line: #dfe5ea;
	--rental-soft: #f4f6f8;
	font-family: "Jost", "Inter", Arial, sans-serif;
	color: #303030;
}

.rental-task *,
.rental-task *::before,
.rental-task *::after {
	box-sizing: border-box;
}

.rental-promo {
	position: relative;
	overflow: hidden;
	width: min(775px, 100%);
	height: 300px;
	margin: 24px auto;
	padding: 0;
	background: #f5f6f7;
}

.rental-promo__top {
	position: relative;
	display: flex;
	align-items: center;
	height: 132px;
	padding: 34px 30px 30px;
	background: var(--rental-accent);
	color: #fff;
}

.rental-promo__service {
	font-size: 68px;
	font-weight: 800;
	line-height: 0.9;
	letter-spacing: 0;
	text-transform: uppercase;
}

.rental-promo__plus {
	margin: 0 20px;
	font-size: 48px;
	font-weight: 700;
	line-height: 1;
}

.rental-promo__extra {
	z-index: 2;
	max-width: 220px;
	font-size: 29px;
	font-weight: 800;
	line-height: 1.18;
}

.rental-promo__device {
	position: absolute;
	right: 22px;
	bottom: -82px;
	z-index: 5;
	width: 310px;
	pointer-events: none;
}

.rental-promo__device img {
	display: block;
	width: 100%;
	height: auto;
	filter: drop-shadow(22px 28px 28px rgba(70, 40, 50, 0.16));
}

.rental-promo__bottom {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: 58px max-content 116px 1fr;
	align-items: center;
	gap: 17px;
	height: 168px;
	padding: 14px 34px 42px 46px;
	background:
		linear-gradient(90deg, #f7f8f9 0 34%, rgba(247, 248, 249, 0.78) 47%, rgba(247, 248, 249, 0.58) 100%),
		radial-gradient(ellipse at 78% 55%, rgba(201, 45, 99, 0.16) 0 22%, rgba(201, 45, 99, 0.07) 38%, transparent 64%),
		radial-gradient(ellipse at 94% 34%, rgba(232, 196, 182, 0.36) 0 18%, transparent 48%),
		#f7f8f9;
}

.rental-promo__bottom::before {
	position: absolute;
	inset: 0;
	z-index: 1;
	content: "";
	background: url("../images/rental-task/background.png") 100% 100% / auto 160% no-repeat;
	opacity: 0.9;
	-webkit-mask-image: linear-gradient(90deg, transparent 0 48%, rgba(0, 0, 0, 0.28) 58%, #000 72% 100%);
	mask-image: linear-gradient(90deg, transparent 0 48%, rgba(0, 0, 0, 0.28) 58%, #000 72% 100%);
}

.rental-promo__bottom > * {
	position: relative;
	z-index: 2;
}

.rental-promo__dots {
	width: 58px;
	height: 48px;
	opacity: 0.75;
	background-image: radial-gradient(circle at center, #73777b 0 2.6px, transparent 3.2px);
	background-size: 12px 12px;
	background-position: 0 0;
	background-repeat: repeat;
}

.rental-promo__dots--wide {
	width: 116px;
}

.rental-promo__price {
	z-index: 4;
	color: var(--rental-accent);
	font-size: 20px;
	font-weight: 800;
	white-space: nowrap;
}

.rental-promo__price strong {
	margin-left: 7px;
	font-size: 45px;
	line-height: 1;
}

.rental-promo__comment {
	position: absolute;
	left: 46px;
	bottom: 28px;
	display: flex;
	align-items: center;
	gap: 10px;
	color: #97999d;
	font-size: 23px;
	font-weight: 500;
	text-transform: uppercase;
}

.rental-promo__comment span {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: var(--rental-accent);
	color: #fff;
	font-size: 18px;
	line-height: 1;
}

.rental-promo__sale {
	position: absolute;
	right: 26px;
	bottom: 57px;
	z-index: 2;
	color: rgba(201, 45, 99, 0.98);
	font-size: 76px;
	font-weight: 900;
	line-height: 0.8;
	text-transform: uppercase;
}

.rental-calculator {
	position: relative;
	width: min(847px, 100%);
	height: 620px;
	margin: 0 auto 48px;
	background:
		linear-gradient(rgba(247, 249, 251, 0.28), rgba(247, 249, 251, 0.36)),
		url("../images/rental-task/box.png") center / 100% 100% no-repeat;
}

.rental-calculator__inner {
	position: relative;
	z-index: 2;
	max-width: 720px;
	min-height: 0;
	padding: 20px 42px 34px;
}

.rental-calculator h2 {
	margin: 0 0 14px;
	color: var(--rental-ink);
	font-size: 40px;
	font-weight: 500;
	line-height: 1.05;
	text-transform: uppercase;
}

.rental-calculator label {
	display: block;
	margin-bottom: 12px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	color: #333;
}

.rental-calculator .form-select {
	min-height: 46px;
	padding: 0 42px 0 20px;
	border: 2px solid var(--rental-line);
	border-radius: 8px;
	background-color: #fff;
	color: #666;
	font-size: 18px;
	box-shadow: none;
}

.rental-range {
	position: relative;
	z-index: 5;
	margin-top: 12px;
}

.rental-range__head {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-bottom: 12px;
}

.rental-range__head label {
	margin: 0;
}

.rental-range__value {
	width: 58px;
	height: 48px;
	border: 0;
	border-radius: 8px;
	background: #fff;
	color: var(--rental-accent-dark);
	font-size: 20px;
	font-weight: 700;
	text-align: center;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
}

.rental-range__value::-webkit-outer-spin-button,
.rental-range__value::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.rental-range__value[type="number"] {
	-moz-appearance: textfield;
	appearance: textfield;
}

.rental-range__track {
	position: relative;
	padding: 0 12px;
}

.rental-range input[type="range"] {
	width: 100%;
	height: 42px;
	margin: 0;
	background: transparent;
	accent-color: var(--rental-accent-dark);
	cursor: pointer;
}

.rental-range input[type="range"]::-webkit-slider-runnable-track {
	height: 5px;
	border-radius: 999px;
	background: linear-gradient(to right, var(--rental-accent-dark) var(--range-progress, 50%), #949799 var(--range-progress, 50%));
}

.rental-range input[type="range"]::-moz-range-track {
	height: 5px;
	border-radius: 999px;
	background: linear-gradient(to right, var(--rental-accent-dark) var(--range-progress, 50%), #949799 var(--range-progress, 50%));
}

.rental-range input[type="range"]::-webkit-slider-thumb {
	width: 30px;
	height: 30px;
	margin-top: -12px;
	border: 0;
	border-radius: 50%;
	background: var(--rental-accent-dark);
	-webkit-appearance: none;
}

.rental-range input[type="range"]::-moz-range-thumb {
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 50%;
	background: var(--rental-accent-dark);
}

.rental-range__ticks {
	display: flex;
	justify-content: space-between;
	margin-top: -8px;
	color: #5f6366;
	font-size: 18px;
	font-weight: 500;
}

.rental-range__ticks span:first-child,
.rental-range__ticks span:nth-child(2),
.rental-range__ticks span:nth-child(3) {
	color: var(--rental-accent-dark);
}

.rental-calculator__button {
	position: absolute;
	left: 50%;
	bottom: -8px;
	z-index: 3;
	display: block;
	width: min(330px, 100%);
	min-height: 44px;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: var(--rental-accent-dark);
	color: #fff;
	font-size: 18px;
	font-weight: 500;
	letter-spacing: 2px;
	text-transform: uppercase;
	transform: translateX(-50%);
	transition: background 0.2s ease, transform 0.2s ease;
}

.rental-calculator__button:hover,
.rental-calculator__button:focus {
	background: #931241;
	transform: translateX(-50%) translateY(-1px);
}

.rental-modal .modal-dialog {
	max-width: 513px;
}

.rental-modal:not(.show) {
	display: none;
}

.rental-modal.show {
	display: block;
	position: fixed;
	inset: 0;
	z-index: 1055;
	overflow-x: hidden;
	overflow-y: auto;
	background: rgba(20, 32, 43, 0.58);
}

.rental-modal .modal-content {
	overflow: hidden;
	border-radius: 0;
	background: #fff;
	min-height: 828px;
}

.rental-modal .modal-header {
	min-height: 132px;
	padding: 42px 62px;
	border: 0;
	border-radius: 0;
	background: var(--rental-ink);
	color: #fff;
}

.rental-modal__icon {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	margin-right: 24px;
	background: #fff;
	color: var(--rental-ink);
	font-size: 28px;
	line-height: 1;
}

.rental-modal .modal-title {
	margin: 0;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: 0;
}

.rental-modal .btn-close {
	width: 28px;
	height: 28px;
	margin-left: auto;
	opacity: 0.8;
	filter: invert(1) grayscale(1);
}

.rental-modal .modal-body {
	padding: 34px 65px 54px;
}

.rental-order-form {
	display: grid;
	gap: 28px;
}

.rental-order-form p {
	margin: 0;
}

.rental-order-form label {
	position: relative;
	display: block;
	margin: 0;
	color: #74777a;
	font-size: 16px;
	font-weight: 600;
}

.rental-order-form label > span:first-child {
	position: absolute;
	left: 18px;
	top: -9px;
	z-index: 2;
	padding: 0 8px;
	background: #fff;
	line-height: 1;
}

.rental-order-form b {
	color: #e74758;
}

.rental-order-form input[type="text"],
.rental-order-form input[type="tel"] {
	width: 100%;
	height: 56px;
	padding: 14px 18px;
	border: 2px solid #e5e7e9;
	border-radius: 0;
	background: #fff;
	color: #4b4f52;
	font-size: 16px;
	font-weight: 600;
	box-shadow: none;
}

.rental-order-form input[readonly] {
	background: #fff;
	color: #555;
}

.rental-order-form__agree {
	display: flex !important;
	align-items: center;
	gap: 14px;
	margin-top: 24px !important;
	color: var(--rental-ink) !important;
	font-size: 16px !important;
	font-weight: 400 !important;
}

.rental-order-form__agree span:first-child {
	position: static;
	padding: 0;
}

.rental-order-form input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: #efe7b9;
}

.rental-order-form input[type="submit"],
.rental-order-form button[type="submit"] {
	justify-self: end;
	width: 135px;
	height: 40px;
	margin-top: 6px;
	border: 0;
	border-radius: 0;
	background: var(--rental-ink);
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	text-transform: uppercase;
}

.rental-order-form .wpcf7-spinner {
	position: absolute;
}

@media (max-width: 860px) {
	.rental-promo {
		width: 775px;
		max-width: none;
		margin-left: auto;
		margin-right: auto;
	}

	.rental-calculator {
		width: 847px;
		max-width: none;
		margin-left: auto;
		margin-right: auto;
	}
}

@media (max-width: 560px) {
	.rental-task {
		overflow-x: hidden;
	}

	.rental-modal .modal-dialog {
		width: 513px;
		max-width: none;
		margin: 12px auto;
	}
}
