/* TN Programări — booking widget */
.tnp {
	--tnp-primary: #00672B;
	--tnp-accent: #65BC7B;
	--tnp-ink: #18222d;
	--tnp-text: #3d4855;
	--tnp-muted: #6f7a87;
	--tnp-line: #e4e9e6;
	--tnp-soft: #f3f8f4;
	--tnp-bg: #ffffff;
	--tnp-radius: 18px;
	--tnp-shadow: 0 1px 2px rgba(16, 40, 24, .04), 0 12px 40px -12px rgba(16, 40, 24, .18);
	--tnp-font: "Heebo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-family: var(--tnp-font);
	color: var(--tnp-text);
	font-size: 16px;
	line-height: 1.5;
	margin: 32px auto;
	max-width: 1040px;
	-webkit-font-smoothing: antialiased;
	container-type: inline-size;
	container-name: tnp;
}
.tnp *, .tnp *::before, .tnp *::after { box-sizing: border-box; }
.tnp h2, .tnp h3, .tnp p { margin: 0; padding: 0; font-family: var(--tnp-font); letter-spacing: normal; text-transform: none; }
.tnp ul, .tnp ol { margin: 0; padding: 0; list-style: none; }
.tnp button {
	font-family: var(--tnp-font); font-size: inherit; line-height: 1.2; letter-spacing: normal; text-transform: none;
	margin: 0; border: 0; background: none; color: inherit; cursor: pointer; box-shadow: none; min-height: 0; width: auto;
	-webkit-appearance: none; appearance: none; text-shadow: none; border-radius: 0; padding: 0;
}
.tnp button:disabled { cursor: not-allowed; }
.tnp a { text-decoration: none; }
.tnp :focus-visible { outline: 3px solid color-mix(in srgb, var(--tnp-accent) 60%, transparent); outline-offset: 2px; }
.tnp-i { width: 18px; height: 18px; flex: none; }

/* ---------- Card layout ---------- */
.tnp-card {
	display: grid;
	grid-template-columns: 320px 1fr;
	background: var(--tnp-bg);
	border-radius: var(--tnp-radius);
	box-shadow: var(--tnp-shadow);
	border: 1px solid var(--tnp-line);
	overflow: hidden;
	min-height: 560px;
}
.tnp-side {
	position: relative;
	background: var(--tnp-primary);
	background-image:
		radial-gradient(120% 80% at 0% 0%, rgba(255,255,255,.14), transparent 55%),
		radial-gradient(90% 70% at 100% 100%, color-mix(in srgb, var(--tnp-accent) 45%, transparent), transparent 60%);
	color: #fff;
	padding: 36px 30px;
}
.tnp-side__inner { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 22px; }
.tnp-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em !important; text-transform: uppercase !important; color: rgba(255,255,255,.72); }
.tnp .tnp-side__title { font-size: 26px; line-height: 1.2; font-weight: 700; color: #fff; margin-top: -12px; }
.tnp-side__member { display: flex; align-items: center; gap: 12px; padding: 12px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; }
.tnp-side__member strong { display: block; font-size: 16px; font-weight: 600; }
.tnp-side__member > div > span { display: block; font-size: 13.5px; color: rgba(255,255,255,.75); }
.tnp-side__list { display: flex; flex-direction: column; gap: 12px; }
.tnp-side__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: rgba(255,255,255,.9); }
.tnp-side__list .tnp-i { margin-top: 1px; opacity: .85; }
.tnp-side__list li.is-pick { padding: 12px 14px; background: #fff; color: var(--tnp-ink); border-radius: 12px; animation: tnp-pop .3s ease; }
.tnp-side__list li.is-pick .tnp-i { color: var(--tnp-primary); opacity: 1; }
.tnp-side__list li.is-pick strong { color: var(--tnp-primary); }
.tnp-side__price { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid rgba(255,255,255,.18); padding-top: 18px; }
.tnp-side__price span { font-size: 13px; color: rgba(255,255,255,.7); }
.tnp-side__price strong { font-size: 20px; }
.tnp-side__note { display: flex; gap: 10px; font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.66); margin-top: auto; }
.tnp-side__note .tnp-i { width: 16px; height: 16px; }

.tnp-main { padding: 32px 40px 36px; min-width: 0; }

/* ---------- Stepper ---------- */
.tnp-steps { display: flex; gap: 8px; margin-bottom: 28px !important; counter-reset: s; }
.tnp-steps li { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--tnp-muted); position: relative; }
.tnp-steps li:not(:last-child)::after { content: ""; flex: 1; height: 2px; background: var(--tnp-line); border-radius: 2px; margin: 0 4px; }
.tnp-steps li.is-done:not(:last-child)::after { background: var(--tnp-accent); }
.tnp-steps__dot { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--tnp-line); font-weight: 600; font-size: 13px; background: #fff; transition: .2s; }
.tnp-steps__dot .tnp-i { width: 15px; height: 15px; stroke-width: 2.6; }
.tnp-steps li.is-current { color: var(--tnp-ink); font-weight: 600; }
.tnp-steps li.is-current .tnp-steps__dot { border-color: var(--tnp-primary); background: var(--tnp-primary); color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--tnp-primary) 15%, transparent); }
.tnp-steps li.is-done .tnp-steps__dot { border-color: var(--tnp-accent); background: var(--tnp-accent); color: #fff; }
.tnp-steps__label { white-space: nowrap; }

.tnp-view { animation: tnp-fade .28s ease; }
.tnp-head { margin-bottom: 22px; }
.tnp .tnp-head h3 { font-size: 22px; font-weight: 700; color: var(--tnp-ink); line-height: 1.25; }
.tnp-head p { font-size: 15px; color: var(--tnp-muted); margin-top: 4px; }
.tnp .tnp-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--tnp-primary); font-weight: 500; margin-bottom: 12px; padding: 4px 0; }
.tnp .tnp-back .tnp-i { width: 16px; height: 16px; }
.tnp .tnp-back:hover { text-decoration: underline; }

/* ---------- Avatars ---------- */
.tnp-avatar { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; background: color-mix(in srgb, var(--tnp-accent) 25%, #fff); color: var(--tnp-primary); font-weight: 700; font-size: 15px; }
.tnp-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tnp-avatar--md { width: 48px; height: 48px; }
.tnp-side .tnp-avatar { box-shadow: 0 0 0 2px rgba(255,255,255,.5); }
.tnp-avatar--lg { width: 64px; height: 64px; font-size: 20px; }

/* ---------- Members ---------- */
.tnp-members { display: grid; gap: 14px; }
.tnp .tnp-member {
	display: flex; align-items: center; gap: 18px; width: 100%; text-align: left; padding: 18px 20px;
	border: 1.5px solid var(--tnp-line); border-radius: 16px; background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.tnp .tnp-member:hover { border-color: var(--tnp-accent); box-shadow: 0 8px 24px -12px rgba(0, 80, 30, .35); transform: translateY(-1px); }
.tnp-member__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tnp-member__body strong { font-size: 17px; color: var(--tnp-ink); font-weight: 600; }
.tnp-member__title { font-size: 14px; color: var(--tnp-primary); font-weight: 500; }
.tnp-member__bio { font-size: 14px; color: var(--tnp-muted); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tnp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tnp-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 500; padding: 4px 10px; border-radius: 99px; background: var(--tnp-soft); color: var(--tnp-text); }
.tnp-chip .tnp-i { width: 14px; height: 14px; }
.tnp-member__go { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--tnp-soft); color: var(--tnp-primary); transition: .2s; flex: none; }
.tnp .tnp-member:hover .tnp-member__go { background: var(--tnp-primary); color: #fff; }

/* ---------- Date & time ---------- */
.tnp-dt { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.tnp-cal { position: relative; }
.tnp-cal__nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tnp-cal__nav strong { font-size: 16px; color: var(--tnp-ink); font-weight: 600; }
.tnp .tnp-iconbtn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--tnp-line); color: var(--tnp-ink); transition: .15s; }
.tnp .tnp-iconbtn:hover:not(:disabled) { background: var(--tnp-soft); border-color: var(--tnp-accent); }
.tnp .tnp-iconbtn:disabled { opacity: .35; }
.tnp-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; transition: opacity .2s; }
.tnp-cal.is-loading .tnp-cal__grid { opacity: .35; }
.tnp-cal__dow { text-align: center; font-size: 12px; font-weight: 600; color: var(--tnp-muted); text-transform: uppercase; letter-spacing: .04em; padding: 6px 0; }
.tnp .tnp-day {
	aspect-ratio: 1; width: 100%; display: grid; place-items: center; border-radius: 50%; font-size: 15px; color: #b5bcc4; position: relative; transition: .15s;
}
.tnp .tnp-day.is-available { color: var(--tnp-primary); font-weight: 600; background: color-mix(in srgb, var(--tnp-accent) 14%, #fff); }
.tnp .tnp-day.is-available:hover { background: color-mix(in srgb, var(--tnp-accent) 30%, #fff); }
.tnp .tnp-day.is-today::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.tnp .tnp-day.is-selected { background: var(--tnp-primary); color: #fff; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--tnp-primary) 80%, transparent); }
.tnp-cal__loader { position: absolute; inset: 50px 0 30px; display: grid; place-items: center; }
.tnp-legend { display: flex; gap: 18px; margin-top: 14px; font-size: 12.5px; color: var(--tnp-muted); }
.tnp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tnp-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.tnp-legend i.is-available { background: color-mix(in srgb, var(--tnp-accent) 30%, #fff); }
.tnp-legend i.is-selected { background: var(--tnp-primary); }

.tnp-slots { border-left: 1px solid var(--tnp-line); padding-left: 28px; min-height: 280px; scroll-margin-top: 100px; }
.tnp-slots--empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--tnp-muted); gap: 10px; font-size: 14.5px; }
.tnp-slots--empty .tnp-i { width: 34px; height: 34px; color: color-mix(in srgb, var(--tnp-accent) 70%, #fff); }
.tnp-slots__date { font-weight: 600; color: var(--tnp-ink); margin-bottom: 14px !important; font-size: 15.5px; }
.tnp-slots__group + .tnp-slots__group { margin-top: 16px; }
.tnp-slots__label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tnp-muted); margin-bottom: 8px; }
.tnp-slots__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.tnp .tnp-slot {
	padding: 11px 6px; border: 1.5px solid var(--tnp-line); border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--tnp-ink); background: #fff; text-align: center; transition: .15s; font-variant-numeric: tabular-nums;
}
.tnp .tnp-slot:hover { border-color: var(--tnp-primary); color: var(--tnp-primary); }
.tnp .tnp-slot.is-selected { background: var(--tnp-primary); border-color: var(--tnp-primary); color: #fff; animation: tnp-pop .25s ease; }
.tnp-skeleton { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tnp-skeleton span { height: 44px; border-radius: 10px; background: linear-gradient(90deg, #f1f4f2 25%, #e6ece8 50%, #f1f4f2 75%); background-size: 200% 100%; animation: tnp-shimmer 1.2s infinite linear; }
.tnp-muted { color: var(--tnp-muted); font-size: 14.5px; }

/* ---------- Buttons ---------- */
.tnp-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--tnp-line); flex-wrap: wrap; }
.tnp-actions--center { justify-content: center; border: 0; padding-top: 0; }
.tnp .tnp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 12px;
	font-weight: 600; font-size: 15.5px; line-height: 1.2; transition: background .2s, transform .1s, box-shadow .2s; position: relative; border: 1.5px solid transparent;
}
.tnp .tnp-btn--primary { background: var(--tnp-primary); color: #fff; box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--tnp-primary) 90%, transparent); }
.tnp .tnp-btn--primary:hover:not(:disabled) { background: color-mix(in srgb, var(--tnp-primary) 86%, #000); color: #fff; }
.tnp .tnp-btn--primary:active:not(:disabled) { transform: translateY(1px); }
.tnp .tnp-btn--primary:disabled { background: #cfd6d2; box-shadow: none; color: #fff; }
.tnp .tnp-btn--ghost { border-color: var(--tnp-line); color: var(--tnp-ink); background: #fff; }
.tnp .tnp-btn--ghost:hover { border-color: var(--tnp-primary); color: var(--tnp-primary); }
.tnp .tnp-btn--danger { background: #c0392b; color: #fff; }
.tnp .tnp-btn--lg { padding: 15px 30px; font-size: 16px; }
.tnp .tnp-btn .tnp-spinner { display: none; }
.tnp .tnp-btn.is-loading .tnp-btn__text { visibility: hidden; }
.tnp .tnp-btn.is-loading .tnp-spinner { display: block; position: absolute; }
.tnp .tnp-linkbtn { color: inherit; font-weight: 600; text-decoration: underline; }

/* ---------- Form ---------- */
.tnp-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px; }
.tnp-field { display: flex; flex-direction: column; gap: 6px; }
.tnp-field--full { grid-column: 1 / -1; }
.tnp-field label { font-size: 14px; font-weight: 500; color: var(--tnp-ink); }
.tnp-field label em { font-style: normal; color: var(--tnp-muted); font-weight: 400; }
.tnp .tnp-field input, .tnp .tnp-field textarea {
	width: 100%; font-family: var(--tnp-font); font-size: 16px; color: var(--tnp-ink); background: #fbfcfb;
	border: 1.5px solid var(--tnp-line); border-radius: 12px; padding: 13px 15px; margin: 0; box-shadow: none; transition: border-color .15s, box-shadow .15s, background .15s; line-height: 1.4; height: auto;
}
.tnp .tnp-field textarea { resize: vertical; min-height: 96px; }
.tnp .tnp-field input::placeholder, .tnp .tnp-field textarea::placeholder { color: #a7afb8; }
.tnp .tnp-field input:focus, .tnp .tnp-field textarea:focus { outline: none; border-color: var(--tnp-primary); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--tnp-primary) 12%, transparent); }
.tnp-field.has-error input, .tnp-field.has-error textarea { border-color: #d64545; background: #fffafa; }
.tnp-field__err { font-size: 13px; color: #c0392b; min-height: 0; }
.tnp-field__err:empty { display: none; }
.tnp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.tnp-check { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; font-size: 14px; color: var(--tnp-text); cursor: pointer; line-height: 1.5; }
.tnp-check input { position: absolute; opacity: 0; pointer-events: none; }
.tnp-check__box { width: 22px; height: 22px; flex: none; border: 1.5px solid #c5cdc8; border-radius: 6px; display: grid; place-items: center; color: transparent; transition: .15s; background: #fff; margin-top: 0; }
.tnp-check__box .tnp-i { width: 14px; height: 14px; stroke-width: 3; }
.tnp-check input:checked + .tnp-check__box { background: var(--tnp-primary); border-color: var(--tnp-primary); color: #fff; }
.tnp-check input:focus-visible + .tnp-check__box { box-shadow: 0 0 0 4px color-mix(in srgb, var(--tnp-primary) 18%, transparent); }
.tnp-check a { color: var(--tnp-primary); text-decoration: underline; }
.tnp-alert { margin-top: 18px; padding: 13px 16px; border-radius: 12px; background: #fdf0ef; color: #9b2c22; font-size: 14.5px; border: 1px solid #f4cfcb; }

/* ---------- Success ---------- */
.tnp-success { text-align: center; max-width: 480px; margin: 20px auto 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tnp-success-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--tnp-accent); color: #fff; box-shadow: 0 0 0 10px color-mix(in srgb, var(--tnp-accent) 18%, transparent); animation: tnp-pop .45s cubic-bezier(.2, 1.4, .4, 1); font-size: 30px; }
.tnp-success-icon .tnp-i { width: 38px; height: 38px; stroke-width: 2.6; }
.tnp-success-icon--muted { margin: 0 auto 16px; }
.tnp .tnp-success h3 { font-size: 26px; color: var(--tnp-ink); font-weight: 700; margin-top: 10px; }
.tnp-success > p { color: var(--tnp-muted); }
.tnp-ticket { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; padding: 18px 20px; border-radius: 16px; background: var(--tnp-soft); border: 1px dashed color-mix(in srgb, var(--tnp-accent) 70%, #fff); margin: 8px 0; }
.tnp-ticket strong { display: block; color: var(--tnp-ink); font-size: 16px; }
.tnp-ticket > div > span { display: block; font-size: 14.5px; color: var(--tnp-text); }
.tnp-info { display: flex; gap: 10px; text-align: left; font-size: 13.5px; color: var(--tnp-muted); background: #fafbfa; border-radius: 12px; padding: 14px 16px; margin-top: 8px !important; }

/* ---------- Misc ---------- */
.tnp-loading { display: grid; place-items: center; min-height: 320px; border: 1px solid var(--tnp-line); border-radius: var(--tnp-radius); }
.tnp-spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--tnp-primary) 18%, transparent); border-top-color: var(--tnp-primary); animation: tnp-spin .7s linear infinite; display: inline-block; }
.tnp-spinner--sm { width: 20px; height: 20px; border-width: 2.5px; border-color: rgba(255,255,255,.35); border-top-color: #fff; }
.tnp-notice { padding: 16px 20px; border-radius: 12px; background: #fff8e5; border: 1px solid #f3dfa2; color: #6b5310; }
.tnp-standalone { padding: 40px 16px; }
.tnp-cancel-card { display: block; max-width: 520px; min-height: 0; margin: 0 auto; padding: 44px 40px; text-align: center; }
.tnp .tnp-cancel-card h2 { font-size: 24px; color: var(--tnp-ink); margin-bottom: 10px; font-weight: 700; }
.tnp .tnp-cancel-card p { margin-bottom: 24px; }

@keyframes tnp-spin { to { transform: rotate(360deg); } }
@keyframes tnp-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes tnp-pop { 0% { transform: scale(.85); opacity: .4; } 100% { transform: scale(1); opacity: 1; } }
@keyframes tnp-shimmer { to { background-position: -200% 0; } }

/* ---------- Responsive ---------- */
@container tnp (max-width: 860px) {
	.tnp-card { grid-template-columns: 1fr; }
	.tnp-side { padding: 24px 22px; }
	.tnp-side__inner { position: static; gap: 16px; }
	.tnp .tnp-side__title { font-size: 22px; }
	.tnp-side__list { flex-direction: row; flex-wrap: wrap; gap: 8px 18px; }
	.tnp-side__list li.is-pick { flex-basis: 100%; }
	.tnp-side__note { display: none; }
	.tnp-main { padding: 26px 22px 28px; }
}
@container tnp (max-width: 620px) {
	.tnp { margin: 16px auto; }
	.tnp-card { border-radius: 14px; }
	.tnp-dt { grid-template-columns: 1fr; gap: 22px; }
	.tnp-cal { max-width: 420px; }
	.tnp-slots { border-left: 0; padding-left: 0; border-top: 1px solid var(--tnp-line); padding-top: 22px; min-height: 0; }
	.tnp-slots--empty { padding: 10px 0; }
	.tnp-form__grid { grid-template-columns: 1fr; }
	.tnp-steps__label { display: none; }
	.tnp-steps li.is-current .tnp-steps__label { display: inline; }
	.tnp-actions .tnp-btn { width: 100%; }
	.tnp .tnp-member { padding: 14px; gap: 14px; }
	.tnp-avatar--lg { width: 52px; height: 52px; }
	.tnp-member__go { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.tnp *, .tnp *::before, .tnp *::after { animation: none !important; transition: none !important; }
}
