/* BS Preporuka bicikla — forma i kartice. Boje se mijenjaju preko varijabli ispod. */
.bs-pmb {
	--bs-pmb-dark: #231f20;
	--bs-pmb-accent: #e30613;
	--bs-pmb-line: #e2e2e2;
	--bs-pmb-soft: #f6f6f6;
	--bs-pmb-ok: #1e7e34;
	--bs-pmb-radius: 10px;
	max-width: 980px;
	margin: 0 auto;
	color: var(--bs-pmb-dark);
}

/* ---------- forma ---------- */
.bs-pmb-form { display: grid; gap: 26px; }
.bs-pmb-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.bs-pmb-field[hidden] { display: none !important; }
.bs-pmb-field legend {
	font-weight: 600;
	font-size: 17px;
	margin-bottom: 12px;
	padding: 0;
}
.bs-pmb-tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.bs-pmb-tiles--budzet { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }

.bs-pmb-tile { position: relative; margin: 0; cursor: pointer; }
.bs-pmb-tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bs-pmb-tile span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 10px 12px;
	border: 2px solid var(--bs-pmb-line);
	border-radius: var(--bs-pmb-radius);
	background: #fff;
	text-align: center;
	font-weight: 500;
	line-height: 1.25;
	transition: border-color .15s, background .15s, color .15s;
}
.bs-pmb-tile:hover span { border-color: #bdbdbd; }
.bs-pmb-tile input:checked + span {
	border-color: var(--bs-pmb-dark);
	background: var(--bs-pmb-dark);
	color: #fff;
}
.bs-pmb-tile input:focus-visible + span { outline: 3px solid rgba(227, 6, 19, .35); outline-offset: 2px; }

.bs-pmb-height { display: flex; align-items: center; gap: 10px; max-width: 220px; }
.bs-pmb-height input {
	width: 100%;
	height: 52px;
	padding: 0 14px;
	border: 2px solid var(--bs-pmb-line);
	border-radius: var(--bs-pmb-radius);
	font-size: 18px;
}
.bs-pmb-height input:focus { border-color: var(--bs-pmb-dark); outline: 0; }
.bs-pmb-height span { font-weight: 600; }

.bs-pmb-err { color: var(--bs-pmb-accent); font-size: 14px; margin: 8px 0 0; min-height: 0; }
.bs-pmb-err:empty { display: none; }
.bs-pmb-field.is-error .bs-pmb-tile span,
.bs-pmb-field.is-error .bs-pmb-height input { border-color: var(--bs-pmb-accent); }

.bs-pmb-submit {
	justify-self: start;
	min-width: 260px;
	height: 56px;
	padding: 0 28px;
	border: 0;
	border-radius: var(--bs-pmb-radius);
	background: var(--bs-pmb-accent);
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
	transition: opacity .15s;
}
.bs-pmb-submit:hover { opacity: .9; }
.bs-pmb-submit[disabled] { opacity: .6; cursor: progress; }

.bs-pmb-input {
	width: 100%;
	max-width: 420px;
	height: 52px;
	padding: 0 14px;
	border: 2px solid var(--bs-pmb-line);
	border-radius: var(--bs-pmb-radius);
	font-size: 17px;
}
.bs-pmb-input:focus { border-color: var(--bs-pmb-dark); outline: 0; }
.bs-pmb-field.is-error .bs-pmb-input { border-color: var(--bs-pmb-accent); }
.bs-pmb-check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; cursor: pointer; font-size: 15px; }
.bs-pmb-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 auto; }
.bs-pmb-legal { margin: 10px 0 0; font-size: 13px; color: #666; max-width: 620px; }
.bs-pmb-legal a { color: inherit; text-decoration: underline; }

.bs-pmb-help {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 16px 18px;
	border-radius: var(--bs-pmb-radius);
	background: #eefaf2;
	border: 1px solid #c9ecd5;
}
.bs-pmb-help__txt { display: flex; flex-direction: column; gap: 2px; max-width: 560px; }
.bs-pmb-help__txt strong { font-size: 16px; }
.bs-pmb-help__txt span { font-size: 14px; color: #444; }
.bs-pmb-wa {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 46px;
	padding: 0 18px;
	border-radius: 999px;
	background: #25d366;
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background .15s;
}
.bs-pmb-wa:hover { background: #1ebe5a; }
.bs-pmb-out .bs-pmb-help { margin-top: 24px; }

/* ---------- kod popusta ---------- */
.bs-pmb-strip {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin: 0 0 18px;
	padding: 12px 16px;
	border-radius: var(--bs-pmb-radius);
	background: var(--bs-pmb-dark);
	color: #fff;
	font-weight: 600;
}
.bs-pmb-strip__left { margin-left: auto; font-variant-numeric: tabular-nums; color: #ffd166; }
.bs-pmb-strip__left.is-expired { color: #ff8a8a; }
.bs-pmb-strip__copy { border: 0; border-radius: 6px; padding: 6px 12px; background: #fff; color: var(--bs-pmb-dark); font-weight: 700; cursor: pointer; }
.bs-pmb-card__kod { margin: 0; font-size: 14px; color: var(--bs-pmb-accent); }

.bs-pmb-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(20, 18, 19, .6);
	animation: bsPmbFade .2s ease-out;
}
.bs-pmb-modal__box {
	position: relative;
	width: 100%;
	max-width: 460px;
	padding: 30px 26px 24px;
	border-radius: 16px;
	background: #fff;
	text-align: center;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
	animation: bsPmbPop .25s ease-out;
}
.bs-pmb-modal__x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: #777; }
.bs-pmb-modal__gift { font-size: 44px; line-height: 1; }
.bs-pmb-modal h3 { margin: 10px 0 8px; font-size: 24px; }
.bs-pmb-modal p { margin: 0 0 14px; font-size: 16px; line-height: 1.45; }
.bs-pmb-modal__code {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0 0 12px;
	padding: 12px;
	border: 2px dashed var(--bs-pmb-accent);
	border-radius: 10px;
	background: #fff5f5;
}
.bs-pmb-modal__code span { font-size: 13px; color: #666; }
.bs-pmb-modal__code strong { font-size: 22px; letter-spacing: .06em; }
.bs-pmb-modal__code button { border: 0; border-radius: 6px; padding: 8px 12px; background: var(--bs-pmb-accent); color: #fff; font-weight: 700; cursor: pointer; }
.bs-pmb-modal__left { font-size: 18px !important; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--bs-pmb-accent); }
.bs-pmb-modal__left.is-expired { color: #888; }
.bs-pmb-modal__small { font-size: 13px !important; color: #666; }
.bs-pmb-modal .bs-pmb-btn { width: 100%; }
@keyframes bsPmbFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bsPmbPop { from { transform: translateY(12px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- rezultati ---------- */
.bs-pmb-out { margin-top: 40px; scroll-margin-top: 110px; }
.bs-pmb-out:empty { display: none; }
.bs-pmb.is-loading .bs-pmb-out { opacity: .4; }
.bs-pmb-out__title { font-size: 26px; margin: 0 0 18px; }

.bs-pmb-cards { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); margin-top: 18px; }
.bs-pmb-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--bs-pmb-line);
	border-radius: var(--bs-pmb-radius);
	background: #fff;
	overflow: hidden;
}
.bs-pmb-card__label {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 1;
	padding: 5px 12px;
	border-radius: 20px;
	background: var(--bs-pmb-dark);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}

/* idealan: velika kartica, slika lijevo, opis desno */
.bs-pmb-card--hero {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	border: 2px solid var(--bs-pmb-dark);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}
.bs-pmb-card--hero .bs-pmb-card__label { background: var(--bs-pmb-accent); font-size: 14px; }
.bs-pmb-card--hero .bs-pmb-card__img { display: flex; align-items: center; padding: 40px 24px 24px; }
.bs-pmb-card--hero .bs-pmb-card__img img { height: 300px; }
.bs-pmb-card--hero .bs-pmb-card__body { padding: 28px 26px; gap: 12px; justify-content: center; }
.bs-pmb-card--hero .bs-pmb-card__title { font-size: 22px; }
.bs-pmb-card--hero .bs-pmb-card__price { font-size: 24px; }
.bs-pmb-card--hero .bs-pmb-card__actions { grid-template-columns: 1fr 1fr; margin-top: 8px; }

/* skuplji izbor */
.bs-pmb-card--upsell { border: 2px solid #f0b429; }
.bs-pmb-card--upsell .bs-pmb-card__label { background: #f0b429; color: #231f20; }
.bs-pmb-upsell { padding: 12px 14px; border-radius: 8px; background: #fff8e6; }
.bs-pmb-upsell__lead { margin: 0; font-weight: 600; line-height: 1.45; }
.bs-pmb-card__zasto { margin: 0; font-size: 15px; line-height: 1.55; color: #333; }
.bs-pmb-upsell__list { margin: 0; padding-left: 18px; font-size: 14px; }
.bs-pmb-upsell__list li::marker { content: "✓  "; color: var(--bs-pmb-ok); }
.bs-pmb-upsell__alt { margin: 0; font-size: 14px; }
.bs-pmb-upsell__rata { margin: 8px 0 0; font-size: 13px; color: #6b5a2e; }

.bs-pmb-card__img { display: block; padding: 18px; background: var(--bs-pmb-soft); }
.bs-pmb-card__img img { display: block; width: 100%; height: 200px; object-fit: contain; }
.bs-pmb-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px; }
.bs-pmb-card__brand { margin: 0; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #777; }
.bs-pmb-card__title { margin: 0; font-size: 16px; line-height: 1.3; }
.bs-pmb-card__title a { color: inherit; text-decoration: none; }
.bs-pmb-card__title a:hover { text-decoration: underline; }
.bs-pmb-card__price { font-size: 18px; font-weight: 700; }
.bs-pmb-card__price del { font-weight: 400; color: #888; font-size: 15px; }
.bs-pmb-card__size {
	margin: 0;
	padding: 8px 10px;
	border-radius: 8px;
	background: #eaf6ed;
	color: var(--bs-pmb-ok);
	font-size: 14px;
}
.bs-pmb-card__why { margin: 0; padding-left: 18px; font-size: 14px; color: #444; }
.bs-pmb-card__actions { display: grid; gap: 8px; margin-top: auto; padding-top: 8px; }
.bs-pmb-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	border: 2px solid var(--bs-pmb-dark);
	border-radius: 8px;
	color: var(--bs-pmb-dark);
	font-weight: 600;
	text-decoration: none;
}
.bs-pmb-btn:hover { background: var(--bs-pmb-soft); }
.bs-pmb-btn--primary { background: var(--bs-pmb-dark); color: #fff; }
.bs-pmb-btn--primary:hover { background: #000; color: #fff; }

.bs-pmb-note {
	margin-top: 18px;
	padding: 16px 18px;
	border-radius: var(--bs-pmb-radius);
	background: var(--bs-pmb-soft);
}
.bs-pmb-note p { margin: 0 0 6px; }
.bs-pmb-note p:last-child { margin: 0; }

@media (max-width: 900px) {
	.bs-pmb-card--hero { grid-template-columns: 1fr; }
	.bs-pmb-card--hero .bs-pmb-card__img img { height: 240px; }
}
@media (max-width: 600px) {
	.bs-pmb-tiles { grid-template-columns: repeat(2, 1fr); }
	.bs-pmb-cards { grid-template-columns: 1fr; }
	.bs-pmb-card--hero .bs-pmb-card__actions { grid-template-columns: 1fr; }
	.bs-pmb-wa { width: 100%; justify-content: center; }
	.bs-pmb-submit { width: 100%; justify-self: stretch; }
	.bs-pmb-card__img img { height: 170px; }
}

/* ================= 0.8: forma u koracima ================= */
.bs-pmb-intro { margin: 0 0 22px; text-align: center; }
.bs-pmb-intro h2 { margin: 0 0 10px; font-size: 28px; line-height: 1.2; }
.bs-pmb-intro h3 { margin: 0 0 6px; font-size: 22px; }
.bs-pmb-intro p { margin: 0; color: #555; }
.bs-pmb-intro ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 0; padding: 0; list-style: none; color: #444; font-weight: 600; }
.bs-pmb-intro li::before { content: "✓"; margin-right: 6px; color: var(--bs-pmb-ok); }
.bs-pmb-intro--tab { text-align: left; }

.bs-pmb-form { max-width: 720px; margin: 0 auto; gap: 18px; padding: 26px 26px 22px; border: 1px solid var(--bs-pmb-line); border-radius: 16px; background: #fff; box-shadow: 0 8px 28px rgba(0, 0, 0, .06); }
.bs-pmb--tab .bs-pmb-form { max-width: none; box-shadow: none; }
.bs-pmb-form[hidden] { display: none !important; }
.bs-pmb-progress { height: 6px; border-radius: 6px; background: var(--bs-pmb-soft); overflow: hidden; }
.bs-pmb-progress__bar { display: block; width: 0; height: 100%; border-radius: 6px; background: var(--bs-pmb-accent); transition: width .3s ease; }
.bs-pmb-progress__txt { margin: -8px 0 0; font-size: 13px; color: #777; }
.bs-pmb-field legend { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.bs-pmb-field:not([hidden]) { animation: bsPmbStep .22s ease-out; }
@keyframes bsPmbStep { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.bs-pmb-tile[hidden] { display: none !important; }
.bs-pmb-tile span { flex-direction: column; min-height: 58px; }
.bs-pmb-tile small { display: block; margin-top: 3px; font-size: 12px; font-weight: 500; color: #777; }
.bs-pmb-tile input:checked + span small { color: #ddd; }
.bs-pmb-tile.is-empty { cursor: not-allowed; }
.bs-pmb-tile.is-empty span { opacity: .45; background: var(--bs-pmb-soft); }
.bs-pmb-tile.is-empty:hover span { border-color: var(--bs-pmb-line); }
.bs-pmb-height { max-width: 380px; }
.bs-pmb-height input { font-size: 22px; text-align: center; }
.bs-pmb-next { height: 52px; padding: 0 22px; border: 0; border-radius: var(--bs-pmb-radius); background: var(--bs-pmb-accent); color: #fff; font-weight: 700; font-size: 16px; cursor: pointer; white-space: nowrap; }
.bs-pmb-next[hidden] { display: none; }
.bs-pmb-hint { margin: 10px 0 0; font-size: 13px; color: #777; }
.bs-pmb-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 0; }
.bs-pmb-nav:empty { display: none; }
.bs-pmb-back { border: 0; background: none; padding: 6px 0; color: #555; font-weight: 600; cursor: pointer; }
.bs-pmb-back[hidden], .bs-pmb-submit[hidden] { display: none; }
.bs-pmb-link { border: 0; background: none; padding: 0; color: var(--bs-pmb-accent); font-weight: 600; text-decoration: underline; cursor: pointer; }
.bs-pmb-ctx { margin: 0; padding: 10px 14px; border-radius: 8px; background: var(--bs-pmb-soft); font-size: 14px; }
.bs-pmb-ctx[hidden] { display: none; }
.bs-pmb.is-loading .bs-pmb-form { opacity: .6; pointer-events: none; }
.bs-pmb.has-results .bs-pmb-intro { display: none; }
.bs-pmb.has-results .bs-pmb-out { margin-top: 0; }
.bs-pmb-fb { margin: -8px 0 16px; font-size: 14px; color: #555; }
.bs-pmb-again { margin: 18px 0 0; text-align: center; }
.bs-pmb-card__kod.is-locked a { color: var(--bs-pmb-accent); text-decoration: none; font-weight: 600; }
.bs-pmb-card__kod.is-locked a:hover { text-decoration: underline; }

/* e-mail nakon preporuke: otključaj popust */
.bs-pmb-unlock { display: flex; gap: 18px; align-items: flex-start; margin-top: 22px; padding: 22px; border: 2px dashed var(--bs-pmb-accent); border-radius: 14px; background: #fff5f5; scroll-margin-top: 120px; }
.bs-pmb-unlock__badge { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: var(--bs-pmb-accent); color: #fff; font-size: 20px; font-weight: 800; }
.bs-pmb-unlock.is-done .bs-pmb-unlock__badge { background: var(--bs-pmb-dark); font-size: 30px; }
.bs-pmb-unlock__body { flex: 1; min-width: 0; }
.bs-pmb-unlock h3 { margin: 0 0 6px; font-size: 21px; }
.bs-pmb-unlock p { margin: 0 0 12px; line-height: 1.45; }
.bs-pmb-unlock__row { display: flex; gap: 10px; flex-wrap: wrap; }
.bs-pmb-unlock__row .bs-pmb-input { flex: 1 1 240px; max-width: none; }
.bs-pmb-unlock__row .bs-pmb-btn { flex: 0 0 auto; height: 52px; padding: 0 22px; border-color: var(--bs-pmb-accent); background: var(--bs-pmb-accent); cursor: pointer; font-size: 16px; }
.bs-pmb-unlock__row .bs-pmb-btn[disabled] { opacity: .6; cursor: progress; }
.bs-pmb-unlock .bs-pmb-modal__code { justify-content: flex-start; background: #fff; }
.bs-pmb-unlock .bs-pmb-modal__left { margin: 0 0 6px; font-size: 16px !important; }
.bs-pmb-unlock .bs-pmb-check { font-size: 13px; }
.bs-pmb-unlock .bs-pmb-legal { font-size: 12px; color: #777; margin: 6px 0 0; }

@media (max-width: 600px) {
	.bs-pmb-form { padding: 18px 14px; border-radius: 12px; }
	.bs-pmb-field legend { font-size: 19px; }
	.bs-pmb-intro h2 { font-size: 22px; }
	.bs-pmb-height { max-width: none; }
	.bs-pmb-unlock { flex-direction: column; padding: 18px 14px; }
	.bs-pmb-unlock__badge { width: 56px; height: 56px; font-size: 17px; }
	.bs-pmb-unlock__row .bs-pmb-btn { width: 100%; }
}
