/*
 * UEK Planer kandydata — wizard styling.
 * Wymaga uek-tools.css (base).
 */

.uek-planer {
	max-width: 720px;
}

/* ── Header ── */
.uek-planer__header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
}
.uek-planer__icon-circle {
	width: 52px;
	height: 52px;
	border-radius: 12px;
	background: #681539;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.uek-planer__title {
	font-size: 22px;
	font-weight: 700;
	margin: 0;
}
.uek-planer__subtitle {
	font-size: 13px;
	color: #838383;
	margin: 2px 0 0 !important;
}

/* ── Stepper ── */
.uek-planer__stepper {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 24px;
	overflow-x: auto;
	padding-bottom: 8px;
}
.uek-planer__stepper-item {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
}
.uek-planer__stepper-badge {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	background: #e4e0d8;
	color: #838383;
	transition: all 0.2s;
}
.uek-planer__stepper-badge--active {
	background: #501a33 !important;
	color: #fff !important;
}
.uek-planer__stepper-badge--done {
	background: #914a6a !important;
	color: #fff !important;
}
.uek-planer__stepper-label {
	font-size: 11px;
	font-weight: 500;
	color: #838383;
	white-space: nowrap;
}
.uek-planer__stepper-label--active {
	color: #501a33 !important;
}
.uek-planer__stepper-divider {
	width: 16px;
	height: 2px;
	margin: 0 4px;
	background: #e4e0d8;
}
.uek-planer__stepper-divider--done {
	background: #914a6a !important;
}
@media (min-width: 640px) {
	.uek-planer__stepper-divider {
		width: 32px;
	}
}
@media (max-width: 640px) {
	.uek-planer__stepper-label {
		display: none;
	}
}

/* ── Card ── */
.uek-planer__card {
	background: #fff;
	border: 1px solid #e4e0d8;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
@media (min-width: 1024px) {
	.uek-planer__card {
		padding: 32px;
	}
}

.uek-planer__step {
	animation: uek-planer-fade 0.3s ease-out;
}
@keyframes uek-planer-fade {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ── Field groups ── */
.uek-planer__field {
	border: none;
	padding: 0;
	margin: 0 0 24px;
}
.uek-planer__field:last-child {
	margin-bottom: 0;
}
.uek-planer__legend {
	font-size: 13px;
	font-weight: 600;
	color: #501a33;
	margin-bottom: 10px;
	padding: 0;
}

/* ── Pills ── */
.uek-planer__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.uek-planer__pill {
	height: 40px;
	padding: 0 16px;
	border-radius: 9px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	border: 1px solid #e4e0d8;
	background: #fff;
	color: #501a33;
	cursor: pointer;
	transition: all 0.2s;
	white-space: nowrap;
}
.uek-planer__pill:hover:not(:disabled) {
	border-color: #914a6a;
}
.uek-planer__pill--active {
	background: #501a33 !important;
	color: #fff !important;
	border-color: #501a33 !important;
}

/* ── Custom number input ── */
.uek-planer__custom {
	margin-top: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.uek-planer__custom input[type="number"] {
	width: 100px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid #e4e0d8;
	border-radius: 9px;
	font-family: inherit;
	font-size: 14px;
	text-align: center;
	background: #fff;
}
.uek-planer__custom input[type="number"]:focus {
	outline: none;
	border-color: #914a6a;
}
.uek-planer__hint {
	font-size: 11px;
	color: #838383;
	margin: 8px 0 0 !important;
}

/* ── Stepper number (-/+) ── */
.uek-planer__stepper-num {
	display: flex;
	align-items: center;
	gap: 12px;
}
.uek-planer__num-btn {
	width: 40px;
	height: 40px;
	border-radius: 9px;
	border: 1px solid #e4e0d8;
	background: #fff;
	color: #501a33;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	transition: border-color 0.2s;
}
.uek-planer__num-btn:hover {
	border-color: #914a6a;
}
.uek-planer__num-value {
	font-size: 22px;
	font-weight: 700;
	color: #501a33;
	min-width: 40px;
	text-align: center;
}

/* ── Banner ── */
.uek-planer__banner {
	background: #faf8f5;
	border: 1px solid #e4e0d8;
	border-radius: 9px;
	padding: 16px;
	font-size: 12px;
	color: #838383;
	margin-bottom: 24px;
}

/* ── Navigation ── */
.uek-planer__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 24px;
	gap: 12px;
}
.uek-planer__nav[hidden] {
	display: none !important;
}

/* ── Result tiles ── */
.uek-planer__step--result {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.uek-planer__tiles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
@media (max-width: 640px) {
	.uek-planer__tiles {
		grid-template-columns: 1fr;
	}
}
.uek-planer__tile {
	background: #faf8f5;
	border: 1px solid #e4e0d8;
	border-radius: 9px;
	padding: 20px;
}
.uek-planer__tile--accent {
	background: #501a33 !important;
	border-color: #914a6a !important;
	color: #fff;
}
.uek-planer__tile--center {
	text-align: center;
}
.uek-planer__tile-eyebrow {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin: 0 0 12px;
	color: #838383;
}
.uek-planer__tile--accent .uek-planer__tile-eyebrow {
	color: rgba(255, 255, 255, 0.6);
}

.uek-planer__rows {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.uek-planer__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.7);
}
.uek-planer__row span:last-child {
	color: rgba(255, 255, 255, 0.9);
}
.uek-planer__row--total {
	padding-top: 8px;
	margin-top: 4px;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	font-weight: 700;
}
.uek-planer__row--total span,
.uek-planer__row--total span:last-child {
	color: #fff !important;
	font-weight: 700;
}

.uek-planer__big {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 4px;
	margin: 8px 0;
}
.uek-planer__big-num {
	font-size: 32px;
	font-weight: 700;
	color: #fff;
}
.uek-planer__big-unit {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
}
.uek-planer__tile-meta {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.5);
	margin: 0 !important;
}
.uek-planer__tile:not(.uek-planer__tile--accent) .uek-planer__tile-meta {
	color: #838383;
}

/* ── Score tile (dynamic colors) ── */
.uek-planer__tile[data-score-tile] {
	transition: background 0.3s, border-color 0.3s;
}
.uek-planer__score-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}
.uek-planer__score-icon {
	font-size: 22px;
	line-height: 1;
}
.uek-planer__score-label {
	font-size: 14px;
	font-weight: 700;
}
.uek-planer__score-bar {
	width: 100%;
	height: 8px;
	background: rgba(255, 255, 255, 0.8);
	border-radius: 999px;
	overflow: hidden;
}
.uek-planer__score-fill {
	height: 100%;
	border-radius: 999px;
	transition: width 0.5s;
}

/* ── Risk ── */
.uek-planer__risk {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	font-weight: 600;
	color: #501a33;
	text-transform: lowercase;
}
.uek-planer__risk-icon {
	color: #914a6a;
	font-size: 20px;
}

/* ── Inline disclaimer ── */
.uek-planer__disclaimer-inline {
	font-size: 11px;
	color: #838383;
	background: #faf8f5;
	border: 1px solid #e4e0d8;
	border-radius: 9px;
	padding: 12px;
	margin: 0 !important;
}

/* ── Rhythm ── */
.uek-planer__rhythm h3 {
	font-size: 18px;
	font-weight: 700;
	color: #000;
	margin: 0 0 16px;
}
.uek-planer__rhythm-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
@media (max-width: 640px) {
	.uek-planer__rhythm-grid {
		grid-template-columns: 1fr;
	}
}
.uek-planer__rhythm-card {
	background: #fff;
	border: 1px solid #e4e0d8;
	border-radius: 9px;
	padding: 20px;
}
.uek-planer__rhythm-head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}
.uek-planer__rhythm-head h4 {
	font-size: 13px;
	font-weight: 700;
	color: #501a33;
	margin: 0;
}
.uek-planer__rhythm-head--noride .uek-planer__rhythm-icon {
	color: #1a7a4c;
}
.uek-planer__rhythm-head--ride .uek-planer__rhythm-icon {
	color: #914a6a;
}
.uek-planer__rhythm-card ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.uek-planer__rhythm-card li {
	font-size: 12px;
	color: #555;
	padding-left: 14px;
	position: relative;
	line-height: 1.5;
}
.uek-planer__rhythm-card li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
}
.uek-planer__rhythm-head--noride ~ ul li::before {
	background: #1a7a4c;
}
.uek-planer__rhythm-head--ride ~ ul li::before {
	background: #914a6a;
}

/* ── Recommendation ── */
.uek-planer__recommendation {
	border-left: 4px solid #914a6a;
	background: #fdf0f4;
	border-radius: 9px;
	padding: 16px 20px;
	transition: background 0.3s, border-color 0.3s;
}
.uek-planer__recommendation p {
	font-size: 13px;
	color: #333;
	font-weight: 500;
	margin: 0 !important;
	line-height: 1.6;
}

/* ── Disclaimer ── */
.uek-planer__disclaimer {
	font-size: 11px;
	color: #838383;
	background: #faf8f5;
	border: 1px solid #e4e0d8;
	border-radius: 9px;
	padding: 16px;
	margin: 0 !important;
	text-align: center !important;
}

/* ── CTA block ── */
.uek-planer__cta-block {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 8px;
}
.uek-planer__cta-block .uek-tools__btn--xl {
	width: 100%;
}
.uek-planer__cta-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
@media (max-width: 720px) {
	.uek-planer__cta-grid {
		grid-template-columns: 1fr;
	}
}
.uek-planer__cta-grid .uek-tools__btn {
	height: auto;
	min-height: 42px;
	padding: 10px 12px;
	font-size: 13px;
	width: 100%;
	white-space: normal;
	line-height: 1.25;
	text-align: center;
}
