/* ============================================================
   Ajánlatkérő CTA + űrlap — négy megjelenítési változat
   A fő stíluslap tokenjeire épül (assets/styles.css)
   ============================================================ */

/* ---------- Közös: a felhívó blokk ---------- */

.cta {
  position: relative;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 16px 16px 32px rgba(65, 78, 156, .24);
  overflow: hidden;
}

/* Halvány napkorong, mint az eredménypanelen */
.cta::before {
  content: ""; position: absolute; top: -110px; right: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 174, 0, .26), transparent 68%);
  pointer-events: none;
}
.cta > * { position: relative; }

.cta__title {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 12px;
}
.cta__text {
  font-size: 16px; line-height: 1.6;
  color: rgba(255, 255, 255, .84);
  max-width: 60ch;
  margin-bottom: 26px;
}

.cta .btn--primary {
  background: #fff; color: var(--brand);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}
.cta .btn--primary:hover { background: var(--accent); color: #4a3200; }

.cta__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }

/* Világos változat — halkabb megjelenés */
.cta--soft {
  background: #fff; color: var(--text);
  box-shadow: var(--shadow);
  border: 2px solid var(--brand-100);
}
.cta--soft::before { display: none; }
.cta--soft .cta__text { color: var(--text-2); }
.cta--soft .btn--primary { background: var(--brand); color: #fff; }
.cta--soft .btn--primary:hover { background: var(--brand-600); color: #fff; }

/* ---------- Az űrlap ---------- */

.lf { display: flex; flex-direction: column; gap: 14px; }

.lf__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .lf__grid { grid-template-columns: 1fr; } }

.lf__field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.lf__field > span { font-size: 13.5px; font-weight: 600; }
.lf__field em { font-style: normal; color: var(--danger); }

.lf__field input {
  width: 100%; height: 50px; padding: 0 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit; font-size: 15px;
  transition: border-color .16s, box-shadow .16s;
}
.lf__field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-100);
}
.lf__field input::placeholder { color: #b9c0bd; }
.lf__field input[aria-invalid="true"] { border-color: var(--danger); }

.lf__err { font-size: 12.5px; color: var(--danger); min-height: 0; }

/* Jelölőnégyzetek */
.lf__check {
  display: grid; grid-template-columns: auto 1fr; gap: 12px;
  align-items: start;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  font-size: 13px; line-height: 1.55; color: var(--text-2);
  cursor: pointer;
}
.lf__check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--brand); cursor: pointer; }
.lf__check a { color: var(--brand); }
.lf__check em { font-style: normal; color: var(--danger); }

.lf__small { font-size: 12.5px; color: var(--text-3); text-align: center; line-height: 1.5; }

/* Sikeres beküldés */
.lf__done { text-align: center; padding: 26px 10px; }
.lf__done-ico {
  width: 62px; height: 62px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--good-bg); color: var(--good);
  display: grid; place-items: center; font-size: 30px; font-weight: 700;
}
.lf__done h3 { font-size: 21px; margin-bottom: 8px; }
.lf__done p { color: var(--text-2); font-size: 15px; }

/* Az űrlap sötét (indigó) háttéren */
.cta .lf__panel {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: clamp(20px, 3vw, 28px);
  color: var(--text);
  margin-top: 24px;
}

/* ============================================================
   1. VÁLTOZAT — helyben kinyíló
   ============================================================ */

.cta__reveal {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .38s var(--ease);
}
.cta__reveal.is-open { grid-template-rows: 1fr; }
.cta__reveal > div { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .cta__reveal { transition: none; }
}

/* ============================================================
   2. VÁLTOZAT — felugró ablak
   ============================================================ */

.modal {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(20, 26, 40, .55);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity .24s var(--ease);
}
.modal.is-open { opacity: 1; pointer-events: auto; }

.modal__box {
  width: min(100%, 560px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .3);
  transform: translateY(16px) scale(.98);
  transition: transform .28s var(--ease);
}
.modal.is-open .modal__box { transform: none; }

.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.modal__title { font-size: clamp(20px, 2.6vw, 25px); }
.modal__sub { color: var(--text-2); font-size: 15px; margin-bottom: 22px; }

.modal__x {
  flex: none; width: 38px; height: 38px;
  border: 0; border-radius: 50%;
  background: var(--bg-soft); color: var(--text-2);
  font-size: 20px; line-height: 1; cursor: pointer;
  transition: background .16s;
}
.modal__x:hover { background: var(--line); }

/* ============================================================
   3. VÁLTOZAT — külön oldal
   ============================================================ */

.pagecta { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .pagecta { grid-template-columns: 1fr; } }

.recap {
  background: #fff; border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.recap h3 { font-size: 17px; margin-bottom: 16px; }
.recap dl { margin: 0; display: flex; flex-direction: column; gap: 11px; }
.recap dl > div { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; }
.recap dt { color: var(--text-3); }
.recap dd { margin: 0; font-weight: 600; text-align: right; }
.recap__total {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
}
.recap__total b { display: block; font-size: 26px; color: var(--brand); font-variant-numeric: tabular-nums; }
.recap__total small { font-size: 12.5px; color: var(--text-3); }

/* ============================================================
   4. VÁLTOZAT — mindig látható
   ============================================================ */

.cta--open .lf__panel { margin-top: 22px; }

/* ============================================================
   DEMÓ-KERET (csak a bemutató oldalon)
   ============================================================ */

.vdemo { background: var(--bg-soft); }
.vdemo__head { padding: clamp(36px, 5vw, 60px) 0 clamp(20px, 3vw, 30px); }
.vdemo__title { font-size: clamp(30px, 4.5vw, 44px); margin-bottom: 12px; }
.vdemo__lead { color: var(--text-2); font-size: 17px; max-width: 64ch; }

.vblock { padding: clamp(30px, 4vw, 50px) 0; border-top: 1px solid var(--line-2); }
.vblock__head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.vblock__n {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  font-weight: 700; font-size: 17px;
}
.vblock__name { font-size: clamp(20px, 2.6vw, 26px); margin-bottom: 6px; }
.vblock__meta { color: var(--text-2); font-size: 15px; max-width: 66ch; }

.vtags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.vtag {
  font-size: 12.5px; font-weight: 600;
  padding: 5px 13px; border-radius: var(--pill);
  background: #fff; color: var(--text-2);
  box-shadow: var(--shadow-sm);
}
.vtag--good { background: var(--good-bg); color: var(--good); }
.vtag--warn { background: var(--warm-bg); color: #a86a1e; }

.vframe {
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow);
}
.vframe--plain { background: transparent; box-shadow: none; padding: 0; }

/* ============================================================
   Verziójelölő sáv + áttekintő oldal
   ============================================================ */

.vbar {
  background: #1b2233; color: rgba(255,255,255,.82);
  font-size: 13.5px; text-align: center;
  padding: 11px 20px;
}
.vbar b { color: #fff; }
.vbar a { color: var(--accent); }

.cta-wrap { display: block; margin: 0 auto clamp(18px, 2.5vw, 26px); }

/* Áttekintő oldal */
.vgrid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; padding-bottom: clamp(30px, 4vw, 48px);
}
.vcard {
  display: flex; flex-direction: column; gap: 10px;
  background: #fff; border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  text-decoration: none; color: var(--text);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.vcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.vcard__n {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 17px;
}
.vcard h2 { font-size: 20px; }
.vcard p { font-size: 14.5px; color: var(--text-2); line-height: 1.55; }
.vcard__go { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--brand); font-size: 15px; }

.vnote { padding-bottom: clamp(40px, 6vw, 72px); }
.vnote h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 16px; }
.vnote ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.vnote li { font-size: 15px; color: var(--text-2); line-height: 1.6; }
.vnote__todo {
  margin-top: 22px; padding: 18px 22px;
  background: var(--accent-100); border-radius: var(--radius-sm);
  font-size: 14.5px; color: #6b4a00; line-height: 1.6;
}

/* Külön ajánlatkérő oldal */
.askpage { background: var(--bg-soft); }
.askpage__head { padding: clamp(28px, 4vw, 52px) 0 clamp(20px, 3vw, 30px); }
.askpage__back { font-size: 14.5px; color: var(--brand); text-decoration: none; font-weight: 600; }
.askpage__back:hover { text-decoration: underline; }
.askpage__title { font-size: clamp(28px, 4vw, 42px); margin: 16px 0 12px; }
.askpage__lead { color: var(--text-2); font-size: 17px; max-width: 62ch; }
.askpage__main { padding-bottom: clamp(40px, 6vw, 72px); }
.askpage__form {
  background: #fff; border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow);
}
.recap__note { font-size: 13px; color: var(--text-3); margin-top: 14px; line-height: 1.5; }

/* ============================================================
   Márkafejléc + lábléc
   ============================================================ */

.brandbar { background: #fff; border-bottom: 1px solid var(--line); }
.brandbar__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 0;
}
.brandbar__logo { display: block; line-height: 0; }
.brandbar__logo img { width: auto; height: 44px; }

.brandbar__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.brandbar__tel {
  font-size: 17px; font-weight: 700; color: var(--brand); text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.brandbar__tel:hover { text-decoration: underline; }
.brandbar__note { font-size: 12.5px; color: var(--text-3); }

@media (max-width: 520px) {
  .brandbar__logo img { height: 34px; }
  .brandbar__tel { font-size: 15px; }
}

/* Bizalmi pontok az ajánlatkérőben */
.cta__trust {
  display: flex; flex-wrap: wrap; gap: 12px;
  list-style: none; margin: 0 0 26px; padding: 0;
}
.cta__trust li {
  display: flex; flex-direction: column;
  padding: 12px 20px;
  background: rgba(255, 255, 255, .12);
  border-radius: var(--radius-sm);
  min-width: 150px;
}
.cta__trust b { font-size: 19px; font-weight: 700; color: var(--accent); line-height: 1.2; }
.cta__trust span { font-size: 13px; color: rgba(255, 255, 255, .8); }

.cta--soft .cta__trust li { background: var(--bg-soft); }
.cta--soft .cta__trust b { color: var(--brand); }
.cta--soft .cta__trust span { color: var(--text-3); }

/* Lábléc */
.sitefoot {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 22px;
  text-align: left;
}
@media (max-width: 780px) { .sitefoot { grid-template-columns: 1fr; gap: 26px; } }

.sitefoot__brand img { width: auto; height: 46px; margin-bottom: 14px; }
.sitefoot__brand p { font-size: 14px; color: var(--text-2); line-height: 1.6; max-width: 44ch; }

.sitefoot__col h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.sitefoot__col p { font-size: 14px; color: var(--text-2); line-height: 1.9; }
.sitefoot__col a { color: var(--text-2); text-decoration: none; }
.sitefoot__col a:hover { color: var(--brand); text-decoration: underline; }

/* ============================================================
   Köszönőoldal
   ============================================================ */

.thanks { background: var(--bg-soft); }
.thanks__main { padding: clamp(34px, 5vw, 60px) 0 clamp(40px, 6vw, 72px); }

.thanks__hero { text-align: center; max-width: 640px; margin: 0 auto clamp(30px, 4vw, 46px); }
.thanks__ico {
  width: 84px; height: 84px; margin: 0 auto 22px;
  border-radius: 50%; background: var(--good-bg); color: var(--good);
  display: grid; place-items: center; font-size: 42px; font-weight: 700;
  box-shadow: 0 10px 30px rgba(78, 126, 80, .18);
}
.thanks__title { font-size: clamp(28px, 4.5vw, 44px); margin-bottom: 14px; }
.thanks__lead { font-size: 17px; color: var(--text-2); line-height: 1.65; }

.thanks__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px; align-items: start;
}
@media (max-width: 900px) { .thanks__grid { grid-template-columns: 1fr; } }

.thanks__card {
  background: #fff; border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow);
}
.thanks__card h2 { font-size: 21px; margin-bottom: 22px; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.steps__n {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-100); color: var(--brand);
  font-weight: 700; font-size: 15px;
}
.steps b { display: block; font-size: 15.5px; }
.steps small { display: block; font-size: 13.5px; color: var(--text-3); line-height: 1.55; margin-top: 3px; }

.thanks__urgent {
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 14.5px; color: var(--text-2);
}
.thanks__urgent a { color: var(--brand); font-weight: 700; text-decoration: none; }
.thanks__urgent a:hover { text-decoration: underline; }

.thanks__actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-top: clamp(28px, 4vw, 44px);
}

/* ============================================================
   Süti-sáv — Consent Mode v2
   ============================================================ */

.cookiebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 400;
  background: #fff;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .12);
  animation: cookieUp .3s var(--ease) both;
}
@keyframes cookieUp { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .cookiebar { animation: none; } }

.cookiebar__in {
  width: min(100% - 40px, var(--maxw));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px 24px;
  padding: 18px 0 calc(18px + env(safe-area-inset-bottom));
}
.cookiebar__text {
  font-size: 13.5px; line-height: 1.6; color: var(--text-2);
  max-width: 70ch; margin: 0;
}
.cookiebar__text a { color: var(--brand); }
.cookiebar__btns { display: flex; gap: 10px; flex: none; }

@media (max-width: 620px) {
  .cookiebar__btns { width: 100%; }
  .cookiebar__btns .btn { flex: 1; }
}

/* A mobil sáv fölé kerüljön, ne takarják egymást */
@media (max-width: 1060px) {
  .cookiebar { bottom: 74px; }
}
