/* Korall foglalás – a látogatói felület. A színek és formák CSS-változókkal állíthatók (a Korall téma beállítja őket). */
.kf {
	--_accent: var(--kf-accent, #f3725d);
	--_accent-text: var(--kf-accent-text, #c2412e);
	--_ok: var(--kf-ok, #1f7a70);
	--_ink: var(--kf-ink, #252944);
	--_soft: var(--kf-soft, #fdeceb);
	--_radius: var(--kf-radius, 20px);
	--_btn-bg: var(--kf-btn-bg, #f6ae2d);
	--_btn-text: var(--kf-btn-text, #252944);
	--_btn-radius: var(--kf-btn-radius, 28px 6px 28px 6px);
	--_head: var(--kf-font-head, inherit);
	color: var(--_ink);
	background: #fff;
	border-radius: var(--_radius);
	box-shadow: 0 18px 40px -24px rgba(37, 41, 68, .45);
	padding: clamp(1.2rem, 3vw, 2.2rem);
	text-align: left;
}
.kf .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kf-step + .kf-step { margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px dashed rgba(37, 41, 68, .15); }
.kf-h { display: flex; align-items: center; gap: .7rem; margin: 0 0 1rem; font-family: var(--_head); font-size: 1.3rem; color: var(--_ink); outline: none; }
.kf-num { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--_accent); color: #fff; font-size: 1rem; }
.kf-loading, .kf-empty { margin: .6rem 0; color: #5c5d67; }
.kf-alert { margin: .8rem 0; padding: .8rem 1rem; border-radius: 12px; background: #fde2e1; color: #8e1e1e; font-weight: 600; }
.kf-chosen, .kf-picked, .kf-daylabel { margin: 0 0 .8rem; }
.kf-daylabel { font-weight: 700; margin-top: 1.2rem; }
.kf-picked { padding: .7rem 1rem; border-radius: 12px; background: var(--_soft); }

/* Szolgáltatások */
.kf-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.kf-service { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; padding: 1rem 1.1rem; border: 2px solid rgba(37, 41, 68, .12); border-left: 6px solid var(--kf-service-color, var(--_accent)); border-radius: 16px; background: #fff; color: var(--_ink); text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.kf-service:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -18px rgba(37, 41, 68, .6); }
.kf-service[aria-checked="true"] { border-color: var(--_ok); box-shadow: 0 0 0 3px rgba(31, 122, 112, .18); }
.kf-service-name { font-family: var(--_head); font-weight: 700; font-size: 1.1rem; }
.kf-service-meta { font-size: .85rem; font-weight: 700; color: var(--_accent-text); }
.kf-service-desc { font-size: .9rem; color: #5c5d67; line-height: 1.45; }

/* Napok */
.kf-daynav { display: flex; align-items: stretch; gap: .5rem; }
.kf-daynav.is-dated .kf-days { grid-auto-columns: 96px; justify-content: start; }
.kf-arrow { flex: none; width: 42px; border: 0; border-radius: 12px; background: var(--_soft); color: var(--_ink); font-size: 1.5rem; cursor: pointer; }
.kf-arrow:disabled { opacity: .35; cursor: default; }
.kf-days { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(64px, 1fr); gap: .45rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 6px; scrollbar-width: thin; }
.kf-day { scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .55rem .3rem; border: 2px solid transparent; border-radius: 14px; background: var(--_soft); color: var(--_ink); cursor: pointer; transition: background-color .2s, border-color .2s; }
.kf-day-wd { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.kf-day-num { font-family: var(--_head); font-size: 1.25rem; font-weight: 700; line-height: 1.1; }
.kf-day-free { font-size: .72rem; color: var(--_ok); font-weight: 700; }
.kf-day[aria-selected="true"] { background: var(--_ok); color: #fff; }
.kf-day[aria-selected="true"] .kf-day-free { color: #fff; }
.kf-day:hover:not(:disabled) { border-color: var(--_ok); }
.kf-day.is-empty { background: #f4f4f6; color: #9a9ba6; cursor: default; }

/* Időpontok */
.kf-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; }
.kf-slot { display: flex; flex-direction: column; align-items: center; gap: .05rem; padding: .7rem .4rem; border: 2px solid rgba(37, 41, 68, .15); border-radius: 12px; background: #fff; color: var(--_ink); cursor: pointer; font-weight: 700; transition: border-color .2s, background-color .2s; }
.kf-slot-time { font-family: var(--_head); font-size: 1.15rem; }
.kf-slot-left { font-size: .75rem; font-weight: 600; color: #5c5d67; }
.kf-slot:hover:not(:disabled) { border-color: var(--_ok); }
.kf-slot.is-selected { background: var(--_ok); border-color: var(--_ok); color: #fff; }
.kf-slot.is-selected .kf-slot-left { color: #fff; }
.kf-slot:disabled { background: #f4f4f6; color: #9a9ba6; cursor: default; text-decoration: line-through; }
.kf-slot:disabled .kf-slot-left { text-decoration: none; }

/* Űrlap */
.kf-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.kf-field { display: flex; flex-direction: column; gap: .3rem; }
.kf-field-note, .kf-consent, .kf-actions, .kf-form .kf-alert { grid-column: 1 / -1; }
.kf-field label { font-weight: 700; font-size: .95rem; }
.kf-field input[type=text], .kf-field input[type=email], .kf-field input[type=tel], .kf-field select, .kf-field textarea { width: 100%; box-sizing: border-box; min-height: 48px; padding: .7rem .9rem; border: 2px solid rgba(37, 41, 68, .18); border-radius: 12px; font: inherit; color: var(--_ink); background: #fff; }
.kf-field textarea { min-height: 90px; }
.kf-field input:focus, .kf-field select:focus, .kf-field textarea:focus { border-color: var(--_ok); outline: 3px solid rgba(31, 122, 112, .2); outline-offset: 0; }
.kf-field [aria-invalid="true"] { border-color: #c22; }
.kf-hint { font-size: .82rem; color: #5c5d67; }
.kf-error { font-size: .85rem; font-weight: 700; color: #b3161b; }
.kf-error:empty { display: none; }
.kf-consent { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: .6rem; }
.kf-consent input { width: 22px; height: 22px; margin: .15rem 0 0; accent-color: var(--_ok); flex: none; }
.kf-consent label { flex: 1; font-weight: 400; }
.kf-consent .kf-error { flex-basis: 100%; }
.kf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin: 0; }
.kf-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .8rem 1.6rem; border: 0; border-radius: var(--_btn-radius); background: var(--_btn-bg); color: var(--_btn-text); font-family: var(--_head); font-weight: 700; font-size: 1rem; letter-spacing: .03em; text-transform: uppercase; text-decoration: none !important; cursor: pointer; transition: background-color .2s, color .2s, transform .2s; }
.kf-btn:hover { background: var(--_ok); color: #fff; transform: translateY(-2px); }
.kf-btn:disabled { opacity: .6; cursor: wait; transform: none; }
.kf-btn-ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--_ink); color: var(--_ink); }
.kf-btn-danger { background: #b3161b; color: #fff; }
.kf-link { background: none; border: 0; padding: 0; color: var(--_accent-text); font-weight: 700; text-decoration: underline; cursor: pointer; font: inherit; }

/* Kész, kezelés */
.kf-done { text-align: center; outline: none; }
.kf-done-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%; background: var(--_ok); color: #fff; font-size: 2.2rem; font-weight: 700; }
.kf-done .kf-h { justify-content: center; font-size: 1.6rem; }
.kf-done .kf-actions { justify-content: center; }
.kf-summary { display: grid; gap: .4rem; max-width: 520px; margin: 1rem auto; padding: 1rem 1.2rem; border-radius: 14px; background: var(--_soft); text-align: left; }
.kf-summary div { display: grid; grid-template-columns: 90px 1fr; gap: .8rem; }
.kf-summary dt { font-weight: 700; color: var(--_accent-text); }
.kf-summary dd { margin: 0; }
.kf-small { font-size: .9rem; color: #5c5d67; }
.kf-manage .kf-title { font-family: var(--_head); margin-top: 0; }
.kf-manage .kf-summary { margin-left: 0; }
.kf-status.is-cancelled { color: #b3161b; }
.kf-status.is-confirmed { color: var(--_ok); }

@media (max-width: 640px) {
	.kf-form { grid-template-columns: 1fr; }
	.kf-arrow { width: 34px; }
	.kf-days { grid-auto-columns: 60px; }
}
