/* Forma za zakazivanje – stil po uzoru na Cal.com. Sve je ograničeno na .jmz-app. */
.jmz-app {
	--jmz-ink: #111827;
	--jmz-text: #374151;
	--jmz-muted: #6b7280;
	--jmz-line: #e5e7eb;
	--jmz-soft: #f3f4f6;
	--jmz-day: #e5e7eb;
	--jmz-green: #10b981;
	--jmz-red: #b91c1c;
	--jmz-radius: 10px;
	box-sizing: border-box;
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
	container-type: inline-size;
	color: var(--jmz-text);
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.45;
}
.jmz-app *, .jmz-app *::before, .jmz-app *::after { box-sizing: border-box; }
.jmz-app button { font-family: inherit; }

/* Izbor lokacije */
.jmz-locs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.jmz-loc-btn {
	appearance: none; cursor: pointer; background: #fff; color: var(--jmz-ink);
	border: 1px solid var(--jmz-line); border-radius: 999px; padding: 8px 16px;
	font-size: 14px; font-weight: 600; transition: border-color .15s, background .15s, color .15s;
}
.jmz-loc-btn:hover { border-color: var(--jmz-ink); }
.jmz-loc-btn.is-on { background: var(--jmz-ink); color: #fff; border-color: var(--jmz-ink); }

/* Kartica */
.jmz-card {
	display: grid; background: #fff; border: 1px solid var(--jmz-line); border-radius: 12px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .06); overflow: hidden; min-height: 420px;
}
.jmz-card.cols-3 { grid-template-columns: 250px minmax(0, 1fr) 230px; }
.jmz-card.cols-2 { grid-template-columns: 300px minmax(0, 1fr); }
.jmz-col { padding: 24px; min-width: 0; }
.jmz-col + .jmz-col { border-left: 1px solid var(--jmz-line); }

/* Leva kolona sa podacima */
.jmz-brand { color: var(--jmz-muted); font-weight: 600; font-size: 14px; margin: 0 0 4px; }
.jmz-title { color: var(--jmz-ink); font-size: 22px; line-height: 1.25; font-weight: 700; margin: 0 0 14px; letter-spacing: -.01em; }
.jmz-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.jmz-meta li { display: flex; gap: 8px; align-items: flex-start; color: var(--jmz-text); font-weight: 500; }
.jmz-meta svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.jmz-desc { margin: 14px 0 0; color: var(--jmz-muted); white-space: pre-line; }

/* Kalendar */
.jmz-cal-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.jmz-cal-month { font-size: 16px; font-weight: 700; color: var(--jmz-ink); }
.jmz-cal-month span { color: var(--jmz-muted); font-weight: 500; }
.jmz-nav { display: flex; gap: 4px; }
.jmz-nav button {
	appearance: none; cursor: pointer; width: 32px; height: 32px; border: 0; border-radius: 8px;
	background: transparent; color: var(--jmz-ink); font-size: 16px; line-height: 1;
}
.jmz-nav button:hover:not(:disabled) { background: var(--jmz-soft); }
.jmz-nav button:disabled { color: #c4c8ce; cursor: default; }
.jmz-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.jmz-dow { text-align: center; font-size: 12px; font-weight: 600; color: var(--jmz-muted); padding: 4px 0 8px; text-transform: uppercase; letter-spacing: .02em; }
.jmz-day {
	appearance: none; position: relative; aspect-ratio: 1 / 1; min-height: 38px; border: 0; border-radius: 8px;
	background: transparent; color: #9ca3af; font-size: 14px; font-weight: 500; cursor: default; padding: 0;
}
.jmz-day.is-open { background: var(--jmz-day); color: var(--jmz-ink); font-weight: 600; cursor: pointer; }
.jmz-day.is-open:hover { background: #d1d5db; }
.jmz-day.is-sel, .jmz-day.is-sel:hover { background: var(--jmz-ink); color: #fff; }
.jmz-day.is-today::after {
	content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor;
}
.jmz-empty { color: var(--jmz-muted); margin: 14px 0 0; }

/* Termini */
.jmz-slots-head { font-size: 14px; color: var(--jmz-ink); margin: 0 0 12px; font-weight: 600; }
.jmz-slots-head span { color: var(--jmz-muted); font-weight: 500; }
.jmz-slots { display: grid; gap: 8px; max-height: 380px; overflow-y: auto; padding: 1px 4px 1px 1px; }
.jmz-slot {
	appearance: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
	background: #fff; color: var(--jmz-ink); border: 1px solid #d1d5db; border-radius: 8px;
	padding: 10px 12px; font-size: 14px; font-weight: 600; transition: border-color .12s, box-shadow .12s;
}
.jmz-slot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--jmz-green); }
.jmz-slot:hover { border-color: var(--jmz-ink); box-shadow: 0 0 0 1px var(--jmz-ink); }

/* Forma */
.jmz-form { display: grid; gap: 14px; align-content: start; }
.jmz-field label { display: block; font-weight: 600; color: var(--jmz-ink); margin: 0 0 6px; }
.jmz-field label small { color: var(--jmz-muted); font-weight: 500; }
.jmz-field input, .jmz-field textarea {
	width: 100%; border: 1px solid #d1d5db; border-radius: 8px; padding: 9px 12px; font: inherit; color: var(--jmz-ink);
	background: #fff; box-shadow: none; margin: 0;
}
.jmz-field textarea { min-height: 86px; resize: vertical; }
.jmz-field input:focus, .jmz-field textarea:focus { outline: 2px solid var(--jmz-ink); outline-offset: 0; border-color: var(--jmz-ink); }
.jmz-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.jmz-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 6px; }
.jmz-btn {
	appearance: none; cursor: pointer; border-radius: 8px; padding: 10px 16px; font-size: 14px; font-weight: 600;
	border: 1px solid var(--jmz-ink); background: var(--jmz-ink); color: #fff; line-height: 1.2;
}
.jmz-btn:hover { background: #000; }
.jmz-btn:disabled { opacity: .55; cursor: default; }
.jmz-btn.is-ghost { background: transparent; color: var(--jmz-text); border-color: transparent; }
.jmz-btn.is-ghost:hover { background: var(--jmz-soft); }
.jmz-btn.is-line { background: #fff; color: var(--jmz-ink); border-color: #d1d5db; }
.jmz-btn.is-line:hover { background: var(--jmz-soft); }
.jmz-btn.is-danger { background: #fff; color: var(--jmz-red); border-color: #fecaca; }
.jmz-btn.is-danger:hover { background: #fef2f2; }
.jmz-error { color: var(--jmz-red); font-weight: 500; margin: 0; }
.jmz-note { font-size: 12px; color: var(--jmz-muted); margin: 0; }

/* Potvrda i upravljanje */
.jmz-done { grid-column: 1 / -1; padding: 36px 24px; text-align: center; max-width: 560px; margin: 0 auto; }
.jmz-check {
	width: 44px; height: 44px; border-radius: 50%; background: #d1fae5; color: #047857; margin: 0 auto 16px;
	display: flex; align-items: center; justify-content: center;
}
.jmz-check.is-bad { background: #fee2e2; color: var(--jmz-red); }
.jmz-check svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.jmz-done h2 { margin: 0 0 6px; font-size: 22px; color: var(--jmz-ink); font-weight: 700; letter-spacing: -.01em; }
.jmz-done > p { margin: 0 0 18px; color: var(--jmz-muted); }
.jmz-sum { text-align: left; border-top: 1px solid var(--jmz-line); border-bottom: 1px solid var(--jmz-line); margin: 0 0 18px; padding: 14px 0; display: grid; grid-template-columns: 90px 1fr; gap: 8px 14px; }
.jmz-sum dt { color: var(--jmz-ink); font-weight: 700; margin: 0; }
.jmz-sum dd { margin: 0; color: var(--jmz-text); word-break: break-word; }
.jmz-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.jmz-done .jmz-field { text-align: left; margin: 0 0 14px; }
.jmz-msg { margin: 0; padding: 18px; background: var(--jmz-soft); border-radius: var(--jmz-radius); }
.jmz-loading { color: var(--jmz-muted); padding: 24px; }

/* Telefon */
@container (max-width: 760px) {
	.jmz-card.cols-3, .jmz-card.cols-2 { grid-template-columns: 1fr; }
	.jmz-col + .jmz-col { border-left: 0; border-top: 1px solid var(--jmz-line); }
	.jmz-col { padding: 18px 16px; }
	.jmz-title { font-size: 19px; }
	.jmz-slots { max-height: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.jmz-actions { justify-content: stretch; }
	.jmz-actions .jmz-btn { flex: 1; }
	.jmz-sum { grid-template-columns: 1fr; gap: 2px; }
	.jmz-sum dd { margin-bottom: 10px; }
}

.jmz-map { display: block; width: 100%; height: 220px; border: 0; border-radius: 10px; margin: 18px 0 0; }
