/* ---------- WhatsApp dugme ispod booking dugmeta ---------- */
.swb-btn-wrap { display: block; width: 100%; margin-top: 10px; }

/* Booking dugme + WhatsApp dugme u istom redu (prelazi u novi red ako nema mjesta) */
.swb-row {
	display: flex !important;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px;
}
.swb-btn-wrap.is-inline { display: flex; width: auto; margin: 0; }

/* Manje WhatsApp dugme – oštri uglovi i font kao postojeće Book now dugme
   (JS dodatno kopira font sa postojećeg dugmeta, ovo je fallback) */
.swb-btn {
	gap: 6px !important;
	padding: 8px 14px !important;
	border-radius: 0 !important;
	font-family: Cousine, monospace !important;
	font-size: 12px !important;
}
.swb-btn svg { width: 17px; height: 17px; }

.swb-btn,
.swb-send,
.swb-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border: 0;
	border-radius: 10px;
	background: #25d366;
	color: #fff !important;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	transition: background .2s ease, transform .1s ease;
}
.swb-btn:hover,
.swb-send:hover,
.swb-next:hover { background: #1ebe5b; }
.swb-btn:active,
.swb-send:active,
.swb-next:active { transform: translateY(1px); }
.swb-overlay button:focus-visible,
.swb-btn:focus-visible { outline: 3px solid #128c7e; outline-offset: 2px; }

/* ---------- Overlay + modal ---------- */
html.swb-lock { overflow: hidden; }

.swb-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(8, 18, 32, 0);
	transition: background .2s ease;
	-webkit-tap-highlight-color: transparent;
}
.swb-overlay[hidden] { display: none; }
.swb-overlay.is-open { background: rgba(8, 18, 32, .6); }

.swb-modal {
	position: relative;
	width: 100%;
	max-width: 460px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 24px 24px 22px;
	border-radius: 18px;
	background: #fff;
	color: #14212b;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
	text-align: left;
	opacity: 0;
	transform: translateY(12px) scale(.98);
	transition: opacity .2s ease, transform .2s ease;
}
.swb-overlay.is-open .swb-modal { opacity: 1; transform: none; }

.swb-handle { display: none; }

.swb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.swb-stepof { margin: 0 0 2px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #128c7e; }
.swb-title { margin: 0; font-size: 22px; line-height: 1.25; color: #14212b; }
.swb-close {
	flex: none;
	width: 36px;
	height: 36px;
	margin: -4px -6px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f3f5;
	color: #475569;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
.swb-close:hover { background: #e5e8eb; color: #14212b; }

/* Progress 1-2-3 */
.swb-prog {
	display: flex;
	gap: 6px;
	margin: 18px 0 20px;
	padding: 0;
	list-style: none;
}
.swb-prog-item {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	font-size: 12px;
	color: #94a3b8;
}
.swb-prog-item::before {
	content: "";
	display: block;
	height: 4px;
	border-radius: 4px;
	background: #e5e8eb;
	transition: background .25s ease;
}
.swb-prog-item.is-active::before,
.swb-prog-item.is-done::before { background: #25d366; }
.swb-prog-item.is-active,
.swb-prog-item.is-done { color: #14212b; }
.swb-prog-dot { display: none; }
.swb-prog-label { font-weight: 600; }

/* Form */
.swb-form { margin: 0; }
.swb-step { display: flex; flex-direction: column; gap: 16px; animation: swb-in .22s ease; }
.swb-step[hidden] { display: none; }
@keyframes swb-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }

.swb-fs { margin: 0; padding: 0; border: 0; min-width: 0; }
.swb-label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 600; color: #14212b; }
.swb-field { display: block; margin: 0; }

.swb-choices { display: grid; gap: 8px; }
.swb-choice { position: relative; display: block; margin: 0; cursor: pointer; }
.swb-choice input { position: absolute; opacity: 0; pointer-events: none; }
.swb-choice-box {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 16px;
	border: 1.5px solid #dfe3e8;
	border-radius: 12px;
	background: #fff;
	transition: border-color .15s ease, background .15s ease;
}
.swb-choice-box strong { font-size: 15px; font-weight: 600; color: #14212b; }
.swb-choice-box small { font-size: 13px; color: #64748b; }
.swb-choice:hover .swb-choice-box { border-color: #b7c0ca; }
.swb-choice input:checked + .swb-choice-box { border-color: #25d366; background: #effcf4; }
.swb-choice input:focus-visible + .swb-choice-box { outline: 3px solid #128c7e; outline-offset: 2px; }

.swb-field select,
.swb-field input,
.swb-field textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	min-height: 50px;
	padding: 12px 14px;
	border: 1.5px solid #dfe3e8;
	border-radius: 12px;
	background: #fff;
	color: #14212b;
	font: inherit;
	font-size: 16px; /* sprječava iOS zoom */
	font-weight: 400;
}
.swb-field textarea { resize: vertical; min-height: 90px; }
.swb-field select:focus,
.swb-field input:focus,
.swb-field textarea:focus { border-color: #25d366; outline: 3px solid rgba(37, 211, 102, .2); }
.swb-invalid { border-color: #d63638 !important; }

/* Broj časova − 1 + */
.swb-stepper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px;
	border: 1.5px solid #dfe3e8;
	border-radius: 12px;
}
.swb-step-btn {
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: #f1f3f5;
	color: #14212b;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
.swb-step-btn:hover { background: #e5e8eb; }
.swb-count { font-size: 20px; font-weight: 600; color: #14212b; }

/* Pregled */
.swb-summary { padding: 14px 16px; border-radius: 12px; background: #f6f8fa; }
.swb-summary .swb-label { margin-bottom: 10px; }
.swb-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.swb-dl dt { margin: 0; color: #64748b; }
.swb-dl dd { margin: 0; color: #14212b; font-weight: 600; text-align: right; }

.swb-note { margin: 0; font-size: 13px; color: #64748b; }
.swb-error { margin: 0; color: #d63638; font-size: 13px; }
.swb-error[hidden] { display: none; }

/* Navigacija */
.swb-nav { display: flex; gap: 10px; margin-top: 22px; }
.swb-nav [hidden] { display: none !important; }
.swb-next,
.swb-send { flex: 1; padding: 14px 20px; }
.swb-back {
	flex: none;
	padding: 14px 18px;
	border: 1.5px solid #dfe3e8;
	border-radius: 10px;
	background: #fff;
	color: #14212b;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}
.swb-back:hover { background: #f6f8fa; }

/* ---------- Mobitel: bottom sheet ---------- */
@media (max-width: 599px) {
	.swb-overlay { align-items: flex-end; padding: 0; }
	.swb-modal {
		max-width: none;
		max-height: 92vh;
		max-height: 92dvh;
		padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
		border-radius: 20px 20px 0 0;
		transform: translateY(100%);
		transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
	}
	.swb-handle { display: block; width: 40px; height: 5px; margin: 0 auto 12px; border-radius: 5px; background: #dfe3e8; }
	.swb-title { font-size: 20px; }
	.swb-nav { position: sticky; bottom: 0; margin: 18px -18px 0; padding: 12px 18px 0; background: #fff; }
}

/* Dev mode oznaka (samo admin) */
.swb-dev { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 6px; background: #fff4d6; color: #8a5a00; font-size: 11px; font-weight: 700; letter-spacing: .05em; vertical-align: middle; }

/* =========================================================================
   Snow Art stil modala: oštri uglovi + boje i font sa postojećeg Book now dugmeta.
   JS postavlja --swb-primary, --swb-on-primary i --swb-font na .swb-overlay.
   ========================================================================= */
.swb-overlay {
	--swb-primary: #14212b;
	--swb-on-primary: #ffffff;
	--swb-font: Cousine, monospace;
	--swb-tint: color-mix(in srgb, var(--swb-primary) 8%, #ffffff);
}
.swb-overlay .swb-modal,
.swb-overlay .swb-modal button,
.swb-overlay .swb-modal input,
.swb-overlay .swb-modal select,
.swb-overlay .swb-modal textarea { font-family: var(--swb-font); }

/* Oštri uglovi svuda u modalu */
.swb-overlay .swb-modal,
.swb-overlay .swb-close,
.swb-overlay .swb-choice-box,
.swb-overlay .swb-field select,
.swb-overlay .swb-field input,
.swb-overlay .swb-field textarea,
.swb-overlay .swb-stepper,
.swb-overlay .swb-step-btn,
.swb-overlay .swb-summary,
.swb-overlay .swb-next,
.swb-overlay .swb-send,
.swb-overlay .swb-back,
.swb-overlay .swb-handle,
.swb-overlay .swb-dev,
.swb-overlay .swb-prog-item::before { border-radius: 0; }

/* Snow Art boje */
.swb-overlay .swb-next,
.swb-overlay .swb-send { background: var(--swb-primary); color: var(--swb-on-primary) !important; }
.swb-overlay .swb-next:hover,
.swb-overlay .swb-send:hover { background: var(--swb-primary); filter: brightness(1.12); }
.swb-overlay .swb-stepof { color: var(--swb-primary); }
.swb-overlay .swb-prog-item.is-active::before,
.swb-overlay .swb-prog-item.is-done::before { background: var(--swb-primary); }
.swb-overlay .swb-choice input:checked + .swb-choice-box { border-color: var(--swb-primary); background: var(--swb-tint); }
.swb-overlay .swb-field select:focus,
.swb-overlay .swb-field input:focus,
.swb-overlay .swb-field textarea:focus { border-color: var(--swb-primary); outline: 2px solid var(--swb-tint); }
.swb-overlay button:focus-visible,
.swb-overlay .swb-choice input:focus-visible + .swb-choice-box { outline-color: var(--swb-primary); }

@media (max-width: 599px) {
	.swb-overlay .swb-modal { border-radius: 0; }
}

/* Odabrana opcija "Za koga" – puna Snow Art plava */
.swb-overlay .swb-choice input:checked + .swb-choice-box { border-color: #2372BA; background: #2372BA; }
.swb-overlay .swb-choice input:checked + .swb-choice-box strong,
.swb-overlay .swb-choice input:checked + .swb-choice-box small { color: #ffffff; }

/* Dugmad "Dalje" i "Pošalji upit putem WhatsAppa" – Snow Art plava */
.swb-overlay .swb-next,
.swb-overlay .swb-send { background: #2372BA; color: #ffffff !important; }
.swb-overlay .swb-next:hover,
.swb-overlay .swb-send:hover { background: #1d62a0; filter: none; }

/* Fontovi kao na stranici (JS čita body i naslove sa stranice)
   – tekst, labele, polja: font paragrafa
   – naslov modala: font naslova
   – dugmad: font Book now dugmeta */
.swb-overlay .swb-modal,
.swb-overlay .swb-modal .swb-label,
.swb-overlay .swb-modal .swb-choice-box,
.swb-overlay .swb-modal input,
.swb-overlay .swb-modal select,
.swb-overlay .swb-modal textarea,
.swb-overlay .swb-modal .swb-dl,
.swb-overlay .swb-modal .swb-note,
.swb-overlay .swb-modal .swb-error,
.swb-overlay .swb-modal .swb-prog,
.swb-overlay .swb-modal .swb-stepof,
.swb-overlay .swb-modal .swb-count { font-family: var(--swb-font-body, inherit); }
.swb-overlay .swb-modal .swb-title {
	font-family: var(--swb-font-heading, var(--swb-font-body, inherit));
	font-weight: var(--swb-heading-weight, 600);
	text-transform: var(--swb-heading-transform, none);
}
.swb-overlay .swb-modal .swb-next,
.swb-overlay .swb-modal .swb-send,
.swb-overlay .swb-modal .swb-back { font-family: var(--swb-font, inherit); }

/* WhatsApp dugme velikim slovima, kao "REZERVIŠI ČAS" */
.swb-btn { text-transform: uppercase !important; }

/* WhatsApp dugme – tipografija, visina i uglovi 1:1 kao "REZERVIŠI ČAS" (Book now) */
.swb-btn-wrap .swb-btn {
	box-sizing: border-box !important;
	height: 40px !important;
	padding: 14px 24px !important;
	gap: 8px !important;
	border: 0 !important;
	border-radius: 1px !important;
	font-family: Cousine, monospace !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	font-style: normal !important;
	line-height: 12px !important;
	letter-spacing: 1.8px !important;
	text-transform: uppercase !important;
	transition-duration: .1s !important;
}
.swb-btn-wrap .swb-btn svg { width: 15px; height: 15px; flex: none; }
.swb-row { align-items: center !important; }
