/**
 * Smart Calculator Widget
 *
 * Styles for the smart calculator widget.
 * Self-contained — no external CSS framework dependencies.
 *
 * @package BancaCore
 */

/* ════════════════════════════════════════════════════════════
   MAIN WRAPPER - Card
   ════════════════════════════════════════════════════════════ */
.smart-calculator {
	position: relative;
	width: 100%;
	background: var(--bs-white);
	border-radius: 16px;
	padding: 36px 32px 32px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 20px 50px -12px rgba(0, 0, 0, 0.2);
}

.smart-calculator__header {
	margin-bottom: 32px;
	padding-bottom: 20px;
	border-bottom: 1px solid #f0f0f5;
}

.smart-calculator__icon {
	display: flex;
	align-items: center;
	color: var(--brand_color, #0050b2);
}

.smart-calculator__icon i,
.smart-calculator__icon svg {
	line-height: 1;
}

.smart-calculator__heading-wrapper {
	display: flex;
	flex-direction: column;
}

.smart-calculator__title-group {
	display: flex;
	align-items: center;
	gap: 10px;
}

.smart-calculator__heading {
	font-size: 18px;
	font-weight: 600;
	color: var(--secondary_color);
	letter-spacing: -0.01em;
}

.smart-calculator__subtitle {
	font-size: 14px;
	color: #6b7280;
	margin: 4px 0 0 0;
	line-height: 1.4;
}

/* ════════════════════════════════════════════════════════════
   SLIDER GROUPS
   ════════════════════════════════════════════════════════════ */
.smart-calculator__slider-group {
	margin-bottom: 28px;
}

.smart-calculator__slider-group:last-of-type {
	margin-bottom: 32px;
}

.smart-calculator__slider-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 14px;
}

.smart-calculator__slider-label {
	font-size: 14px;
	font-weight: 500;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.smart-calculator__slider-value {
	font-size: 22px;
	font-weight: 700;
	color: var(--secondary_color);
	letter-spacing: -0.01em;
}

.smart-calculator__slider-range {
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
}

.smart-calculator__slider-range span {
	font-size: 12px;
	font-weight: 500;
	color: #9ca3af;
}

/* ── noUiSlider Overrides ─────────────────────────────── */
.smart-calculator .noUi-target {
	background: #e5e7eb;
	border: none;
	box-shadow: none;
	height: 6px;
	border-radius: 3px;
}

.smart-calculator .noUi-connects {
	border-radius: 3px;
}

.smart-calculator .noUi-connect {
	background: var(--brand_color, #0050b2);
	border-radius: 3px;
}

.smart-calculator .noUi-handle {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #ffffff;
	border: 3px solid var(--brand_color, #0050b2);
	box-shadow: 0 2px 8px rgba(0, 80, 178, 0.25);
	cursor: grab;
	top: -9px;
	right: -11px;
	transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.smart-calculator .noUi-handle:active {
	cursor: grabbing;
	box-shadow: 0 2px 12px rgba(0, 80, 178, 0.4);
	transform: scale(1.1);
}

.smart-calculator .noUi-handle::before,
.smart-calculator .noUi-handle::after {
	display: none;
}

/* Remove noUiSlider pips if rendered */
.smart-calculator .noUi-pips {
	display: none;
}

/* ════════════════════════════════════════════════════════════
   BUTTON
   ════════════════════════════════════════════════════════════ */
.smart-calculator__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 16px 24px;
	font-size: 16px;
	font-weight: 600;
	color: #ffffff;
	background: var(--brand_color, #0050b2);
	border: none;
	border-radius: 10px;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
	letter-spacing: 0.02em;
}

.smart-calculator__btn:hover {
	background: var(--brand_color_hover, #003d8a);
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(0, 80, 178, 0.35);
	color: #ffffff;
	text-decoration: none;
}

.smart-calculator__btn:active {
	transform: translateY(0);
}

.smart-calculator__btn svg {
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.smart-calculator__btn:hover svg {
	transform: translateX(4px);
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */

/* Mobile */
@media (max-width: 575px) {
	.smart-calculator {
		padding: 28px 20px 24px;
		border-radius: 12px;
	}

	.smart-calculator__slider-value {
		font-size: 18px;
	}

	.smart-calculator__btn {
		padding: 14px 20px;
		font-size: 15px;
	}
}