/* CW Vinterkalkylator — form styles. Scoped under .cw-vk */
.cw-vk {
	--cw-ink:      #0f172a;
	--cw-ink-soft: #334155;
	--cw-muted:    #64748b;
	--cw-line:     #e2e8f0;
	--cw-line-2:   #cbd5e1;
	--cw-bg:       #ffffff;
	--cw-bg-soft:  #f8fafc;
	--cw-accent:   #0e7490;
	--cw-accent-2: #0891b2;
	--cw-danger:   #dc2626;
	--cw-radius:   14px;
	--cw-radius-s: 10px;
	--cw-shadow:   0 1px 2px rgba(15,23,42,.04), 0 8px 24px -12px rgba(15,23,42,.18);

	max-width: 720px;
	margin: 0 auto;
	color: var(--cw-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	background: var(--cw-bg);
	border: 1px solid var(--cw-line);
	border-radius: var(--cw-radius);
	box-shadow: var(--cw-shadow);
	overflow: hidden;
}
.cw-vk *, .cw-vk *::before, .cw-vk *::after { box-sizing: border-box; }

/* ---- Head ---- */
.cw-vk__head { padding: 28px 28px 0; }
.cw-vk__title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 650;
	letter-spacing: -.01em;
	color: var(--cw-ink);
}
.cw-vk__intro {
	margin: 8px 0 0;
	color: var(--cw-muted);
	font-size: .95rem;
}

/* ---- Step indicator ---- */
.cw-vk__steps {
	display: flex;
	gap: 6px;
	list-style: none;
	margin: 22px 0 0;
	padding: 0 28px;
	flex-wrap: wrap;
}
.cw-vk__steps li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: .8rem;
	letter-spacing: .03em;
	color: var(--cw-muted);
	font-weight: 550;
	flex: 1 1 0;
	min-width: 0;
}
.cw-vk__steps li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px; height: 24px;
	flex: 0 0 24px;
	border-radius: 999px;
	border: 1.5px solid var(--cw-line-2);
	background: var(--cw-bg);
	font-size: .78rem;
	font-weight: 650;
	transition: .2s ease;
}
.cw-vk__steps li.is-active { color: var(--cw-ink); }
.cw-vk__steps li.is-active span { border-color: var(--cw-accent); background: var(--cw-accent); color: #fff; }
.cw-vk__steps li.is-done span { border-color: var(--cw-accent); color: var(--cw-accent); }

/* ---- Panels ---- */
.cw-vk__form { padding: 8px 28px 28px; }
.cw-vk__panel { display: none; padding-top: 18px; }
.cw-vk__panel.is-active { display: block; animation: cw-vk-fade .28s ease; }
@keyframes cw-vk-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- Fields ---- */
.cw-vk__field { margin: 0 0 16px; border: 0; padding: 0; }
.cw-vk__field > label,
.cw-vk__field > legend {
	display: block;
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--cw-ink-soft);
	margin: 0 0 6px;
	padding: 0;
}
.cw-vk__opt { color: var(--cw-muted); font-weight: 400; }
.cw-vk input[type="text"],
.cw-vk input[type="email"],
.cw-vk input[type="tel"],
.cw-vk input[type="number"],
.cw-vk textarea {
	width: 100%;
	padding: 11px 13px;
	font: inherit;
	color: var(--cw-ink);
	background: var(--cw-bg);
	border: 1.5px solid var(--cw-line-2);
	border-radius: var(--cw-radius-s);
	transition: border-color .15s ease, box-shadow .15s ease;
	appearance: none;
}
.cw-vk textarea { resize: vertical; min-height: 88px; }
.cw-vk input:focus,
.cw-vk textarea:focus {
	outline: none;
	border-color: var(--cw-accent);
	box-shadow: 0 0 0 3px rgba(14,116,144,.14);
}
.cw-vk .cw-vk__field.has-error input,
.cw-vk .cw-vk__field.has-error textarea { border-color: var(--cw-danger); }

.cw-vk__grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.cw-vk__grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ---- Type selector ---- */
.cw-vk__types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cw-vk__type { position: relative; cursor: pointer; }
.cw-vk__type input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.cw-vk__type span {
	display: block;
	text-align: center;
	padding: 13px 10px;
	border: 1.5px solid var(--cw-line-2);
	border-radius: var(--cw-radius-s);
	font-weight: 550;
	font-size: .92rem;
	color: var(--cw-ink-soft);
	transition: .15s ease;
}
.cw-vk__type:hover span { border-color: var(--cw-line-2); background: var(--cw-bg-soft); }
.cw-vk__type input:checked + span {
	border-color: var(--cw-accent);
	background: rgba(14,116,144,.06);
	color: var(--cw-accent);
	box-shadow: inset 0 0 0 1px var(--cw-accent);
}
.cw-vk__type input:focus-visible + span { box-shadow: 0 0 0 3px rgba(14,116,144,.18); }

/* ---- Errors ---- */
.cw-vk__error { margin: 6px 0 0; color: var(--cw-danger); font-size: .82rem; min-height: 0; display: none; }
.cw-vk__error.is-shown { display: block; }

/* ---- Boat summary chip ---- */
.cw-vk__summary {
	display: none;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	margin-bottom: 16px;
	background: var(--cw-bg-soft);
	border: 1px solid var(--cw-line);
	border-radius: 999px;
	font-size: .85rem;
	color: var(--cw-ink-soft);
	font-variant-numeric: tabular-nums;
}
.cw-vk__summary.is-shown { display: inline-flex; }
.cw-vk__summary::before { content: "⚓"; }

/* ---- Limitation block ---- */
.cw-vk__limit {
	border: 1px solid #fecaca;
	background: #fef2f2;
	border-radius: var(--cw-radius-s);
	padding: 18px 20px;
}
.cw-vk__limit-title {
	margin: 0 0 6px;
	font-size: .78rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--cw-danger);
}
.cw-vk__limit-body { color: #7f1d1d; font-size: .95rem; }
.cw-vk__limit-body p { margin: 0; }

/* ---- Alternative cards ---- */
.cw-vk__alts { display: flex; flex-direction: column; gap: 12px; }
.cw-vk__alt { position: relative; }
.cw-vk__alt-input { position: absolute; opacity: 0; pointer-events: none; }
.cw-vk__alt-card {
	display: block;
	cursor: pointer;
	border: 1.5px solid var(--cw-line-2);
	border-radius: var(--cw-radius-s);
	padding: 16px 18px 16px 48px;
	position: relative;
	transition: .15s ease;
	background: var(--cw-bg);
}
.cw-vk__alt-card::before {
	content: "";
	position: absolute;
	left: 16px; top: 18px;
	width: 20px; height: 20px;
	border: 1.5px solid var(--cw-line-2);
	border-radius: 999px;
	transition: .15s ease;
}
.cw-vk__alt-card:hover { border-color: var(--cw-accent-2); }
.cw-vk__alt-input:checked + .cw-vk__alt-card {
	border-color: var(--cw-accent);
	box-shadow: inset 0 0 0 1px var(--cw-accent);
	background: rgba(14,116,144,.04);
}
.cw-vk__alt-input:checked + .cw-vk__alt-card::before {
	border-color: var(--cw-accent);
	background: var(--cw-accent);
	box-shadow: inset 0 0 0 4px var(--cw-bg);
}
.cw-vk__alt-input:focus-visible + .cw-vk__alt-card { box-shadow: 0 0 0 3px rgba(14,116,144,.2); }
.cw-vk__alt-body { font-size: .95rem; color: var(--cw-ink-soft); }
.cw-vk__alt-body h5 { margin: 0 0 8px; font-size: 1.02rem; color: var(--cw-ink); font-weight: 650; }
.cw-vk__alt-body ul { margin: 8px 0; padding-left: 18px; }
.cw-vk__alt-body li { margin: 2px 0; }
.cw-vk__alt-body p { margin: 6px 0; }
.cw-vk__alt-price {
	margin-top: 10px;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--cw-ink);
	font-variant-numeric: tabular-nums;
}

/* ---- Fund (mandatory info row) ---- */
.cw-vk__fund {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed var(--cw-line);
	font-size: .9rem;
	color: var(--cw-ink-soft);
}
.cw-vk__fund b { font-variant-numeric: tabular-nums; }

/* ---- Consent ---- */
.cw-vk__consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: .9rem;
	color: var(--cw-ink-soft);
	margin: 4px 0 0;
	cursor: pointer;
}
.cw-vk__consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--cw-accent); flex: 0 0 18px; }

/* ---- Actions ---- */
.cw-vk__actions { margin-top: 22px; display: flex; }
.cw-vk__actions--split { justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.cw-vk__btn {
	appearance: none;
	font: inherit;
	font-weight: 600;
	font-size: .95rem;
	padding: 12px 22px;
	border-radius: var(--cw-radius-s);
	cursor: pointer;
	border: 1.5px solid transparent;
	transition: .15s ease;
}
.cw-vk__btn--primary { background: var(--cw-ink); color: #fff; margin-left: auto; }
.cw-vk__btn--primary:hover { background: var(--cw-accent); }
.cw-vk__btn--primary:disabled { opacity: .55; cursor: not-allowed; background: var(--cw-ink); }
.cw-vk__btn--ghost { background: var(--cw-bg); color: var(--cw-ink-soft); border-color: var(--cw-line-2); }
.cw-vk__btn--ghost:hover { border-color: var(--cw-ink-soft); color: var(--cw-ink); }
.cw-vk__actions--split .cw-vk__btn--primary { margin-left: 0; }

/* ---- Total chip ---- */
.cw-vk__total {
	display: inline-flex;
	align-items: baseline;
	gap: 10px;
	padding: 8px 16px;
	background: var(--cw-bg-soft);
	border: 1px solid var(--cw-line);
	border-radius: 999px;
}
.cw-vk__total-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cw-muted); font-weight: 600; }
.cw-vk__total-value { font-size: 1.15rem; font-weight: 750; color: var(--cw-ink); font-variant-numeric: tabular-nums; }

/* ---- Done ---- */
.cw-vk__done { text-align: center; padding: 24px 0 8px; }
.cw-vk__done-icon {
	width: 56px; height: 56px;
	margin: 0 auto 16px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 999px;
	background: rgba(14,116,144,.1);
	color: var(--cw-accent);
	font-size: 1.6rem;
	font-weight: 700;
}
.cw-vk__done h5 { font-size: 1.2rem; margin: 0 0 6px; color: var(--cw-ink); }
.cw-vk__done p { color: var(--cw-muted); margin: 4px 0; }

/* ---- Loading state ---- */
.cw-vk.is-loading .cw-vk__btn--primary { position: relative; color: transparent; }
.cw-vk.is-loading .cw-vk__btn--primary::after {
	content: ""; position: absolute; inset: 0; margin: auto;
	width: 16px; height: 16px; border-radius: 999px;
	border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
	animation: cw-vk-spin .7s linear infinite;
}
@keyframes cw-vk-spin { to { transform: rotate(360deg); } }

/* ---- Responsive ---- */
@media (max-width: 600px) {
	.cw-vk__head { padding: 22px 18px 0; }
	.cw-vk__steps { padding: 0 18px; }
	.cw-vk__steps li span { width: 22px; height: 22px; flex-basis: 22px; }
	.cw-vk__form { padding: 4px 18px 22px; }
	.cw-vk__grid, .cw-vk__grid--2 { grid-template-columns: 1fr; }
	.cw-vk__types { grid-template-columns: 1fr; }
	.cw-vk__actions--split { flex-direction: column-reverse; align-items: stretch; }
	.cw-vk__actions--split .cw-vk__btn { width: 100%; }
	.cw-vk__total { justify-content: center; }
}
