/* Hypoteční kalkulačka — stylesheet */

.hk-wrapper {
	--hk-blue: #1a56ff;
	--hk-blue-dark: #0d3fd1;
	--hk-ink: #14161a;
	--hk-gray-700: #4b5060;
	--hk-gray-500: #8a8f9c;
	--hk-gray-200: #e4e6ea;
	--hk-gray-100: #f4f5f7;
	--hk-panel-dark: #17181c;
	--hk-radius: 20px;
	--hk-radius-sm: 10px;

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--hk-ink);
	max-width: 980px;
	margin: 0 auto;
	box-sizing: border-box;
}

.hk-wrapper *,
.hk-wrapper *::before,
.hk-wrapper *::after {
	box-sizing: border-box;
}

.hk-screen {
	width: 100%;
}

.hk-wrapper .hk-screen[hidden] {
	display: none !important;
}

/* --- Cards --- */

.hk-card {
	background: #fff;
	border-radius: var(--hk-radius);
	box-shadow: 0 1px 3px rgba(20, 22, 26, 0.06), 0 12px 32px rgba(20, 22, 26, 0.06);
	padding: 44px 48px;
}

.hk-calc-card {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	background: #fff;
	border-radius: var(--hk-radius);
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(20, 22, 26, 0.06), 0 12px 32px rgba(20, 22, 26, 0.06);
}

.hk-calc-left {
	padding: 44px 48px;
}

.hk-calc-right {
	background: var(--hk-panel-dark);
	color: #fff;
	padding: 44px 40px;
	display: flex;
	flex-direction: column;
}

/* --- Typography --- */

.hk-eyebrow {
	color: var(--hk-blue);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin: 0 0 12px;
}

.hk-title {
	font-size: 34px;
	line-height: 1.15;
	font-weight: 800;
	margin: 0 0 14px;
	letter-spacing: -0.01em;
}

.hk-subtitle {
	font-size: 15px;
	line-height: 1.55;
	color: var(--hk-gray-700);
	margin: 0 0 28px;
	max-width: 640px;
}

.hk-calc-right .hk-result-label {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.65);
	margin: 0 0 10px;
}

.hk-calc-right .hk-result-value {
	font-size: 46px;
	font-weight: 800;
	margin: 0 0 24px;
	letter-spacing: -0.01em;
}

/* --- Progress bar --- */

.hk-progress {
	height: 6px;
	width: 100%;
	background: var(--hk-gray-200);
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 34px;
}

.hk-progress-fill {
	display: block;
	height: 100%;
	background: var(--hk-blue);
	border-radius: 999px;
	transition: width 0.3s ease;
}

/* --- Fields --- */

.hk-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px 28px;
	margin-bottom: 32px;
}

.hk-field--full {
	grid-column: 1 / -1;
	max-width: calc(50% - 14px);
}

.hk-field {
	display: flex;
	flex-direction: column;
}

.hk-field label {
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 8px;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
}

.hk-optional {
	font-weight: 400;
	color: var(--hk-gray-500);
	font-size: 13px;
}

.hk-term-value {
	font-weight: 700;
	color: var(--hk-blue);
	font-size: 13px;
}

.hk-field input[type="text"],
.hk-field input[type="tel"],
.hk-field input[type="email"],
.hk-field select {
	width: 100%;
	padding: 13px 16px;
	border: 1px solid var(--hk-gray-200);
	border-radius: var(--hk-radius-sm);
	font-size: 15px;
	color: var(--hk-ink);
	background: #fff;
	appearance: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hk-field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238A8F9C' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 40px;
}

.hk-field input:focus,
.hk-field select:focus {
	outline: none;
	border-color: var(--hk-blue);
	box-shadow: 0 0 0 3px rgba(26, 86, 255, 0.14);
}

.hk-input-suffix {
	position: relative;
	display: flex;
	align-items: center;
}

.hk-input-suffix input {
	flex: 1;
}

.hk-input-suffix span {
	position: absolute;
	right: 16px;
	color: var(--hk-gray-500);
	font-size: 14px;
	pointer-events: none;
}

.hk-hint {
	font-size: 12px;
	color: var(--hk-gray-500);
	margin: 6px 0 0;
}

/* --- Range slider --- */

.hk-field input[type="range"] {
	-webkit-appearance: none;
	width: 100%;
	height: 6px;
	border-radius: 999px;
	background: var(--hk-gray-200);
	margin-top: 6px;
}

.hk-field input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--hk-blue);
	border: 3px solid #fff;
	box-shadow: 0 1px 4px rgba(20, 22, 26, 0.35);
	cursor: pointer;
	margin-top: -7px;
}

.hk-field input[type="range"]::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--hk-blue);
	border: 3px solid #fff;
	box-shadow: 0 1px 4px rgba(20, 22, 26, 0.35);
	cursor: pointer;
}

.hk-field input[type="range"]::-moz-range-track {
	height: 6px;
	border-radius: 999px;
	background: var(--hk-gray-200);
}

/* --- Result boxes (dark panel) --- */

.hk-result-boxes {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 24px;
}

.hk-result-box {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--hk-radius-sm);
	padding: 14px 16px;
}

.hk-box-label {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.6);
	margin: 0 0 4px;
}

.hk-box-value {
	font-size: 18px;
	font-weight: 700;
	margin: 0;
}

.hk-meta {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.55);
	margin: 0 0 6px;
}

.hk-meta strong {
	color: rgba(255, 255, 255, 0.85);
	font-weight: 600;
}

.hk-disclaimer {
	font-size: 12px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.5);
	margin: 16px 0 24px;
}

/* --- Buttons --- */

.hk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 15px 26px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 700;
	border: none;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.05s ease, border-color 0.15s ease;
}

.hk-btn:active {
	transform: translateY(1px);
}

.hk-btn-primary {
	background: var(--hk-blue);
	color: #fff;
}

.hk-btn-primary:hover {
	background: var(--hk-blue-dark);
}

.hk-btn-primary:disabled {
	background: var(--hk-gray-200);
	color: var(--hk-gray-500);
	cursor: not-allowed;
}

.hk-btn-secondary {
	background: #fff;
	color: var(--hk-ink);
	border: 1.5px solid var(--hk-ink);
}

.hk-btn-secondary:hover {
	background: var(--hk-gray-100);
}

.hk-btn-block {
	width: 100%;
	margin-top: auto;
}

.hk-btn-row {
	display: flex;
	gap: 14px;
	margin-bottom: 20px;
}

/* --- Checkbox --- */

.hk-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--hk-gray-700);
	margin-bottom: 28px;
	cursor: pointer;
}

.hk-checkbox input {
	margin-top: 3px;
	width: 16px;
	height: 16px;
	accent-color: var(--hk-blue);
	flex-shrink: 0;
}

/* --- Footnote / errors --- */

.hk-footnote {
	font-size: 12px;
	color: var(--hk-gray-500);
	margin: 18px 0 0;
}

.hk-error {
	background: #fdecec;
	color: #b3261e;
	border-radius: var(--hk-radius-sm);
	padding: 12px 14px;
	font-size: 13px;
	margin: 0 0 20px;
}

/* --- Success screen --- */

.hk-card--success {
	text-align: center;
	padding: 60px 48px;
}

.hk-success-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--hk-blue);
	color: #fff;
	font-size: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 24px;
}

.hk-card--success .hk-title {
	text-align: center;
}

.hk-card--success .hk-subtitle {
	margin: 0 auto;
	text-align: center;
}

/* --- Responsive --- */

@media (max-width: 860px) {
	.hk-calc-card {
		grid-template-columns: 1fr;
	}

	.hk-grid {
		grid-template-columns: 1fr;
	}

	.hk-field--full {
		max-width: 100%;
	}

	.hk-card,
	.hk-calc-left,
	.hk-calc-right {
		padding: 32px 24px;
	}

	.hk-title {
		font-size: 26px;
	}

	.hk-result-value {
		font-size: 36px;
	}

	.hk-btn-row {
		flex-direction: column-reverse;
	}

	.hk-btn-row .hk-btn {
		width: 100%;
	}
}
