/* Képzésfoglaló – publikus beágyazott felület */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

.kf-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--kf-bg, #fff);
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
.kf-app { max-width: 1200px; margin: 0 auto; padding: 8px 4px 40px; }

/* ---------- fejléc ---------- */
.kf-header { margin-bottom: 28px; }
.kf-heading {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700; letter-spacing: -0.02em;
  color: var(--kf-primary); margin: 8px 0 18px;
}
.kf-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.kf-search {
  flex: 1 1 260px; display: flex; align-items: center; gap: 8px;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: var(--kf-btn-radius, 10px);
  padding: 0 14px; color: #64748b; transition: border-color .15s, box-shadow .15s;
}
.kf-search:focus-within { border-color: var(--kf-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--kf-primary) 12%, transparent); }
.kf-search input {
  flex: 1; border: 0; background: transparent; padding: 11px 0;
  font-size: .95rem; color: #1e293b; outline: none; min-width: 0;
}
.kf-select, .kf-filters select, .kf-filters input {
  padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 10px;
  background: #fff; font-size: .9rem; color: #1e293b; font-family: inherit;
}
.kf-select:focus, .kf-filters select:focus, .kf-filters input:focus,
.kf-search input:focus { outline: none; }
.kf-select:focus-visible, .kf-btn:focus-visible, .kf-filters select:focus-visible,
.kf-filters input:focus-visible, .kf-card:focus-visible {
  outline: 2px solid var(--kf-primary); outline-offset: 2px;
}

.kf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; font-family: inherit; font-size: .93rem; font-weight: 600;
  padding: 11px 20px; border-radius: var(--kf-btn-radius, 10px);
  background: var(--kf-primary); color: #fff;
  transition: transform .12s ease, box-shadow .15s, opacity .15s;
  min-height: 44px;
}
.kf-btn:hover { opacity: .92; transform: translateY(-1px); }
.kf-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.kf-btn-outline { background: transparent; color: var(--kf-primary); border: 1.5px solid var(--kf-primary); }
.kf-btn-ghost { background: #f1f5f9; color: #334155; }
.kf-small { padding: 7px 14px; min-height: 36px; font-size: .85rem; }

.kf-filters {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px; margin-top: 14px; padding: 16px;
  background: #f8fafc; border: 1px solid #eef2f7; border-radius: var(--kf-radius, 16px);
  align-items: end;
}
.kf-filters label { display: flex; flex-direction: column; gap: 5px; font-size: .78rem; font-weight: 600; color: #64748b; }

/* ---------- szekciók ---------- */
.kf-section-title {
  font-size: 1.15rem; font-weight: 700; color: #0f172a;
  margin: 34px 0 16px; display: flex; align-items: center; gap: 10px;
}
.kf-section-title::after { content: ""; flex: 1; height: 1px; background: #e8edf3; }
.kf-past-section { opacity: .92; }

/* ---------- rács ---------- */
.kf-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(var(--kf-cols, 3), minmax(0, 1fr));
}
@media (max-width: 1024px) { .kf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .kf-grid { grid-template-columns: 1fr; } }
.kf-more-wrap { display: flex; justify-content: center; margin-top: 22px; }

/* ---------- kártya ---------- */
.kf-card {
  display: flex; flex-direction: column; overflow: hidden; cursor: pointer;
  background: #fff; border: 1px solid #eef2f7; border-radius: var(--kf-radius, 16px);
  box-shadow: var(--kf-shadow); text-align: left; padding: 0; font: inherit; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.kf-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(15,23,42,.12); }
.kf-card-media { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, #eef1f8, #e4e9f4); overflow: hidden; }
.kf-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kf-card-media .kf-cover-fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: color-mix(in srgb, var(--kf-primary) 35%, #cbd5e1);
}
.kf-datebadge {
  position: absolute; top: 12px; left: 12px; width: 58px;
  background: rgba(255,255,255,.95); backdrop-filter: blur(4px);
  border-radius: 12px; text-align: center; padding: 7px 4px 6px;
  box-shadow: 0 2px 10px rgba(15,23,42,.14); line-height: 1.15;
}
.kf-datebadge .m { display: block; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--kf-primary); }
.kf-datebadge .d { display: block; font-size: 1.35rem; font-weight: 800; color: #0f172a; }
.kf-datebadge .w { display: block; font-size: .6rem; color: #64748b; font-weight: 600; }
.kf-ribbons { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.kf-ribbon {
  font-size: .68rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: var(--kf-primary); color: #fff; box-shadow: 0 2px 8px rgba(15,23,42,.18);
}
.kf-ribbon.full { background: #b91c1c; }
.kf-ribbon.last { background: #b45309; }
.kf-ribbon.soon { background: #0e7490; }
.kf-ribbon.online { background: #0f766e; }

.kf-card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.kf-card-type { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.kf-card-title {
  font-size: 1.05rem; font-weight: 700; color: #0f172a; margin: 0; letter-spacing: -0.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em;
}
.kf-card-desc {
  font-size: .85rem; color: #64748b; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.kf-card-meta { display: flex; flex-direction: column; gap: 5px; margin-top: auto; padding-top: 10px; font-size: .82rem; color: #475569; }
.kf-card-meta .row { display: flex; align-items: center; gap: 7px; min-width: 0; }
.kf-card-meta .row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-card-meta svg { flex: 0 0 auto; color: var(--kf-accent, #94a3b8); }
.kf-card-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  border-top: 1px solid #f1f5f9; margin-top: 10px; padding-top: 12px;
}
.kf-price { font-weight: 800; color: var(--kf-primary); font-size: .95rem; }
.kf-price.free { color: #0f766e; }
.kf-seats { font-size: .76rem; font-weight: 600; color: #64748b; }
.kf-seats.low { color: #b45309; }
.kf-seats.none { color: #b91c1c; }
.kf-badge-accr {
  display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 700;
  color: #0f766e; background: #ecfdf5; border: 1px solid #d1fae5;
  padding: 2px 8px; border-radius: 999px;
}

/* ---------- skeleton / üres / hiba ---------- */
@keyframes kf-shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.kf-skeleton { border-radius: var(--kf-radius, 16px); border: 1px solid #eef2f7; overflow: hidden; }
.kf-skeleton .sk { background: linear-gradient(90deg, #f1f5f9 25%, #e8edf3 37%, #f1f5f9 63%); background-size: 800px 100%; animation: kf-shimmer 1.3s infinite linear; }
.kf-skeleton .sk-img { aspect-ratio: 16/9; }
.kf-skeleton .sk-line { height: 13px; border-radius: 6px; margin: 12px 16px; }
.kf-skeleton .sk-line.w60 { width: 60%; }
.kf-skeleton .sk-line.w80 { width: 80%; }
.kf-empty, .kf-error {
  grid-column: 1/-1; text-align: center; padding: 48px 20px; color: #64748b;
  background: #f8fafc; border: 1px dashed #dbe3ec; border-radius: var(--kf-radius, 16px);
}
.kf-empty svg, .kf-error svg { color: #cbd5e1; margin-bottom: 10px; }
.kf-error { background: #fef9f9; border-color: #f5d5d5; color: #7f1d1d; }

/* ---------- modal ---------- */
.kf-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.kf-modal[hidden] { display: none; }
.kf-modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(3px); }
.kf-modal-box {
  position: relative; width: min(860px, 100%); max-height: min(92vh, 100%);
  background: #fff; border-radius: 20px; box-shadow: 0 30px 80px rgba(15,23,42,.35);
  display: flex; flex-direction: column; overflow: hidden;
  animation: kf-pop .22s ease;
}
@keyframes kf-pop { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.kf-modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 40px; height: 40px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); color: #0f172a; box-shadow: 0 2px 12px rgba(15,23,42,.22);
  display: flex; align-items: center; justify-content: center;
}
.kf-modal-content { overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 640px) {
  .kf-modal { padding: 0; align-items: stretch; }
  .kf-modal-box { width: 100%; max-height: 100%; border-radius: 0; }
}

/* modal belső tartalom */
.kf-detail-hero { position: relative; aspect-ratio: 21/9; min-height: 160px; background: linear-gradient(135deg, #e8ecf6, #dde4f2); }
.kf-detail-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kf-detail-body { padding: 26px clamp(18px, 4vw, 36px) 36px; }
.kf-detail-type {
  display: inline-flex; align-items: center;
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.kf-detail-title { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 4px; color: #0f172a; }
.kf-detail-sub { color: #64748b; margin: 0 0 18px; }
.kf-detail-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 8px; }
/* nem boxos, elválasztóvonalas sorlista: minden mező pontosan annyi helyet
   foglal, amennyi a tartalmához kell — nincs kényszerített egyenlő magasság */
.kf-infogrid {
  display: block; margin: 18px 0;
}
.kf-infocell {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 10px 14px; border-bottom: 1px solid #eef2f7;
}
.kf-infocell:last-child { border-bottom: 0; }
.kf-infocell .k { flex: 0 0 auto; font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; color: #94a3b8; }
.kf-infocell .v { font-size: .92rem; font-weight: 600; color: #0f172a; overflow-wrap: anywhere; text-align: right; }
@media (max-width: 640px) {
  .kf-infocell { padding: 9px 12px; }
  .kf-infocell .k { font-size: .62rem; }
  .kf-infocell .v { font-size: .85rem; }
  /* teljes szélességű, de igazi gombnak ható CTA: lekerekítve, árnyékkal, "levegővel" körülötte */
  .kf-detail-body { padding-left: 18px; padding-right: 18px; }
  .kf-detail-cta { gap: 0; margin: 22px 0 20px; }
  .kf-detail-cta .kf-btn {
    flex: 1 1 100%; width: 100%; min-height: 52px; font-size: 1rem;
    border-radius: var(--kf-btn-radius, 10px);
    box-shadow: 0 6px 18px rgba(18, 38, 124, .28);
  }
  .kf-detail-cta .kf-btn:active { box-shadow: 0 2px 8px rgba(18, 38, 124, .25); transform: translateY(1px); }
}
/* helyszín-fotógaléria (lapozható) */
.kf-vgal { position: relative; border-radius: 14px; overflow: hidden; margin-bottom: 12px; aspect-ratio: 16/9; background: #f1f5f9; }
.kf-vgal img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kf-vgal-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 38px; height: 38px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: #0f172a; font-size: 22px; line-height: 1;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .25);
  display: flex; align-items: center; justify-content: center;
}
.kf-vgal-btn:hover { background: #fff; }
.kf-vgal-btn.prev { left: 10px; }
.kf-vgal-btn.next { right: 10px; }
.kf-vgal-dots {
  position: absolute; left: 0; right: 0; bottom: 10px; display: flex; gap: 6px; justify-content: center;
}
.kf-vgal-dot {
  width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .55);
  cursor: pointer; box-shadow: 0 1px 4px rgba(15, 23, 42, .35);
}
.kf-vgal-dot.active { background: #fff; }

.kf-detail-section { margin: 26px 0 0; }
.kf-detail-section > h3 { font-size: 1.02rem; font-weight: 800; color: #0f172a; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.kf-detail-section > h3::after { content: ""; flex: 1; height: 1px; background: #eef2f7; }
.kf-prose { font-size: .93rem; color: #334155; white-space: pre-line; }

.kf-program { display: flex; flex-direction: column; gap: 0; border-left: 2px solid #e8edf3; margin-left: 6px; }
.kf-program-item { position: relative; padding: 10px 0 14px 22px; }
.kf-program-item::before {
  content: ""; position: absolute; left: -6px; top: 16px; width: 10px; height: 10px;
  border-radius: 999px; background: var(--kf-primary); box-shadow: 0 0 0 3px #fff;
}
.kf-program-item.szunet::before, .kf-program-item.ebed::before { background: #94a3b8; }
.kf-program-time { font-size: .78rem; font-weight: 800; color: var(--kf-primary); }
.kf-program-title { font-weight: 700; font-size: .93rem; color: #0f172a; }
.kf-program-extra { font-size: .82rem; color: #64748b; }
/* többsoros programpont-leírás: a sortörések (felsorolások) megmaradnak */
.kf-program-desc { font-size: .85rem; color: #475569; margin-top: 4px; white-space: pre-line; line-height: 1.55; }

.kf-speaker { display: flex; gap: 14px; align-items: flex-start; padding: 14px; background: #f8fafc; border-radius: 14px; border: 1px solid #eef2f7; margin-bottom: 10px; }
.kf-speaker-photo { width: 62px; height: 62px; flex: 0 0 62px; border-radius: 999px; object-fit: cover; background: #e2e8f0; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-weight: 800; font-size: 1.2rem; }
.kf-speaker .name { font-weight: 800; color: #0f172a; }
.kf-speaker .pos { font-size: .8rem; color: #64748b; margin-bottom: 4px; }
.kf-speaker .bio { font-size: .85rem; color: #475569; }
.kf-speaker-links { display: flex; gap: 8px; margin-top: 6px; }
.kf-speaker-links a { color: var(--kf-primary); display: inline-flex; }

.kf-map { border: 0; width: 100%; height: 260px; border-radius: 14px; }
.kf-doc { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid #eef2f7; border-radius: 12px; margin-bottom: 8px; text-decoration: none; color: #0f172a; font-weight: 600; font-size: .9rem; }
.kf-doc:hover { background: #f8fafc; }
.kf-share-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- űrlap ---------- */
.kf-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kf-form .full { grid-column: 1/-1; }
@media (max-width: 560px) { .kf-form { grid-template-columns: 1fr; } }
.kf-field { display: flex; flex-direction: column; gap: 5px; }
.kf-field label { font-size: .8rem; font-weight: 700; color: #334155; }
.kf-field label .req { color: #b91c1c; }
.kf-field input, .kf-field select, .kf-field textarea {
  padding: 11px 13px; border: 1px solid #dbe3ec; border-radius: 10px;
  font-family: inherit; font-size: .92rem; color: #0f172a; background: #fff;
}
.kf-field input:focus, .kf-field select:focus, .kf-field textarea:focus {
  outline: none; border-color: var(--kf-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--kf-primary) 12%, transparent);
}
.kf-field.error input, .kf-field.error select, .kf-field.error textarea { border-color: #dc2626; }
.kf-field .err { font-size: .75rem; color: #dc2626; }
.kf-check { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: #334155; }
.kf-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--kf-primary); }
.kf-form-msg { padding: 12px 16px; border-radius: 12px; font-size: .9rem; font-weight: 600; }
.kf-form-msg.ok { background: #ecfdf5; color: #065f46; border: 1px solid #d1fae5; }
.kf-form-msg.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.kf-success { text-align: center; padding: 30px 10px; }
.kf-success .icon { width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 999px; background: #ecfdf5; color: #059669; display: flex; align-items: center; justify-content: center; }
.kf-success h3 { margin: 0 0 8px; font-size: 1.25rem; color: #0f172a; }
.kf-success .code { font-family: ui-monospace, monospace; font-size: 1.05rem; font-weight: 800; background: #f1f5f9; padding: 6px 14px; border-radius: 10px; display: inline-block; margin: 10px 0; }
.kf-success img.qr { width: 150px; height: 150px; margin: 14px auto; display: block; }

.kf-compact .kf-card-desc, .kf-compact .kf-card-meta .row.opt { display: none; }
.kf-compact .kf-card-body { padding: 12px 14px 14px; }
.kf-compact .kf-grid { gap: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* strukturált leírás: Szakmai fókusz doboz + listák + Mit visz haza kártya */
.kf-focus {
  margin-top: 14px; background: linear-gradient(140deg, #fdfaf3, #faf3e3);
  border: 1px solid #eee3c8; border-radius: 14px; padding: 16px 20px 14px;
}
.kf-focus-tag {
  display: inline-block; background: #c9a24b; color: #fff; font-size: .68rem;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 20px; margin-bottom: 8px;
}
.kf-focus-list, .kf-outcomes { margin: 6px 0 0; padding: 0; list-style: none; }
.kf-focus-list li, .kf-outcomes li {
  position: relative; padding-left: 24px; margin: 7px 0; font-size: .93rem; color: #334155;
}
.kf-focus-list li::before {
  content: "✦"; position: absolute; left: 2px; color: #c9a24b; font-size: .85rem;
}
.kf-outcomes li::before {
  content: ""; position: absolute; left: 6px; top: 9px; width: 7px; height: 7px;
  border-radius: 50%; background: #c9a24b;
}
.kf-haza {
  margin: 22px 0;
  background: color-mix(in srgb, var(--kf-primary, #12267C) 4%, #fff);
  border: 1px solid color-mix(in srgb, var(--kf-primary, #12267C) 16%, #e2e8f0);
  border-left: 3px solid var(--kf-primary, #12267C);
  border-radius: 14px; padding: 18px 22px;
}
.kf-haza-title {
  display: block; color: var(--kf-primary, #12267C); font-weight: 800; font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px;
}
.kf-haza-list { margin: 0; padding: 0; list-style: none; }
.kf-haza-list li {
  position: relative; padding-left: 26px; margin: 8px 0; color: #334155; font-size: .93rem;
}
.kf-haza-list li::before {
  content: "✓"; position: absolute; left: 2px;
  color: var(--kf-primary, #12267C); font-weight: 700;
}

/* fotó nélküli előadó: user-doctor ikon az avatar-körben */
.kf-speaker-photo.kf-speaker-ph { display: flex; align-items: center; justify-content: center; }
.kf-speaker-photo.kf-speaker-ph svg { width: 44%; height: 44%; opacity: .85; }

/* csak névből álló előadó-kártya: a név az avatar mellett függőlegesen középen */
.kf-speaker.kf-speaker-simple { align-items: center; }
.kf-speaker.kf-speaker-simple .name { margin: 0; }

/* ================= jelentkezési varázsló ================= */
.kf-wiz-section { border: 1px solid var(--kf-line, #e2e8f0); border-radius: 16px; padding: 18px 18px 22px; background: #fff; }
.kf-wiz-bar { display: flex; align-items: center; gap: 4px; margin: 10px 0 18px; }
.kf-wiz-dot { display: flex; align-items: center; gap: 7px; min-width: 0; }
.kf-wiz-dot .n { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: .82rem; font-weight: 700; background: #eef2f7; color: #64748b;
  border: 2px solid #e2e8f0; transition: all .2s; }
.kf-wiz-dot .t { font-size: .8rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s; }
.kf-wiz-dot.act .n { background: var(--kf-primary, #12267C); border-color: var(--kf-primary, #12267C); color: #fff; }
.kf-wiz-dot.act .t { color: var(--kf-primary, #12267C); font-weight: 700; }
.kf-wiz-dot.done { cursor: pointer; }
.kf-wiz-dot.done .n { background: #ecfdf5; border-color: #34d399; color: #059669; }
.kf-wiz-line { flex: 1 1 12px; height: 2px; background: #e2e8f0; border-radius: 2px; min-width: 8px; }
.kf-step { display: none; }
.kf-step.act { display: block; animation: kf-step-in .22s ease-out; }
@keyframes kf-step-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.kf-wiz-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.kf-wiz-nav .kf-btn { min-width: 120px; }
.kf-wiz-count { color: #94a3b8; font-size: .82rem; }
/* jegyválasztó kártyák */
.kf-ticket-list { display: flex; flex-direction: column; gap: 8px; }
.kf-ticket { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--kf-line, #e2e8f0);
  border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.kf-ticket:has(input:checked) { border-color: var(--kf-primary, #12267C); background: #f6f8ff; }
.kf-ticket input { accent-color: var(--kf-primary, #12267C); }
.kf-ticket-body { display: flex; flex-direction: column; min-width: 0; }
.kf-ticket-body small { color: #64748b; }
.kf-ticket-price { margin-left: auto; font-weight: 700; color: var(--kf-primary, #12267C); white-space: nowrap; }
/* összegzés */
.kf-sum { background: #f8fafc; border: 1px solid var(--kf-line, #e2e8f0); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 10px; }
.kf-sum h4 { margin: 0 0 6px; font-size: .92rem; }
.kf-sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; font-size: .88rem; }
.kf-sum-row span { color: #64748b; }
.kf-sum-row strong { text-align: right; overflow-wrap: anywhere; }
/* mobil */
@media (max-width: 560px) {
  .kf-wiz-section { padding: 14px 12px 18px; }
  .kf-wiz-dot .t { display: none; }
  .kf-wiz-dot.act .t { display: block; }
  .kf-wiz-nav { flex-wrap: wrap; }
  .kf-wiz-nav .kf-btn { flex: 1 1 auto; }
}

/* űrlap-lenyílók: a szűrőkkel azonos, egyedi dizájn (nem böngésző-alap) */
.kf-field select {
  -webkit-appearance: none; appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23555' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.kf-field select:hover { border-color: color-mix(in srgb, var(--kf-primary, #12267C) 45%, #dbe3ec); }

/* számlázási mód választó + kitöltő infoblokk */
.kf-billtype { flex-direction: row; }
.kf-billtype .kf-ticket { flex: 1 1 45%; }
@media (max-width: 560px) { .kf-billtype { flex-direction: column; } }
.kf-bill-note { display: flex; gap: 12px; align-items: flex-start; background: #f8fafc;
  border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px 16px;
  color: #475569; font-size: .88rem; line-height: 1.55; }
.kf-bn-i { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background: var(--kf-primary, #12267C); color: #fff; font-style: normal; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: .8rem; }

/* ár-megjegyzés a kártyákon egy sorban */
.kf-price { white-space: nowrap; }
.kf-price-note { font-size: .74rem; font-weight: 600; color: #64748b; }

/* összegzés: mindig a teljes sor szélességében */
.kf-form .kf-sum, .kf-field .kf-sum { width: 100%; }

/* Wizard: a hidden attribútum ne bukjon el a .kf-btn display:inline-flex miatt.
   E nélkül a "Jelentkezés elküldése" és a "Vissza" gomb az első lépcsőn is látszik. */
.kf-btn[hidden] { display: none !important; }

/* --- Wizard: állandó összegző sáv (az ár ne tűnjön el a középső lépcsőkön) --- */
.kf-wiz-sticky {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; margin: 0 0 14px;
  background: #f8fafc; border: 1px solid var(--kf-line, #e2e8f0);
  border-radius: var(--kf-radius, 12px);
}
.kf-sticky-ev { display: flex; flex-direction: column; min-width: 0; }
.kf-sticky-ev strong {
  font-size: .92rem; line-height: 1.25; color: #0f172a;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.kf-sticky-ev small { color: #64748b; font-size: .78rem; }
.kf-sticky-price {
  flex: 0 0 auto; font-weight: 700; font-size: .95rem; color: var(--kf-primary);
  white-space: nowrap;
}
@media (max-width: 560px) {
  .kf-wiz-sticky { padding: 9px 12px; }
  .kf-sticky-ev strong { font-size: .86rem; }
  .kf-sticky-price { font-size: .9rem; }
}

/* ==========================================================================
   JELENTKEZÉSI MODAL (kf-rm) — önálló, nem érinti a részletes modalt
   ========================================================================== */
.kf-rm { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.kf-rm[hidden] { display: none !important; }
.kf-rm-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, .58);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: kf-rm-fade .18s ease;
}
.kf-rm-box {
  position: relative; z-index: 1;
  width: min(620px, 100%); max-height: min(90vh, 100%);
  background: #fff; border-radius: 20px;
  box-shadow: 0 32px 90px rgba(15, 23, 42, .38), 0 2px 8px rgba(15, 23, 42, .12);
  display: flex; flex-direction: column; overflow: hidden;
  animation: kf-rm-pop .24s cubic-bezier(.2, .8, .3, 1);
}
@keyframes kf-rm-fade { from { opacity: 0; } }
@keyframes kf-rm-pop { from { opacity: 0; transform: translateY(18px) scale(.97); } }

/* fejléc: nem görög, mindig látszik mire jelentkezik */
.kf-rm-head {
  flex: 0 0 auto; display: flex; align-items: flex-start; gap: 12px;
  padding: 18px 20px 16px; border-bottom: 1px solid var(--kf-line, #e2e8f0);
  background: #fff;
}
.kf-rm-head-txt { min-width: 0; flex: 1 1 auto; }
.kf-rm-eyebrow {
  display: block; font-size: .68rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--kf-primary); margin-bottom: 3px;
}
.kf-rm-head h3 {
  margin: 0; font-size: 1.03rem; line-height: 1.3; color: #0f172a; font-weight: 700;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.kf-rm-head small { display: block; margin-top: 3px; color: #64748b; font-size: .8rem; }
.kf-rm-x {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 999px; border: 0; cursor: pointer;
  background: #f1f5f9; color: #334155;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.kf-rm-x:hover { background: #e2e8f0; color: #0f172a; }

/* törzs: ez görög, a lépcső-tartalom ide kerül */
.kf-rm-body {
  flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 20px 4px;
}
/* a modalban a szekció-keret felesleges, a fejléc már megadja a kontextust */
.kf-rm-body .kf-detail-section { border: 0; padding: 0; margin: 0; background: none; box-shadow: none; }
.kf-rm-body .kf-wiz-section > h3 { display: none; }
.kf-rm-body .kf-wiz-sticky { top: 0; margin-top: 14px; }

/* navigáció a modal alján tapadva */
.kf-rm-body .kf-wiz-nav {
  position: sticky; bottom: 0; z-index: 4;
  margin: 18px -20px 0; padding: 12px 20px;
  background: #fff; border-top: 1px solid var(--kf-line, #e2e8f0);
}

/* siker-képernyő a modalban */
.kf-rm-body .kf-detail-body { padding: 20px 0 24px; }

@media (max-width: 640px) {
  .kf-rm { padding: 0; align-items: stretch; }
  .kf-rm-box { width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
  .kf-rm-head { padding: 14px 16px 12px; }
  .kf-rm-body { padding: 0 16px 4px; }
  .kf-rm-body .kf-wiz-nav { margin: 16px -16px 0; padding: 11px 16px; }
}

/* --- Modal-finomítások (mért hibák javítása) --- */
/* 1) A fejléc már viszi a képzés nevét/dátumát: a sávban ne legyen duplán,
      csak a díj, felirattal. */
.kf-rm-body .kf-wiz-sticky .kf-sticky-ev { display: none; }
.kf-rm-body .kf-wiz-sticky::before {
  content: "Részvételi díj";
  font-size: .82rem; font-weight: 600; color: #64748b;
}
/* 2) Rövid tartalomnál a navigáció ne lógjon a levegőben: told a doboz aljára.
      Hosszú tartalomnál a sticky viszi tovább a dolgát. */
.kf-rm-body { display: flex; flex-direction: column; }
.kf-rm-body > .kf-detail-section { flex: 1 1 auto; display: flex; flex-direction: column; }
.kf-rm-body .kf-wiz { flex: 1 1 auto; display: flex; flex-direction: column; }
.kf-rm-body #kf-form { flex: 1 1 auto; display: flex; flex-direction: column; }
.kf-rm-body .kf-wiz-nav { margin-top: auto; }

/* --- Mobil tapadó CTA-sáv: a Jelentkezem gomb kigördülés után alul beúszik --- */
.kf-cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid rgba(15, 23, 42, .10);
  box-shadow: 0 -8px 28px rgba(15, 23, 42, .12);
  transform: translateY(120%);
  opacity: 0;
  visibility: hidden;
  transition: transform .32s cubic-bezier(.22, .9, .3, 1), opacity .24s ease, visibility 0s linear .32s;
}
.kf-cta-bar.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform .32s cubic-bezier(.22, .9, .3, 1), opacity .2s ease, visibility 0s;
}
.kf-cta-bar .kf-cta-btn {
  flex: 1 1 auto; width: 100%; min-height: 50px; font-size: 1rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .18);
}
/* nyitott jelentkezési modal alatt ne lógjon be */
body.kf-rm-open .kf-cta-bar { transform: translateY(120%); opacity: 0; visibility: hidden; }
/* asztali gépen soha */
@media (min-width: 641px) { .kf-cta-bar { display: none !important; } }
/* mozgás-érzékenyeknek ne ugráljon */
@media (prefers-reduced-motion: reduce) {
  .kf-cta-bar { transition: opacity .2s ease, visibility 0s; transform: none; }
  .kf-cta-bar.show { transform: none; }
}

/* --- CTA-sáv: háttér nélkül, csak a gomb lebeg (Barnabás 2026-08-15) --- */
.kf-cta-bar {
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-top: 0;
  box-shadow: none;
  padding: 0 14px calc(14px + env(safe-area-inset-bottom, 0px));
  /* a láthatatlan sáv ne nyelje el a kattintást a mögötte lévő tartalomról */
  pointer-events: none;
}
.kf-cta-bar .kf-cta-btn {
  pointer-events: auto;
  /* háttér nélkül a gombnak magának kell elválnia a tartalomtól */
  box-shadow: 0 10px 30px rgba(15, 23, 42, .28), 0 2px 8px rgba(15, 23, 42, .16);
}

/* --- Részvételi díj sáv: NE tapadjon, görögjön a tartalommal (Barnabás 2026-08-15) --- */
.kf-rm-body .kf-wiz-sticky { position: static; }
