/* Foglaló widget – a GoHighLevel naptár felépítése (bal: leírás-panel, jobb: naptár/időpontok/űrlap), a coremarketing.hu sötét arculatában.
   Önállóan és beágyazva (iframe, ?embed=1) is ugyanez; beágyazva átlátszó háttér, a méretét az oldal postMessage-ben jelzi. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.site { position: relative; z-index: 1; padding: 16px; }
.widget {
  max-width: 1120px; margin: 0 auto; border-radius: var(--r-card); overflow: hidden;
  background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: var(--shadow-glass), inset 0 0 0 1px var(--line);
  display: grid; grid-template-columns: minmax(0, 1fr);
}
.info { padding: 22px 18px 18px; border-bottom: 1px solid var(--line); }
.main { padding: 20px 16px 22px; min-width: 0; }
.main h2 { font-size: 1.3rem; margin-bottom: 14px; }
.steps { display: flex; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.steps li { flex: 1; text-align: center; font-size: 0.8rem; color: var(--mist-c); padding-top: 10px; position: relative; }
.steps li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 9999px; background: var(--soft); }
.steps li.on { color: #fff; font-weight: 600; }
.steps li.on::before, .steps li.done::before { background: linear-gradient(90deg, #0fb3ab, #13ece1); }

/* bal panel */
.brand { margin-bottom: 16px; line-height: 0; }
.brand img { display: block; width: auto; height: 84px; object-fit: contain; background: none; }
.info h1 { font-size: 1.35rem; margin-bottom: 14px; }
.meta { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 9px; }
.meta li { display: flex; align-items: flex-start; gap: 10px; color: var(--mist-c); font-size: 0.95rem; line-height: 1.35; }
.meta li span { min-width: 0; overflow-wrap: anywhere; }
.meta svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.meta li.when span { color: #fff; font-weight: 600; }
.svc { border-top: 1px solid var(--line); padding-top: 14px; }
.svc summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 32px; }
.svc summary::-webkit-details-marker { display: none; }
.svc summary::after { content: '⌄'; color: var(--mist-c); font-size: 1.3rem; line-height: 1; transition: transform 0.2s; }
.svc[open] summary::after { transform: rotate(180deg); }
.svc:not([open]) summary:empty { display: none; }
.svcbody { margin-top: 10px; color: var(--mist-c); font-size: 0.92rem; line-height: 1.55; }
.svcbody p { margin: 0 0 12px; }
.svcbody ul { margin: -4px 0 12px; padding-left: 20px; }
.svcbody li { margin: 2px 0; }
.svcbody b { color: #fff; font-weight: 700; }
.svcbody a { color: var(--cyan); }

/* naptár */
.monthbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.monthbar strong { font-size: 1.1rem; text-transform: capitalize; }
.iconbtn { width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--soft); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; touch-action: manipulation; box-shadow: inset 0 0 0 1px var(--line); }
.iconbtn:disabled { opacity: 0.3; cursor: not-allowed; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .dow { text-align: center; font-size: 0.75rem; color: var(--mist-c); padding: 4px 0; }
.cal .day, .cal button {
  min-height: 44px; aspect-ratio: 1; border-radius: 12px; border: 0; background: none; color: #fff;
  font: inherit; font-size: 1rem; display: flex; align-items: center; justify-content: center;
}
.cal .day { color: #ffffff40; }
.cal button { background: var(--soft); font-weight: 600; cursor: pointer; touch-action: manipulation; box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.15s, background 0.2s; }
.cal button:active { transform: scale(0.94); }
@media (hover: hover) { .cal button:hover { background: #0fb3ab33; } }
.cal button.today:not(.sel) { box-shadow: inset 0 0 0 1px #0fb3ab99; }
.cal button.sel { background: linear-gradient(135deg, #0fb3ab, #148f89); box-shadow: var(--shadow-glow); }
.tzrow { margin-top: 14px; }
.tzrow label { color: var(--mist-c); font-weight: 500; font-size: 0.8rem; }
.tzrow select { min-height: 44px; padding-top: 9px; padding-bottom: 9px; font-size: 0.9rem; }

/* időpontok: gombrács, a kijelölt mellett "Kiválasztás" gomb */
#timesWrap { margin-top: 20px; scroll-margin-top: 16px; }
#timesWrap h3 { font-size: 1.05rem; margin-bottom: 10px; }
.times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.times > button, .times .row > button {
  min-height: 52px; border: 0; border-radius: var(--r-sm); background: var(--field-bg); color: #fff;
  font: inherit; font-weight: 600; font-size: 1.05rem; cursor: pointer; touch-action: manipulation;
  box-shadow: inset 0 0 0 1px var(--field-line); transition: transform 0.15s, background 0.2s;
}
.times > button:active, .times .row > button:active { transform: scale(0.96); }
@media (hover: hover) { .times > button:hover:not(:disabled) { background: #0fb3ab26; box-shadow: inset 0 0 0 1px var(--brand); } }
.times .row { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px; }
.times .row .time { background: linear-gradient(135deg, #0fb3ab, #148f89); box-shadow: var(--shadow-glow); cursor: default; }
.times .row .go { background: #fff; color: #03211f; box-shadow: none; }
@media (hover: hover) { .times .row .go:hover { background: #d9fffb; } }
.times button.taken { color: #ffffff50; text-decoration: line-through; box-shadow: inset 0 0 0 1px var(--line); background: none; cursor: not-allowed; font-weight: 400; }
.hint { color: var(--mist-c); font-size: 0.85rem; margin-top: 12px; }

/* űrlap */
.backlink { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--mist-c); font: inherit; padding: 8px 4px; margin: -8px 0 4px -4px; cursor: pointer; min-height: 44px; touch-action: manipulation; }
.summary { display: flex; flex-direction: column; background: #0fb3ab1f; box-shadow: inset 0 0 0 1px #0fb3ab55; border-radius: var(--r); padding: 12px 16px; margin-bottom: 18px; }
.summary small { color: var(--mist-c); font-size: 0.78rem; }
.summary b { font-size: 1.05rem; }
.formgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.req::after { content: ' *'; color: var(--cyan); }
.group-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; }
.choices { display: grid; gap: 8px; }
.choices.chips-row { display: flex; flex-wrap: wrap; }
.choice { position: relative; display: block; margin: 0; font-weight: 500; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px;
  border-radius: var(--r-sm); background: var(--field-bg); box-shadow: inset 0 0 0 1px var(--field-line);
  transition: background 0.2s, box-shadow 0.2s;
}
.choice span::before { content: ''; flex: none; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px #ffffff55; transition: 0.2s; }
.choice input:checked + span { background: #0fb3ab26; box-shadow: inset 0 0 0 1.5px var(--brand); }
.choice input:checked + span::before { background: radial-gradient(circle, #fff 0 38%, var(--brand) 42%); box-shadow: none; }
.choice input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.chips-row .choice span { min-height: 48px; padding: 10px 18px; border-radius: 9999px; }
.chips-row .choice span::before { display: none; }
.consent { display: flex; gap: 14px; align-items: flex-start; font-weight: 400; font-size: 0.9rem; color: var(--mist-c); line-height: 1.45; margin: 0; }
.consent input { flex: none; width: 24px; height: 24px; min-height: 0; margin-top: 1px; }
.guest { display: grid; gap: 10px; padding: 14px; margin-bottom: 12px; border-radius: var(--r); background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.guest .field { margin: 0; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.tsbox { margin: 12px 0; }

/* sikeres foglalás */
.done { text-align: center; padding: 8px 0; }
.check { width: 72px; height: 72px; margin: 4px auto 16px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #0fb3ab, #148f89); box-shadow: 0 0 60px -5px #0fb3abaa; font-size: 2rem; }
.done .summary { align-items: center; text-align: center; }
.done .actions { display: grid; gap: 10px; margin-top: 18px; }

.submit { width: 100%; margin-top: 8px; min-height: 52px; font-size: 1.05rem; }

/* foglalás közbeni várakozó réteg */
.waitov { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.waitbox { display: grid; justify-items: center; gap: 10px; text-align: center; max-width: 320px; }
.waitbox b { font-size: 1.15rem; }
.waitbox span { color: var(--mist-c); font-size: 0.92rem; }
.waitspin { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #ffffff22; border-top-color: #0fb3ab; animation: waitspin 0.8s linear infinite; }
@keyframes waitspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .waitspin { animation-duration: 2.4s; } }

/* átütemezés */
.resbanner { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: #0fb3ab1a; box-shadow: inset 0 0 0 1px #0fb3ab4d; font-size: 0.95rem; overflow-wrap: anywhere; }
.resbanner b { display: block; margin-top: 2px; }
.resbanner.bad { background: #f871711a; box-shadow: inset 0 0 0 1px #f8717155; }

/* ---------- nagyobb kijelző ---------- */
@media (min-width: 760px) {
  .site { padding: 24px; }
  .widget { grid-template-columns: 300px minmax(0, 1fr); }
  .info { padding: 28px 24px; border-bottom: 0; border-right: 1px solid var(--line); }
  .main { padding: 28px; }
  .svc summary { cursor: default; pointer-events: none; }
  .svc summary::after { display: none; }
  .formgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .formgrid .full { grid-column: 1 / -1; }
  .guest { grid-template-columns: 1fr 1fr auto; align-items: end; }
  .done .actions { grid-template-columns: 1fr 1fr; }
  #form .summary { display: none; }
  .submit { width: auto; min-width: 240px; float: right; }
  #form::after { content: ''; display: block; clear: both; }
}
@media (min-width: 1040px) {
  .widget { grid-template-columns: 340px minmax(0, 1fr); }
  .booking { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(190px, 0.8fr); gap: 30px; align-items: start; }
  #timesWrap { margin-top: 0; }
  .times { max-height: 440px; overflow-y: auto; padding: 2px 4px 2px 2px; margin: -2px; }
}
/* telefonon a leírás összecsukható; az adatok lépésben nincs rá szükség */
@media (max-width: 759px) {
  .widget.step2 .svc, .widget.step3 .svc { display: none; }
  .widget.step3 .info { display: none; }
  .brand img { height: 64px; }
  .info h1 { font-size: 1.2rem; margin-bottom: 10px; }
}

/* beágyazott (iframe) mód: átlátszó háttér, nincs külön oldalkeret */
body.embed { min-height: 0; background: transparent; overflow: hidden; }
body.embed .aurora { display: none; }
body.embed .site { padding: 0; }
body.embed .widget { max-width: none; }
