/* NextCut – nyilvános foglalóoldal */

@font-face {
    font-family: "Manrope";
    src: url("../fonts/manrope-var.woff") format("woff");
    font-weight: 200 800;
    font-display: swap;
}
@font-face {
    font-family: "Cormorant Garamond";
    src: url("../fonts/cormorant-garamond-600-italic.woff") format("woff");
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

:root {
    --ink: #17191c;
    --ink-2: #23262b;
    --bg: #f1f2f3;
    --surface: #ffffff;
    --surface-2: #f7f8f8;
    --line: #e0e2e4;
    --line-soft: #eceeef;
    --text: #17191c;
    --muted: #5b6168;
    --muted-2: #80868d;
    --gold: #c9a45c;
    --gold-hover: #d6b571;
    --gold-soft: #f6efe1;
    --gold-text: #7f5f22;
    --ok: #2f7350;
    --ok-soft: #e5f1ea;
    --bad: #b1442f;
    --bad-soft: #f9e8e4;
    --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --focus: 0 0 0 3px rgba(201, 164, 92, 0.5);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--text); background: var(--bg); font-feature-settings: "tnum" 1; -webkit-font-smoothing: antialiased; }
a { color: var(--gold-text); text-underline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; display: block; }
.i { width: 18px; height: 18px; flex: none; }
:focus-visible { outline: none; box-shadow: var(--focus); }
[hidden] { display: none !important; }
.muted { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: #c4c8cc; }
.btn--gold { background: var(--gold); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.btn--ghost { background: transparent; }
.btn--danger-ghost { background: transparent; color: var(--bad); border-color: #ecc8c0; }
.btn--danger-ghost.is-armed { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn--lg { min-height: 52px; font-size: 16px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; cursor: wait; }

/* ---------- Fejléc ---------- */
.hero { background: var(--ink); color: #f1f2f3; position: relative; }
.hero__img { width: 100%; height: clamp(180px, 30vw, 340px); object-fit: cover; }
.hero__inner { max-width: 1080px; margin: 0 auto; padding: 28px 20px 30px; display: flex; align-items: center; gap: 18px; }
.hero--cover .hero__inner { padding-top: 0; }
.hero--cover .hero__logo { margin-top: -38px; }
.hero__logo { width: 84px; height: 84px; border-radius: 18px; object-fit: contain; background: #fff; padding: 6px; flex: none; box-shadow: 0 0 0 4px var(--ink); }
.hero__text { min-width: 0; padding-top: 6px; }
.hero__type { color: #a9aeb4; font-size: 14px; font-weight: 600; }
.hero__name { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(36px, 6vw, 58px); line-height: 1.02; letter-spacing: -0.01em; color: #fff; overflow-wrap: anywhere; }
.hero--slim .hero__inner { padding: 22px 20px; }
.hero--slim .hero__name { font-size: clamp(30px, 5vw, 42px); }
.hero--slim .hero__logo { width: 60px; height: 60px; border-radius: 14px; }

/* ---------- Tartalom ---------- */
.pub-main { max-width: 1080px; margin: 0 auto; padding: 22px 20px 40px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.pub-main--narrow { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
.welcome { background: var(--gold-soft); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; color: #4f3c15; font-weight: 600; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.card__title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.closed p { color: var(--muted); margin-bottom: 14px; }

/* Lépések */
.book { display: grid; gap: 10px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.step__head { display: grid; grid-template-columns: 30px auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px 18px; }
.step__num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--line-soft); color: var(--muted); }
.step__title { font-size: 18px; font-weight: 800; letter-spacing: -0.015em; }
.step__value { color: var(--muted); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.step__edit { display: none; background: none; border: 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--gold-text); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; padding: 4px; }
.step__body { display: none; padding: 0 18px 18px; }
.step.is-open .step__body { display: block; }
.step.is-open .step__num { background: var(--ink); color: var(--gold); }
.step.is-done .step__num { background: var(--ok); color: #fff; }
.step.is-done .step__edit { display: inline; }
.step.is-done:not(.is-open) .step__value { color: var(--ink); font-weight: 650; }
.step:not(.is-open):not(.is-done) { background: transparent; border-style: dashed; }
.step:not(.is-open):not(.is-done) .step__title { color: var(--muted-2); }

/* Szolgáltatások */
.svc-cat { font-size: 14px; font-weight: 750; color: var(--muted); margin: 14px 0 6px; }
.svc-cat:first-child { margin-top: 0; }
.opt { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 14px; margin: 0 0 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.opt:hover { border-color: #b9bdc2; }
.opt.is-selected { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt__main { min-width: 0; }
.opt__name { display: block; font-weight: 750; }
.opt__desc { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 2px; }
.opt__side { text-align: right; flex: none; }
.opt__price { display: block; font-weight: 800; white-space: nowrap; }
.opt__dur { display: block; color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.staff-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.staff-opts .opt { margin: 0; justify-content: flex-start; }
.ava { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--c, var(--ink)); color: #fff; font-weight: 800; flex: none; }
.ava--any { background: var(--ink); color: var(--gold); }
.ava .i { width: 20px; height: 20px; }

/* Napok, időpontok */
.days { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 6px; align-items: center; }
.days__nav { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.days__nav:disabled { opacity: .35; cursor: default; }
.days__strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(52px, 1fr); gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; scroll-snap-type: x proximity; }
.days__strip::-webkit-scrollbar { display: none; }
.day { scroll-snap-align: start; display: grid; justify-items: center; gap: 1px; padding: 8px 2px 7px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font: inherit; color: var(--ink); cursor: pointer; }
.day__wd { font-size: 12px; font-weight: 650; color: var(--muted); }
.day__num { font-size: 18px; font-weight: 800; line-height: 1.2; }
.day__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ok); }
.day:disabled { cursor: default; background: transparent; border-style: dashed; color: var(--muted-2); }
.day:disabled .day__dot { background: transparent; }
.day.is-selected { background: var(--ink); border-color: var(--ink); color: #fff; }
.day.is-selected .day__wd { color: #b5bac0; }
.day.is-selected .day__num { color: var(--gold); }
.day.is-loading { opacity: .5; }
.days__month { margin: 10px 0 4px; font-size: 14px; color: var(--muted); font-weight: 600; }
.times { margin-top: 6px; min-height: 60px; }
.times__group { margin-top: 12px; }
.times__label { font-size: 13.5px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.times__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.time { padding: 10px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; font-weight: 750; font-size: 15px; color: var(--ink); cursor: pointer; }
.time:hover { border-color: var(--ink); }
.time.is-selected { background: var(--ink); color: var(--gold); border-color: var(--ink); }
.times__empty { color: var(--muted); padding: 14px 0; }

/* Adatok */
.summary { display: grid; gap: 2px; padding: 12px 14px; margin-bottom: 14px; background: var(--surface-2); border-radius: 12px; border: 1px solid var(--line-soft); font-size: 15px; }
.summary strong { font-size: 16px; }
.fld { display: grid; gap: 5px; margin-bottom: 12px; }
.fld > span { font-size: 14px; font-weight: 700; }
.fld input, .fld textarea { width: 100%; min-height: 48px; padding: 11px 13px; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid #cfd2d6; border-radius: 10px; }
.fld textarea { min-height: 70px; resize: vertical; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--gold); box-shadow: var(--focus); }
.fld.has-error input { border-color: var(--bad); }
.fld__err { color: var(--bad); font-size: 13.5px; font-weight: 600; }
.fld__err:empty { display: none; }
.remember { display: flex; gap: 10px; align-items: flex-start; margin: 2px 0 12px; font-size: 14.5px; color: #3c4147; cursor: pointer; }
.remember input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.fine a { color: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.policy { font-size: 14px; color: var(--muted); background: var(--surface-2); border-left: 3px solid var(--gold); padding: 10px 12px; border-radius: 0 10px 10px 0; margin: 4px 0 14px; }
.form-err { color: #7a2a1b; background: var(--bad-soft); padding: 10px 12px; border-radius: 10px; font-size: 14.5px; margin-bottom: 12px; font-weight: 600; }
.fine { font-size: 12.5px; color: var(--muted-2); margin-top: 10px; text-align: center; }

/* Kész */
.done { text-align: left; }
.done__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin-bottom: 12px; }
.done__icon .i { width: 28px; height: 28px; }
.done__list { margin: 12px 0; display: grid; border-top: 1px solid var(--line-soft); }
.done__list > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.done__list dt { color: var(--muted); font-size: 14.5px; }
.done__list dd { margin: 0; font-weight: 700; }
.done__mail { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.done__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }

/* Kezelés */
.manage .card__title { font-size: 24px; }
.state { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 750; margin-bottom: 10px; background: #e8eef5; color: #2f557a; }
.state--cancelled { background: var(--line-soft); color: var(--muted); }
.state--completed { background: var(--ok-soft); color: var(--ok); }
.state--no_show { background: var(--bad-soft); color: var(--bad); }
.note { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; font-size: 14.5px; margin: 12px 0; display: flex; gap: 8px; align-items: flex-start; }
.note--ok { background: var(--ok-soft); color: #1d4b33; font-weight: 650; }
.cancel-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.cancel-form p { color: var(--muted); margin-bottom: 10px; font-size: 14.5px; }
.manage__again { margin-top: 18px; font-weight: 700; }

/* Információ */
.info-col { position: sticky; top: 16px; }
.info__desc { color: #3c4147; font-size: 15px; margin-bottom: 14px; white-space: pre-line; }
.info__list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.info__list li { display: flex; gap: 10px; align-items: flex-start; }
.info__list .i { color: var(--muted-2); margin-top: 3px; }
.info__list a { color: var(--ink); }
.info__h { font-size: 15px; font-weight: 800; margin: 16px 0 6px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.hours-list { margin: 0; display: grid; gap: 2px; font-size: 14.5px; }
.hours-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.hours-list dt { color: var(--muted); }
.hours-list dd { margin: 0; font-weight: 650; }
.hours-list .is-today dt, .hours-list .is-today dd { color: var(--ink); font-weight: 800; }

/* Lábléc */
.pub-foot { text-align: center; padding: 10px 16px 30px; }
.pub-foot__brand { display: inline-flex; align-items: center; gap: 8px; color: var(--muted-2); font-size: 13px; text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 6px; }
.brand__word { font-size: 15px; letter-spacing: -0.03em; }
.brand__a { font-weight: 600; color: var(--ink); }
.brand__b { font-weight: 800; color: var(--gold); }

@media (max-width: 860px) {
    .pub-main { grid-template-columns: minmax(0, 1fr); padding: 14px 12px 32px; gap: 14px; }
    .info-col { position: static; }
    .hero__inner { padding: 20px 16px 22px; gap: 14px; }
    .hero__logo { width: 64px; height: 64px; border-radius: 14px; }
    .hero--cover .hero__logo { margin-top: -26px; }
    .step__head { grid-template-columns: 28px minmax(0, 1fr) auto; padding: 14px; gap: 10px; }
    .step__value { grid-column: 2 / 3; grid-row: 2; text-align: left; white-space: normal; }
    .step__edit { grid-column: 3; grid-row: 1 / 3; }
    .step__body { padding: 0 14px 16px; }
    .card { padding: 18px 16px; }
    .done__list > div { grid-template-columns: 100px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Feltöltött platform logó */
.brand--img { display: inline-flex; align-items: center; }
.brand--img img { display: block; height: var(--brand-h, 34px); width: auto; max-width: 210px; object-fit: contain; }
.brand--chip-dark { background: #17191c; padding: 6px 10px; border-radius: 10px; }
.brand--chip-light { background: #fff; padding: 6px 10px; border-radius: 10px; }

/* Jogi szöveg */
.legal { line-height: 1.65; font-size: 15.5px; }
.legal h2 { font-size: 18px; font-weight: 800; margin: 26px 0 8px; }
.legal p, .legal ul { margin: 0 0 12px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--gold-text); }
.legal__facts { margin: 0 0 12px; display: grid; border-top: 1px solid var(--line-soft); }
.legal__facts > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.legal__facts dt { color: var(--muted); }
.legal__facts dd { margin: 0; font-weight: 650; }
.legal__table { overflow-x: auto; margin: 0 0 12px; }
.legal__table table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.legal__table th, .legal__table td { text-align: left; vertical-align: top; padding: 9px 10px; border: 1px solid var(--line); }
.legal__table th { background: var(--surface-2); font-weight: 750; }
@media (max-width: 640px) {
    .legal__table table { min-width: 0; }
    .legal__table thead { display: none; }
    .legal__table table, .legal__table tbody, .legal__table tr, .legal__table td { display: block; }
    .legal__table tr { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
    .legal__table td { border: 0; border-top: 1px solid var(--line); padding: 8px 12px; }
    .legal__table td:first-child { border-top: 0; background: var(--surface-2); font-weight: 700; }
    .legal__table td:not(:first-child)::before { content: attr(data-label); display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
}
.legal__meta { color: var(--muted); font-size: 13.5px; margin-top: 22px !important; }
.pub-foot__links { display: flex; justify-content: center; gap: 16px; margin-bottom: 8px; font-size: 13px; }
.pub-foot__links a { color: var(--muted-2); }
