/* ==========================================================================
   Design rendszer. A konkret szineket az assets/css/brand.css adja,
   amit az epit.py general a brand.json alapjan.
   ========================================================================== */

:root {
  /* Marka */
  --wine:        #651722;
  --wine-soft:   #8a2a39;
  --wine-tint:   #a44f60;
  --rose:        #e4899f;
  --rose-deep:   #d4708a;
  --petal:       #fadde2;
  --blush:       #fdeef1;
  --cream:       #fffafb;
  --gold:        #c9a66b;
  --gold-soft:   #e6d3ae;

  /* Szoveg */
  --ink:         #3d2429;
  --ink-soft:    #6b4c53;
  --muted:       #96777e;
  --line:        #f2dbe0;
  --line-strong: #e8c7cf;

  /* Allapotok */
  --ok:          #4b8a63;
  --ok-bg:       #e8f4ec;
  --warn:        #b4522f;
  --warn-bg:     #fdeee8;

  /* Forma */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(101, 23, 34, .06);
  --shadow-md: 0 8px 24px rgba(101, 23, 34, .08);
  --shadow-lg: 0 18px 48px rgba(101, 23, 34, .12);
  --shadow-glow: 0 10px 30px rgba(212, 112, 138, .28);

  /* Betuk - az index.php allitja be a brand.json alapjan.
     Az itteni ertek csak tartalek, ha valamiert nem tolt be. */
  --font-cim: 'Fraunces', Georgia, serif;
  --font-szoveg: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --wrap: 640px;
  --wrap-wide: 1080px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------- Alapok */

*, *::before, *::after { box-sizing: border-box; }

/* A hidden attributum mindig nyerjen a display szabalyok felett */
[hidden] { display: none !important; }


html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-szoveg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-cim);
  font-weight: 600;
  line-height: 1.15;
  color: var(--wine);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 8vw, 3rem); }
h2 { font-size: clamp(1.6rem, 5.5vw, 2.25rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--wine); }

img { max-width: 100%; height: auto; display: block; }

button { font: inherit; color: inherit; }

::selection { background: var(--petal); color: var(--wine); }

:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}
.wrap--wide { max-width: var(--wrap-wide); }

.section { padding: 68px 0; position: relative; }
.section--tight { padding: 48px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: currentColor;
  opacity: .6;
}

.lead { color: var(--ink-soft); font-size: 1.02rem; }

.center { text-align: center; }

/* --------------------------------------------------------------- Gombok */

.btn {
  --btn-bg: var(--wine);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
  box-shadow: var(--shadow-md);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0) scale(.985); }
.btn[disabled] { opacity: .45; pointer-events: none; box-shadow: none; }

.btn--rose { --btn-bg: linear-gradient(135deg, var(--rose) 0%, var(--rose-deep) 100%); box-shadow: var(--shadow-glow); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--wine);
  box-shadow: none;
  border: 1.5px solid var(--line-strong);
}
.btn--ghost:hover { background: var(--blush); box-shadow: var(--shadow-sm); }
.btn--block { width: 100%; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .88rem; }

/* --------------------------------------------------------------- Hero */

.hero {
  position: relative;
  padding: 34px 0 54px;
  text-align: center;
  overflow: hidden;
}

.hero__blobs { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: .55;
  animation: float 14s ease-in-out infinite;
}
.hero__blob--1 { width: 300px; height: 300px; background: var(--petal); top: -90px; left: -110px; }
.hero__blob--2 { width: 260px; height: 260px; background: #f6e0cd; top: 40px; right: -110px; animation-delay: -5s; }
.hero__blob--3 { width: 220px; height: 220px; background: var(--blush); bottom: -60px; left: 30%; animation-delay: -9s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(14px, -18px) scale(1.06); }
}

.hero__inner { position: relative; z-index: 1; }

.brandcard {
  background: var(--petal);
  border-radius: var(--r-xl);
  padding: 26px 22px 22px;
  box-shadow: var(--shadow-md);
  margin-bottom: 26px;
  position: relative;
  overflow: hidden;
}
.brandcard::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: calc(var(--r-xl) - 6px);
  border: 1px solid rgba(101, 23, 34, .1);
  pointer-events: none;
}
.brandcard img { width: 100%; max-width: 420px; margin: 0 auto; }

/* Ha nincs logo, a nev all a helyen */
.hero__name {
  font-family: var(--font-cim);
  font-size: clamp(2.1rem, 9vw, 3.2rem);
  color: var(--wine);
  margin: 12px 0 18px;
  line-height: 1.1;
}

.hero__tagline {
  font-family: var(--font-cim);
  font-size: clamp(1.5rem, 6.4vw, 2.1rem);
  color: var(--wine);
  margin: 0 0 12px;
  font-weight: 500;
  font-style: italic;
}
.hero__sub { color: var(--ink-soft); max-width: 30rem; margin: 0 auto 26px; }

.hero__cta { display: flex; flex-direction: column; gap: 12px; align-items: center; }
@media (min-width: 480px) { .hero__cta { flex-direction: row; justify-content: center; } }

.hero__meta {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 8px 22px;
  flex-wrap: wrap;
  font-size: .84rem;
  color: var(--muted);
}
.hero__meta span { display: inline-block; }

/* Emoji ikon szoveg elott - a szokoz nem mindig renderelodik megbizhatoan */
.ico { font-style: normal; margin-right: .35em; }

/* --------------------------------------------------------------- Rolam */

.about { background: linear-gradient(180deg, var(--cream) 0%, var(--blush) 100%); }

.about__card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.perks { display: grid; gap: 12px; margin-top: 22px; }
@media (min-width: 560px) { .perks { grid-template-columns: repeat(3, 1fr); } }

.perk {
  background: var(--blush);
  border-radius: var(--r-md);
  padding: 16px 14px;
  text-align: center;
}
.perk__icon { font-size: 1.4rem; line-height: 1; margin-bottom: 8px; }
.perk__title { font-weight: 700; font-size: .92rem; color: var(--wine); margin-bottom: 2px; }
.perk__text { font-size: .8rem; color: var(--muted); line-height: 1.45; }

/* --------------------------------------------------------------- Arlista */

.pricelist { display: grid; gap: 12px; }

.price-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.price-row:hover { border-color: var(--line-strong); transform: translateX(3px); }

.price-row__main { flex: 1; min-width: 0; }
.price-row__name { font-weight: 700; color: var(--wine); line-height: 1.3; }
.price-row__desc { font-size: .84rem; color: var(--muted); line-height: 1.45; margin-top: 3px; }
.price-row__side { text-align: right; flex-shrink: 0; }
.price-row__price { font-weight: 800; color: var(--wine); white-space: nowrap; }
.price-row__dur { font-size: .78rem; color: var(--muted); white-space: nowrap; }

/* Egy fajta tobb valtozattal: egy kartya, benne tomor sorok */
.price-group {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 15px 18px 11px;
}
.price-group__name { font-weight: 700; color: var(--wine); line-height: 1.3; margin-bottom: 9px; }
.price-var {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.price-var__name {
  min-width: 3em;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--ink-soft);
}
.price-var__dur { flex: 1; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.price-var__price { font-weight: 800; color: var(--wine); white-space: nowrap; }

.price-note {
  margin-top: 16px;
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

/* Kiegeszitok az arlistaban - mobilon egymas alatt, 620px folott ket oszlop */
.extralist { margin-top: 26px; }
.extralist__title {
  font-size: .78rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
  text-align: center; margin-bottom: 12px;
}
.extralist__grid { display: grid; gap: 8px; }
.extra-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px 15px;
}
.extra-row__name { font-weight: 600; font-size: .9rem; color: var(--wine); line-height: 1.35; }
.extra-row__meta { font-size: .8rem; color: var(--muted); white-space: nowrap; }
@media (min-width: 620px) { .extralist__grid { grid-template-columns: 1fr 1fr; } }

/* --------------------------------------------------------------- Galeria */

.gallery {
  background: linear-gradient(180deg, var(--cream) 0%, var(--blush) 45%, var(--cream) 100%);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.gallery__grid > *:first-child { grid-column: span 2; }
@media (min-width: 620px) {
  .gallery__grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .gallery__grid > *:first-child { grid-column: span 2; grid-row: span 2; }
}

.gallery__item {
  position: relative;
  border: 0;
  padding: 0;
  background: var(--petal);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-sm);
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.gallery__item:hover img { transform: scale(1.06); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(48, 12, 19, .93);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 100%; max-height: 84vh;
  border-radius: var(--r-md);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,.15);
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.3); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.8); font-size: .85rem; letter-spacing: .08em;
}

/* --------------------------------------------------------------- Kapcsolat */

.contact-grid { display: grid; gap: 12px; }
@media (min-width: 560px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.contact-card__icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--petal);
  display: grid; place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-card__label { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-card__value { font-weight: 700; color: var(--wine); word-break: break-word; }

.footer {
  background: var(--wine);
  color: rgba(255,255,255,.75);
  text-align: center;
  padding: 34px 0 calc(34px + env(safe-area-inset-bottom));
  font-size: .84rem;
}
.footer h3 { color: #fff; font-size: 1.2rem; margin-bottom: 6px; }
.footer a { color: var(--petal); }
.footer__legal { margin-top: 14px; opacity: .6; font-size: .76rem; }

/* --------------------------------------------------------------- Mobil CTA */

.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 250, 251, .92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(130%);
  transition: transform .32s var(--ease);
}
.mobile-cta.is-visible { transform: translateY(0); }
@media (min-width: 760px) { .mobile-cta { display: none; } }

/* ==========================================================================
   FOGLALAS - a lenyeg
   ========================================================================== */

.booking {
  background:
    radial-gradient(1000px 340px at 50% -10%, var(--petal) 0%, transparent 70%),
    var(--cream);
  scroll-margin-top: 10px;
}

.wizard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  /* Szandekosan NINCS overflow:hidden - az elrontana az osszegzo sav
     position:sticky viselkedeset. A sarkokat a gyerekek kerekitik. */
}

/* Lepesjelzo */
.steps {
  display: flex;
  gap: 4px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
  border-radius: calc(var(--r-xl) - 1px) calc(var(--r-xl) - 1px) 0 0;
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s var(--ease);
}
.step > span:last-child { min-height: 2.3em; line-height: 1.15; }
.step__bar {
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--line);
  overflow: hidden;
  position: relative;
}
.step__bar::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rose), var(--wine));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.step.is-done .step__bar::after { transform: scaleX(1); }
.step.is-active .step__bar::after { transform: scaleX(1); }
.step.is-active, .step.is-done { color: var(--wine); }

.panel { padding: 22px 20px 26px; }
.panel[hidden] { display: none; }

.panel__title { font-size: 1.3rem; margin-bottom: 4px; }
.panel__hint { color: var(--muted); font-size: .88rem; margin-bottom: 18px; }

/* --- 1. Szolgaltatas --- */

.svc-list { display: grid; gap: 10px; }

.svc {
  position: relative;
  display: block;
  cursor: pointer;
}
.svc input { position: absolute; opacity: 0; pointer-events: none; }

.svc__box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 15px 16px;
  background: #fff;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.svc:hover .svc__box { border-color: var(--line-strong); }
.svc input:checked + .svc__box {
  border-color: var(--wine);
  background: linear-gradient(135deg, #fff 0%, var(--blush) 100%);
  box-shadow: var(--shadow-md);
}
.svc input:focus-visible + .svc__box { outline: 3px solid var(--rose); outline-offset: 2px; }

.svc__tick {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  flex-shrink: 0;
  margin-top: 2px;
  display: grid; place-items: center;
  transition: all .2s var(--ease);
}
.svc__tick::after {
  content: '';
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #fff;
  transform: scale(0);
  transition: transform .2s var(--ease);
}
.svc input:checked + .svc__box .svc__tick { background: var(--wine); border-color: var(--wine); }
.svc input:checked + .svc__box .svc__tick::after { transform: scale(1); }

.svc__body { flex: 1; min-width: 0; }
.svc__name { display: block; font-weight: 700; color: var(--wine); line-height: 1.3; }
.svc__desc { display: block; font-size: .82rem; color: var(--muted); line-height: 1.45; margin-top: 3px; }
.svc__facts { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--blush);
  color: var(--wine-soft);
  white-space: nowrap;
}
.tag--gold { background: #faf1e2; color: #8a6a2f; }

/* Szolgaltatas-csoport kartya (a foglalo elso lepese) */
.svc-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 15px 18px;
  cursor: pointer;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.svc-card:hover { border-color: var(--line-strong); transform: translateX(3px); }
.svc-card.is-selected { border-color: var(--rose); background: var(--blush); }
.svc-card__body { flex: 1; min-width: 0; }
.svc-card__arrow { font-size: 1.6rem; line-height: 1; color: var(--muted); flex-shrink: 0; }

/* Kiegeszitok */
.extras { margin-top: 24px; }
.extras__title {
  font-size: .78rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.extra {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.extra:has(input:checked) { border-color: var(--rose); background: var(--blush); }
.extra input { width: 20px; height: 20px; accent-color: var(--wine); flex-shrink: 0; margin: 0; }
.extra__name { flex: 1; font-weight: 600; font-size: .92rem; }
.extra__meta { font-size: .78rem; color: var(--muted); white-space: nowrap; }

/* --- 2. Nap --- */

.cal__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; gap: 10px;
}
.cal__month {
  font-family: var(--font-cim); font-size: 1.15rem; font-weight: 600;
  color: var(--wine); text-transform: capitalize;
}
.cal__nav { display: flex; gap: 6px; }
.cal__navbtn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff; color: var(--wine);
  cursor: pointer; font-size: 1rem;
  display: grid; place-items: center;
  transition: all .2s var(--ease);
}
.cal__navbtn:hover:not([disabled]) { background: var(--blush); border-color: var(--line-strong); }
.cal__navbtn[disabled] { opacity: .3; cursor: default; }

.cal__weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 4px; margin-bottom: 6px;
}
.cal__weekdays span {
  text-align: center; font-size: .7rem; font-weight: 800;
  letter-spacing: .06em; color: var(--muted); text-transform: uppercase;
}

.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }

.cal__day {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: all .18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.cal__day.is-empty { pointer-events: none; }
.cal__day.is-free { background: var(--blush); color: var(--wine); }
.cal__day.is-free:hover { background: var(--petal); transform: scale(1.06); }
.cal__day.is-closed { color: #cdb5bb; cursor: default; }
.cal__day.is-closed::after { content: none; }
.cal__day.is-today { border-color: var(--gold-soft); }
.cal__day.is-selected {
  background: var(--wine); color: #fff; border-color: var(--wine);
  box-shadow: var(--shadow-md); transform: scale(1.04);
}
.cal__dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--rose-deep);
}
.cal__day.is-selected .cal__dot { background: var(--petal); }
.cal__day.is-closed .cal__dot { visibility: hidden; }

.cal__legend {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-top: 16px; font-size: .76rem; color: var(--muted);
}
.cal__legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal__swatch { width: 12px; height: 12px; border-radius: 4px; }

/* --- 3. Idopont --- */

.times__group { margin-bottom: 20px; }
.times__label {
  font-size: .76rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.times__label::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.times__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 8px;
}

.time-chip {
  min-height: 46px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--wine);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: all .18s var(--ease);
  display: grid; place-items: center;
  -webkit-tap-highlight-color: transparent;
}
.time-chip:hover { border-color: var(--rose); background: var(--blush); transform: translateY(-2px); }
.time-chip.is-selected {
  background: var(--wine); color: #fff; border-color: var(--wine);
  box-shadow: var(--shadow-md);
}
.time-chip small { display: block; font-size: .66rem; font-weight: 600; opacity: .65; }

.empty {
  text-align: center;
  padding: 34px 18px;
  background: var(--blush);
  border-radius: var(--r-md);
  border: 1px dashed var(--line-strong);
}
.empty__icon { font-size: 2rem; margin-bottom: 8px; }
.empty__title { font-weight: 700; color: var(--wine); margin-bottom: 4px; }
.empty__text { font-size: .87rem; color: var(--muted); margin-bottom: 16px; }

/* --- 4. Adatok --- */

.form { display: grid; gap: 14px; }

.field label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--wine);
  margin-bottom: 6px;
}
.field label span { color: var(--rose-deep); }

.field input, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--cream);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #c3a8ae; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--wine);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(228, 137, 159, .18);
}
.field.has-error input, .field.has-error textarea { border-color: #c2492f; background: var(--warn-bg); }

.field__error {
  display: none;
  font-size: .8rem;
  color: #b0402a;
  margin-top: 5px;
  font-weight: 600;
}
.field.has-error .field__error { display: block; }

.check {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: .85rem; color: var(--ink-soft); line-height: 1.5;
  cursor: pointer;
}
.check input { width: 21px; height: 21px; accent-color: var(--wine); flex-shrink: 0; margin: 1px 0 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Osszegzo sav --- */

.summary {
  position: sticky;
  bottom: 0;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 20;
  border-radius: 0 0 calc(var(--r-xl) - 1px) calc(var(--r-xl) - 1px);
}
.summary__info { flex: 1; min-width: 0; }
.summary__line1 {
  font-weight: 700; color: var(--wine); font-size: .9rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.summary__line2 { font-size: .78rem; color: var(--muted); }
.summary .btn { flex-shrink: 0; }

.wizard__back {
  border: 0; background: none; color: var(--muted);
  font-size: .86rem; font-weight: 700; cursor: pointer;
  padding: 8px 0; display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 12px;
}
.wizard__back:hover { color: var(--wine); }

/* --- Osszegzes / siker --- */

.recap {
  background: var(--blush);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin-bottom: 18px;
}
.recap__row {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 7px 0;
  font-size: .9rem;
  border-bottom: 1px solid rgba(101, 23, 34, .07);
}
.recap__row:last-child { border-bottom: 0; }
.recap__key { color: var(--muted); flex-shrink: 0; }
.recap__val { font-weight: 700; color: var(--wine); text-align: right; }
.recap__row--total { padding-top: 11px; margin-top: 4px; border-top: 1.5px solid var(--line-strong); border-bottom: 0; }
.recap__row--total .recap__val { font-size: 1.1rem; }

.success { text-align: center; padding: 30px 20px 34px; }
.success__badge {
  width: 78px; height: 78px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--petal), var(--rose));
  display: grid; place-items: center;
  font-size: 2.1rem;
  box-shadow: var(--shadow-glow);
  animation: pop .5s var(--ease);
}
@keyframes pop {
  0% { transform: scale(.4); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
.success__code {
  display: inline-block;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .12em;
  background: var(--blush);
  color: var(--wine);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  padding: 8px 16px;
  margin: 4px 0 18px;
}
.success__actions { display: grid; gap: 10px; margin-top: 20px; }

.alert {
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: .87rem;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex; gap: 9px; align-items: flex-start;
}
.alert--error { background: var(--warn-bg); color: #9c3a24; border: 1px solid #f0cfc3; }
.alert--info { background: var(--ok-bg); color: #2f6b46; border: 1px solid #c5e2d0; }

/* Toltes */
.skeleton {
  background: linear-gradient(90deg, var(--blush) 25%, #fff 50%, var(--blush) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r-md);
  height: 74px;
  margin-bottom: 10px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.spinner {
  width: 17px; height: 17px;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.fade-in { animation: fadeIn .34s var(--ease); }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

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

@media (min-width: 760px) {
  .section { padding: 88px 0; }
  .panel { padding: 30px 32px 34px; }
  .steps { padding: 22px 32px 16px; }
  .summary { padding: 14px 32px; }
}
