/* =========================================================
   Ajánlatkérő űrlap (több lépéses) – a style.css színeire épül
   ========================================================= */
body.fx { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background:
  radial-gradient(900px 420px at 50% -120px, color-mix(in srgb, var(--yellow) 10%, transparent), transparent 70%), var(--bg); }

/* felső sáv + lépésjelző */
.fx-top {
  position: sticky; top: 0; z-index: 20; background: transparent;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}
/* az oldal tetején a fejléc egybeolvad a tartalommal; görgetéskor matt, vonal nélküli felület,
   amely mögött a begördülő tartalom csak halványan dereng át */
.fx-top.is-scrolled {
  background: rgba(23, 24, 26, 0.8);
  backdrop-filter: blur(22px) saturate(1.15); -webkit-backdrop-filter: blur(22px) saturate(1.15);
}
.fx-top-in { position: relative; max-width: 1080px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.fx-top .brand img { height: 32px; width: auto; }
/* a logó középen áll; az 5. kérdéstől balra csúszik, és a helyén megjelenik a visszaszámlálás */
.fx-top .brand {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex;
  transition: left 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.fx-top.has-progress .brand { left: 20px; transform: translate(0, -50%); }
.fx-progress {
  margin: 0; font: 600 0.92rem/1.3 var(--font); color: var(--muted); text-align: right;
  opacity: 0; transform: translateX(12px); transition: opacity 0.45s ease 0.25s, transform 0.45s ease 0.25s;
}
.fx-progress b { color: var(--yellow); font-weight: 700; }
.fx-emoji { display: inline-block; margin-left: 2px; font-size: 1.15em; line-height: 1; vertical-align: -0.08em; animation: fx-pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) 0.35s both; }
@keyframes fx-pop { from { transform: scale(0.3) rotate(-15deg); opacity: 0; } to { transform: none; opacity: 1; } }
.fx-top.has-progress .fx-progress { opacity: 1; transform: none; }
.fx-top.no-anim .brand, .fx-top.no-anim .fx-progress { transition: none; }

/* lépések */
.fx-main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 44px 20px 140px; }
.fx-step { animation: fx-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.fx-step.back { animation-name: fx-in-back; }
@keyframes fx-in { from { opacity: 0; transform: translateX(28px); } }
@keyframes fx-in-back { from { opacity: 0; transform: translateX(-28px); } }
.fx-kicker { text-align: center; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 12px; }
.fx-q { text-align: center; font-size: clamp(1.9rem, 5vw, 3rem); margin: 0 auto 36px; max-width: 20ch; text-wrap: balance; }
.fx-noscript { text-align: center; color: var(--muted); }

/* kártyák */
.fx-cards { display: grid; gap: 18px; max-width: 900px; margin: 0 auto; }
.fx-col { display: flex; flex-direction: column; min-width: 0; }
.fx-card {
  position: relative; z-index: 2; display: flex; flex-direction: column; width: 100%; text-align: left; padding: 0; cursor: pointer;
  background: var(--surface); color: var(--text); border: 1.5px solid var(--line-2); border-radius: var(--radius); overflow: hidden;
  font: inherit; box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.8);
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.25s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .fx-card:hover { transform: scale(1.025); border-color: color-mix(in srgb, var(--yellow) 55%, transparent); box-shadow: 0 26px 50px -24px rgba(0, 0, 0, 0.85); }
}
.fx-card:active { transform: scale(0.99); }
.fx-card[aria-checked="true"] { border-color: var(--yellow); box-shadow: 0 0 0 3px color-mix(in srgb, var(--yellow) 25%, transparent), 0 26px 50px -24px rgba(0, 0, 0, 0.85); }
.fx-cards.has-choice .fx-card[aria-checked="false"] { opacity: 0.55; }
.fx-cards.has-choice .fx-card[aria-checked="false"]:hover { opacity: 1; }
.fx-card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.fx-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
@media (hover: hover) and (pointer: fine) { .fx-card:hover .fx-card-img img { transform: scale(1.04); } }
.fx-card-body { display: grid; gap: 4px; padding: 18px 20px 20px; }
.fx-card-title { font: 700 1.35rem/1.2 var(--font-head); letter-spacing: -0.01em; }
.fx-card-sub { color: var(--muted); font-size: 0.95rem; }
/* két kép egymás mellett egy kártyán belül (pl. Ytong + Leier) */
.fx-card-img-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.fx-card-img-duo img { min-width: 0; }
/* azonos magasságú kártyák (a felirat hossza nem húzza szét a sort) */
.fx-cards.fx-cards-even { align-items: stretch; }
.fx-cards-even .fx-col, .fx-cards-even .fx-card { height: 100%; }
.fx-tick {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(23, 24, 26, 0.7); border: 2px solid rgba(255, 255, 255, 0.5); color: transparent; backdrop-filter: blur(6px);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.25s;
}
.fx-tick .ico { width: 18px; height: 18px; stroke-width: 3; }
.fx-card[aria-checked="true"] .fx-tick { background: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); transform: scale(1.06); }
/* ikonos (kép nélküli) kártya */
.fx-card-icon { flex-direction: row; align-items: center; gap: 4px; padding: 22px 70px 22px 22px; min-height: 120px; }
.fx-card-icon .fx-card-body { padding: 0; }
.fx-card-ico { flex: none; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin-right: 14px; background: color-mix(in srgb, var(--yellow) 12%, transparent); color: var(--yellow); }
.fx-card-ico .ico { width: 32px; height: 32px; stroke-width: 1.8; }
.fx-card-icon .fx-tick { top: 50%; margin-top: -17px; right: 22px; background: transparent; border-color: var(--line-2); }

/* a kártya alól előcsúszó panel */
.fx-reveal { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); position: relative; z-index: 1; }
.fx-reveal.open { grid-template-rows: 1fr; }
.fx-reveal-clip { overflow: hidden; min-height: 0; }
.fx-reveal-in {
  margin-top: -18px; padding: 36px 20px 20px; border: 1.5px solid color-mix(in srgb, var(--yellow) 45%, transparent); border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius); background: var(--bg-2);
  transform: translateY(-40px); opacity: 0; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.35s ease;
}
.fx-reveal.open .fx-reveal-in { transform: none; opacity: 1; transition-delay: 0.05s; }
.fx-reveal-title { font: 700 1.08rem var(--font-head); }
.fx-reveal-sub { color: var(--muted); font-size: 0.88rem; margin: 2px 0 14px; opacity: 0.8; }
.fx-checks { display: grid; gap: 10px; }
.fx-checkbox { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.fx-checkbox:hover { border-color: color-mix(in srgb, var(--yellow) 55%, transparent); }
.fx-checkbox input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.fx-box { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line-2); display: grid; place-items: center; color: transparent; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.fx-box .ico { width: 16px; height: 16px; stroke-width: 3.2; }
.fx-checkbox:has(input:checked) { border-color: var(--yellow); background: color-mix(in srgb, var(--yellow) 8%, var(--surface)); }
.fx-checkbox input:checked + .fx-box { background: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); }
.fx-checkbox input:focus-visible + .fx-box { outline: 3px solid var(--yellow); outline-offset: 3px; }
.fx-checkbox-text { display: grid; gap: 2px; }
.fx-checkbox-text b { font-size: 1rem; }
.fx-checkbox-text small { color: var(--muted); font-size: 0.85rem; }

/* összegzés (ideiglenes) */
.fx-summary { max-width: 640px; margin: 0 auto; display: grid; gap: 10px; }
.fx-summary > div { display: flex; align-items: center; gap: 14px; justify-content: space-between; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.fx-summary dt { color: var(--muted); font-size: 0.85rem; }
.fx-summary dd { margin: 2px 0 0; font-weight: 600; }
.fx-summary button { flex: none; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 999px; padding: 7px 14px; font: 600 0.85rem var(--font); cursor: pointer; }
.fx-summary button:hover { border-color: var(--yellow); color: var(--yellow); }
.fx-note { max-width: 640px; margin: 22px auto 0; text-align: center; color: var(--muted); font-size: 0.92rem; }

/* alsó navigációs sáv */
.fx-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(23, 24, 26, 0.98) 55%, rgba(23, 24, 26, 0)); }
.fx-bar-in { max-width: 1080px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; gap: 12px; }
.fx-bar .btn { padding: 14px 22px; }
.fx-bar .btn-primary:disabled { opacity: 0.35; cursor: not-allowed; transform: none; box-shadow: none; }
.fx-bar .btn-primary.ready { animation: fx-ready 0.6s ease 1; }
@keyframes fx-ready { 40% { transform: scale(1.06); } }
.fx-bar .btn-ghost .ico { transition: transform 0.2s; }
.fx-bar .btn-ghost:hover .ico { transform: translateX(-3px); }

@media (min-width: 720px) {
  .fx-cards { grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
  .fx-main { padding-top: 64px; }
}
@media (max-width: 719px) {
  .fx-main { padding-top: 28px; }
  .fx-q { margin-bottom: 24px; }
  .fx-card-img { aspect-ratio: 16 / 8; }
  .fx-card-body { padding: 14px 16px 16px; }
  .fx-bar .btn { flex: 1; padding: 14px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-step, .fx-reveal, .fx-reveal-in, .fx-card, .fx-card-img img, .fx-top .brand, .fx-progress, .fx-emoji { animation: none !important; transition: none !important; }
}
.fx [hidden] { display: none !important; }
.fx-q:focus { outline: none; }
.fx-card { scroll-margin-top: 90px; }

/* =========================================================
   Mezős lépések (méret, keret, helyszín, adatok) + képfeltöltés
   ========================================================= */

.fx-form { max-width: 520px; margin: 0 auto; display: grid; gap: 18px; }
.fx-field { display: grid; gap: 8px; }
.fx-field-big { max-width: 360px; margin: 0 auto; }
.fx-label { font-size: 0.9rem; font-weight: 600; color: #dcdee2; }
.fx-input {
  width: 100%; font: 500 1.05rem var(--font); color: var(--text); background: var(--surface);
  border: 1.5px solid var(--line-2); border-radius: 14px; padding: 15px 16px; min-height: 54px;
  transition: border-color 0.2s, box-shadow 0.2s; -webkit-appearance: none; appearance: none;
}
.fx-textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.fx-label-opt { color: var(--muted); font-weight: 500; opacity: 0.85; }
.fx-count { text-align: right; min-height: 1.2em; margin-top: -2px; }
.fx-input::placeholder { color: #7d8087; }
.fx-input:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 4px color-mix(in srgb, var(--yellow) 18%, transparent); }
.fx-field.has-error .fx-input { border-color: #ff6b6b; }
.fx-field.has-error .fx-input:focus { box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.18); }
.fx-field-big .fx-input { font: 700 1.9rem var(--font-head); text-align: center; padding: 16px 64px 16px 20px; min-height: 76px; letter-spacing: -0.01em; }
.fx-input-wrap { position: relative; }
.fx-suffix .fx-input { padding-right: 56px; }
.fx-unit { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.fx-field-big .fx-unit { font-size: 1.2rem; right: 22px; }
.fx-help { color: var(--muted); font-size: 0.86rem; opacity: 0.85; }
.fx-field-big .fx-help, .fx-center { text-align: center; }
.fx-err { color: #ff8a8a; font-size: 0.86rem; font-weight: 500; }

/* legördülő (saját nyíllal) */
.fx-select-wrap { position: relative; }
.fx-select-wrap::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -7px; pointer-events: none;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
}
.fx-select { padding-right: 44px; cursor: pointer; }
.fx-select option { background: var(--surface); color: var(--text); }
.fx-phone { display: grid; grid-template-columns: 128px 1fr; gap: 10px; }
.fx-privacy { color: var(--muted); font-size: 0.82rem; text-align: center; opacity: 0.85; margin-top: 4px; }

/* képfeltöltés */
.fx-optional { text-align: center; margin: -22px 0 22px; }
.fx-badge { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--yellow); border: 1px solid color-mix(in srgb, var(--yellow) 45%, transparent); background: color-mix(in srgb, var(--yellow) 10%, transparent); border-radius: 999px; padding: 6px 14px; }
.fx-drop {
  max-width: 640px; margin: 0 auto; display: grid; justify-items: center; gap: 6px; text-align: center; cursor: pointer;
  padding: 38px 24px; border: 2px dashed var(--line-2); border-radius: var(--radius); background: var(--surface);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.fx-drop:hover, .fx-drop.over { border-color: var(--yellow); background: color-mix(in srgb, var(--yellow) 6%, var(--surface)); }
.fx-drop.over { transform: scale(1.01); }
.fx-drop:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.fx-drop-ico { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 6px; background: color-mix(in srgb, var(--yellow) 12%, transparent); color: var(--yellow); }
.fx-drop-ico .ico { width: 30px; height: 30px; stroke-width: 1.8; }
.fx-drop-title { font: 700 1.15rem var(--font-head); }
.fx-drop-sub { color: #dcdee2; font-size: 0.95rem; }
.fx-drop .fx-help { margin-top: 4px; }
.fx-drop.has-files { padding: 22px 20px; }
.fx-drop.has-files .fx-drop-ico { width: 44px; height: 44px; margin: 0; }
.fx-thumbs { max-width: 640px; margin: 16px auto 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.fx-thumbs li { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-2); animation: fx-pop 0.3s ease both; }
.fx-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.fx-thumb-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; background: rgba(15, 16, 17, 0.8); color: #fff; }
.fx-thumb-x:hover { background: #ff6b6b; }
.fx-thumb-x .ico { width: 15px; height: 15px; stroke-width: 2.6; }
@keyframes fx-pop { from { opacity: 0; transform: scale(0.9); } }

/* keretösszeg csúszka */
.fx-budget { max-width: 620px; margin: 0 auto; display: grid; gap: 14px; }
.fx-budget-value { text-align: center; font: 800 clamp(2rem, 6vw, 3rem)/1.1 var(--font-head); color: var(--yellow); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.fx-range { --p: 0%; width: 100%; height: 34px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.fx-range:focus { outline: none; }
.fx-range::-webkit-slider-runnable-track { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--yellow) var(--p), var(--surface-2) var(--p)); }
.fx-range::-moz-range-track { height: 10px; border-radius: 99px; background: var(--surface-2); }
.fx-range::-moz-range-progress { height: 10px; border-radius: 99px; background: var(--yellow); }
.fx-range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%; background: var(--yellow); border: 4px solid var(--bg); box-shadow: 0 0 0 2px var(--yellow), 0 6px 16px rgba(0, 0, 0, 0.5); transition: transform 0.15s; }
.fx-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); border: 4px solid var(--bg); box-shadow: 0 0 0 2px var(--yellow); }
.fx-range:active::-webkit-slider-thumb { transform: scale(1.12); }
.fx-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--yellow), 0 0 0 7px color-mix(in srgb, var(--yellow) 30%, transparent); }
.fx-range-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.85rem; font-weight: 600; margin-top: -6px; }
.fx-budget .fx-field { margin-top: 14px; }

@media (max-width: 719px) {
  .fx-phone { grid-template-columns: 112px 1fr; }
  .fx-drop { padding: 28px 18px; }
  .fx-field-big .fx-input { font-size: 1.6rem; }
}

.fx-phone .fx-select { padding-left: 14px; padding-right: 34px; }
.fx-phone .fx-select-wrap::after { right: 14px; }
@media (max-width: 719px) {
  .fx-top .brand img { height: 28px; }
  .fx-top.has-progress .brand { left: 16px; }
  .fx-top-in { padding: 0 16px; }
  .fx-progress { font-size: 0.84rem; max-width: calc(100% - 100px); }
  .fx-phone { grid-template-columns: 124px 1fr; }
}
.on-touch { display: none; }
@media (hover: none), (pointer: coarse) { .on-fine { display: none; } .on-touch { display: inline; } }

/* rövid összegzés + elküldés */
.fx-summary-short { gap: 0; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.fx-summary-short > div { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 12px; border: 0; border-radius: 0; background: none; padding: 14px 18px; }
.fx-summary-short > div + div { border-top: 1px solid var(--line); }
.fx-summary-short dt { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.fx-summary-short dd { margin: 0; font-weight: 600; font-size: 0.97rem; line-height: 1.45; overflow-wrap: anywhere; }
.fx-edit { background: none; border: 0; color: var(--yellow); font: 600 0.85rem var(--font); cursor: pointer; padding: 6px 0; }
.fx-edit:hover { text-decoration: underline; }
.fx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fx-bar .btn-primary.fx-submit { padding-left: 28px; padding-right: 28px; }
.fx-bar .btn-primary.fx-submit:disabled { opacity: 0.75; cursor: progress; }
@media (max-width: 719px) {
  .fx-summary-short > div { grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 16px; }
  .fx-summary-short dt { grid-column: 1; }
  .fx-summary-short dd { grid-column: 1; grid-row: 2; }
  .fx-summary-short .fx-edit { grid-column: 2; grid-row: 1 / span 2; }
}

/* köszönőoldal */
.fx-thanks { display: grid; justify-items: center; align-content: center; text-align: center; gap: 18px; padding-bottom: 80px; min-height: calc(100vh - 64px); min-height: calc(100dvh - 64px); }
.fx-thanks .fx-q { margin: 6px 0 0; }
.fx-thanks-text { max-width: 46ch; color: #dcdee2; font-size: 1.08rem; margin-bottom: 14px; }
.fx-thanks-ico { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--on-yellow); box-shadow: 0 0 0 10px color-mix(in srgb, var(--yellow) 16%, transparent); animation: fx-pop-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1.2) both; }
.fx-thanks-ico .ico { width: 44px; height: 44px; stroke-width: 3; stroke-dasharray: 30; stroke-dashoffset: 30; animation: fx-draw 0.5s 0.35s ease forwards; }
@keyframes fx-pop-in { from { transform: scale(0.4); opacity: 0; } }
@keyframes fx-draw { to { stroke-dashoffset: 0; } }
.fx-thanks .btn .ico { transition: transform 0.2s; }
.fx-thanks .btn:hover .ico { transform: translateX(-3px); }

/* kötelező adatkezelési nyilatkozat (7. lépés) */
.fx-consent { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg-2); font-size: 0.92rem; line-height: 1.55; cursor: pointer; }
.fx-consent input { accent-color: var(--yellow); width: 20px; height: 20px; flex: none; margin: 2px 0 0; cursor: pointer; }
.fx-consent a { color: var(--yellow); text-underline-offset: 2px; }
.fx-field.has-error .fx-consent { border-color: #ff6b6b; }
.fx-legal { text-align: center; font-size: 0.8rem; color: var(--muted); margin: 28px 0 8px; }
.fx-legal a, .fx-legal button { color: var(--muted); background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.fx-legal a:hover, .fx-legal button:hover { color: var(--text); }
