/* =========================
   AC Calculator
========================= */

.ac-calculator__wrapper {
	background: #ffffff;
	border-radius: 24px;
	padding: 32px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
	max-width: 900px;
	margin: 0 auto;
	position: relative;
	overflow: hidden;
}


/* =========================
   Form Layout
========================= */

.ac-calculator__form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}


/* =========================
   Grid
========================= */

.ac-calculator__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}


/* =========================
   Fields
========================= */

.ac-calculator__field {
	display: flex;
	flex-direction: column;
	gap: 12px;
}


.ac-calculator__field label,
.ac-calculator__label {
	font-size: 16px;
	font-weight: 600;
	color: rgb(67,140,203);
}


/* =========================
   Inputs
========================= */

.ac-calculator__field input[type="number"] {
	width: 100%;
	height: 56px;
	padding: 0 18px;
	border: 1px solid #D9E2EC;
	border-radius: 14px;
	font-size: 16px;
	background: #F8FBFD;
	transition: all 0.3s ease;
}


.ac-calculator__field input[type="number"]:focus {
	outline: none;
	border-color: #00B4D8;
	background: #ffffff;
	box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.15);
}


/* Remove Number Input Arrows */

.ac-calculator__field input[type="number"]::-webkit-outer-spin-button,
.ac-calculator__field input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.ac-calculator__field input[type="number"] {
	-moz-appearance: textfield;
}

/* =========================
   Options
========================= */

.ac-calculator__options {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}


.ac-calculator__option {
	position: relative;
	cursor: pointer;
}


.ac-calculator__option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}


.ac-calculator__option span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 120px;
	height: 52px;
	padding: 0 20px;
	border-radius: 14px;
	background: #F3F7FA;
	border: 1px solid #D9E2EC;
	font-size: 15px;
	font-weight: 600;
	color: rgb(67,140,203);
	transition: all 0.25s ease;
}


.ac-calculator__option input:checked + span {
	background: rgb(67,140,203);
	color: #ffffff;
	border-color: rgb(67,140,203);
	box-shadow: 0 10px 20px rgba(4, 66, 107, 0.18);
}


/* =========================
   Messages
========================= */

.ac-calculator__message {
	padding: 14px 16px;
	border-radius: 14px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.6;
}

.ac-calculator__message--error {
	background: rgba(220, 38, 38, 0.08);
	color: #B91C1C;
	border: 1px solid rgba(220, 38, 38, 0.15);
}


/* =========================
   Submit Button
========================= */

.ac-calculator__submit {
	height: 58px;
	border: none;
	border-radius: 16px;
	background: rgb(67,140,203);
	color: #ffffff;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
}
.ac-calculator__submit:hover {
	color: #ffffff;
}


.ac-calculator__submit:hover {
	transform: translateY(-2px);
	background: #033555;
	box-shadow: 0 12px 24px rgba(4, 66, 107, 0.2);
}


/* =========================
   Result
========================= */


.ac-calculator__result-card {
	background: linear-gradient(
		135deg,
		rgb(67,140,203),
		#06639E
	);

	border-radius: 24px;
	padding: 40px 30px;
	text-align: center;
	color: #ffffff;
}


.ac-calculator__result-icon {
	font-size: 42px;
	margin-bottom: 14px;
}


.ac-calculator__result-title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 10px;
	opacity: 0.9;
}


.ac-calculator__result-capacity {
	font-size: 42px;
	font-weight: 800;
	line-height: 1.2;
	margin-bottom: 16px;
}


.ac-calculator__result-description {
	font-size: 16px;
	line-height: 1.8;
	margin-bottom: 28px;
	color: rgba(255,255,255,0.88);
}


.ac-calculator__result-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 52px;
	padding: 0 26px;
	border-radius: 14px;
	background: #ffffff;
	color: rgb(67,140,203);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.3s ease;
}


.ac-calculator__result-button:hover {
	transform: translateY(-2px);
	background: #F3F7FA;
	color: rgb(67,140,203);
}

/* =========================
   Result Animation
========================= */

.ac-calculator__result {
	margin-top: 32px;
	opacity: 0;
	transform: translateY(20px);
	transition:
		opacity 0.45s ease,
		transform 0.45s ease;
}


.ac-calculator__result.is-visible {
	opacity: 1;
	transform: translateY(0);
}


/* =========================
   Responsive
========================= */

@media (max-width: 767px) {

	.ac-calculator__wrapper {
		padding: 24px 18px;
		border-radius: 20px;
	}

	.ac-calculator__grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.ac-calculator__option span {
		width: 100%;
		min-width: unset;
	}

	.ac-calculator__options {
		flex-direction: column;
	}

	.ac-calculator__result-card {
		padding: 32px 22px;
	}

	.ac-calculator__result-capacity {
		font-size: 34px;
	}

}