:root {
	--accent-color1: rgb(252, 206, 61);
}

h1 {
	margin-inline: 0;
	font-weight: 500;
	margin-top: 20px;
	text-transform: uppercase;
	text-align: start;
}

section p {
	font-weight: 400;
	font-size: 18px;
	margin-bottom: 18px;
	text-align: justify;
}

section.calculator {
	display: grid;
	gap: 20px;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr;
}

div.calculator {
	width: 100%;
	max-width: 500px;
	display: flex;
	gap: 20px;
	flex-direction: column;
}

div.calculator form {
	width: 100%;
}

.input-container>label {
	display: block;
	margin-bottom: 14px;
}

input[type="range"] {
	width: 100%;
	cursor: pointer;
	accent-color: var(--accent-color1);
}

.input-range-text {
	display: flex;
	justify-content: space-between;
	padding-top: 10px;
	padding-inline: 4px;
}

.radio-input {
	cursor: pointer;
}

.radio-input label {
	width: 100%;
	display: flex;
	gap: 10px;
	align-items: center;
	cursor: pointer;
}

.radio-container {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.price {
	font-size: 18px;
	font-weight: 600;
}

div.description {
	margin-block: 40px;
	font-size: 20px;
}

.oferta {
	margin-top: 10px;
}

.oferta p {
	font-weight: 300;
	color: gray;
	margin: 0;
	margin-top: 4px;
	font-size: 12px;
}

.calculator-h2 {
	text-transform: uppercase;
	text-wrap: balance;
	font-weight: 500;
	font-size: 40px;
	max-width: 1000px;
	margin-inline: auto;
	margin-block: 0;
	padding-inline: 0;
}

.auto-preview {
	width: 100%;
	max-width: 500px;
	margin-bottom: 20px;
	border-radius: 30px;
	overflow: hidden;
	margin-inline: auto;
}

.auto-preview img {
	width: 100%;
	height: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.radio {
	position: relative;
	overflow: hidden;
	display: block;
	line-height: 3.5rem;
	padding-left: 4.5rem;
	transition: var(--transition);
	--left: 1.5rem;
}

@media (pointer: fine) {
	.radio:hover {
		background-color: color-mix(in srgb, var(--hint-color) 10%, transparent);
	}
}

.radio.hide {
	display: none;
}

.radio>input {
	display: none;
}

.radio>.round {
	pointer-events: none;
}

.radio>.round::before,
.radio>.round::after {
	content: '';
	display: block;
	position: absolute;
	top: 50%;
	aspect-ratio: 1/1;
	translate: 0 -50%;
	border-radius: 50%;
	background-color: transparent;
	transition: var(--transition);
}

.radio>.round::before {
	width: 1.25rem;
	left: calc(var(--left) + .0625rem);
	border: 2px solid var(--hint-color);
}

.radio>.round::after {
	opacity: 0;
	width: .625rem;
	left: calc(var(--left) + .375rem);
	border: 2px solid var(--accent-text-color);
}

.radio>.round>span {
	font-weight: 500;
	color: var(--accent-text-color);
}

.radio>input:checked+.round::before {
	border-color: var(--accent-text-color);
}

.radio>input:checked+.round::after {
	opacity: 1;
	background-color: var(--accent-text-color);
}

input[type="radio"] {
	appearance: none;
	cursor: pointer;
	position: relative;
	width: 28px;
	height: 28px;
	border-radius: 1rem;
	color: var(--accent-color1);
	border: 3px solid currentColor;
	background-color: transparent;
	transition: var(--transition);
}

input[type="radio"]::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0px;
	height: 0px;
	border-radius: 1rem;
	translate: -50% -50%;
	background-color: currentColor;
	transition: var(--transition);
}

input[type="radio"]:checked::before {
	width: 14px;
	height: 14px;
}

.range-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 30px;
	height: 30px;
	border: none;
	border-radius: 50%;
	background-color: white;
	box-shadow: 0 0 0 5px inset var(--accent-color1);
	transition: 300ms;
}

.range-input::-moz-range-thumb {
	width: 30px;
	height: 30px;
	border: none;
	border-radius: 50%;
	background-color: white;
	box-shadow: 0 0 0 5px inset var(--accent-color);
	transition: 300ms;
}

.range-input:hover::-webkit-slider-thumb,
.range-input:focus-visible::-webkit-slider-thumb {
	box-shadow: 0 0 0 10px inset var(--accent-color1);
}

.range-input:hover::-moz-range-thumb,
.range-input:focus-visible::-moz-range-thumb {
	box-shadow: 0 0 0 10px inset var(--accent-color1);
}

.range-input:active::-webkit-slider-thumb {
	box-shadow: 0 0 0 30px inset var(--accent-color1);
}

.range-input:active::-moz-range-thumb {
	box-shadow: 0 0 0 30px inset var(--accent-color1);
}

.range-input:disabled::-webkit-slider-thumb {
	box-shadow: 0 0 0 30px inset gray;
}

.range-input:disabled::-moz-range-thumb {
	box-shadow: 0 0 0 30px inset gray;
}

.calculator .progress {
	background-color: var(--accent-color1);
}

form button {
	background-color: var(--accent-color1);
}

section h2 {
	text-transform: uppercase;
	font-weight: 500;
	margin-top: 60px;
	font-size: 38px;
	max-width: 1000px;
	margin-bottom: 30px;
}

section h3 {
	font-weight: 400;
	padding-bottom: 20px;
}

body section:first-of-type {
	margin-top: 0px;
}

.devices-carousel-container {
	margin-block: 30px;
}

@media (width <=768px) {

	body section:first-of-type h2 {
		margin-top: 20px;
	}

	section.calculator {
		grid-template-columns: 1fr;
		grid-template-rows: 0fr 1fr;
	}

	section h2 {
		font-size: 24px;
		margin-top: 0;
	}

	section h3 {
		font-size: 16px;
	}

	h1 {
		font-size: 30px;
	}

	section p {
		font-size: 16px;
	}
}

@media (width <=425px) {
	h2.calculator-h2 {
		font-size: 24px;
		text-align: start;
	}
}