/* ==================================================================
   EuroPro kapcsolati urlap (ep_form widget), plugin 0.8.8
   Ugyanaz a formavilag, mint a tobbi blokk: levagott jobb felso sarok,
   ferde gomb, Space Grotesk feliratok, csupa nagybetu nelkul. Sotet az
   alap, a vilagos (palyazati) agat a .ep-light kapcsolja.
   ================================================================== */
.epf { position: relative; padding: 15vh clamp(20px, 5vw, 64px) 13vh; background: var(--graphite, #17171C); color: var(--cream, #FBFAF7); overflow: hidden; }
.epf::before { content: ''; position: absolute; right: -8vw; top: -10vw; width: 34vw; height: 34vw; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); pointer-events: none; }
.epf-in { position: relative; max-width: 1180px; margin: 0 auto; }
.epf-head { max-width: 760px; margin-bottom: clamp(36px, 7vh, 72px); }
.epf-head h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: clamp(28px, 4vw, 48px); line-height: 1.08; letter-spacing: -.02em; margin: 12px 0 0; text-wrap: balance; }
.epf-lead { margin: 20px 0 0; font-size: 18px; line-height: 1.6; max-width: 60ch; color: rgba(251,250,247,.86); }
.epf-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 76px); align-items: start; }

/* --- mezok --- */
.epf-form { display: grid; gap: 22px; }
.epf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.epf-f { display: grid; gap: 9px; min-width: 0; }
.epf-f > span:first-child { font-family: 'Space Grotesk', sans-serif; font-size: 13.5px; letter-spacing: .04em; color: rgba(251,250,247,.74); }
.epf-star { color: var(--accent); margin-left: 3px; }
.epf input[type=text], .epf input[type=email], .epf input[type=tel], .epf select, .epf textarea {
  width: 100%; box-sizing: border-box; margin: 0; font: 16px/1.5 var(--font-body, 'Inter', sans-serif); color: inherit;
  background: rgba(251,250,247,.045); border: 0; border-bottom: 1px solid rgba(251,250,247,.24); border-radius: 0;
  padding: 14px 16px; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease; -webkit-appearance: none; appearance: none;
}
.epf textarea { min-height: 168px; resize: vertical; }
.epf input:hover, .epf select:hover, .epf textarea:hover { background: rgba(251,250,247,.07); }
.epf input:focus, .epf select:focus, .epf textarea:focus { outline: none; background: rgba(251,250,247,.08); border-bottom-color: var(--accent); box-shadow: inset 0 -1px 0 var(--accent); }
.epf input:focus-visible, .epf select:focus-visible, .epf textarea:focus-visible { box-shadow: inset 0 -1px 0 var(--accent), 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.epf .is-bad { border-bottom-color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.epf-select { position: relative; display: block; }
.epf-select::after { content: ''; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(45deg); pointer-events: none; }
.epf select { padding-right: 48px; cursor: pointer; }
.epf select option, .epf select optgroup { color: #191920; background: #fff; }

/* --- hozzajarulas --- */
.epf-check { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; cursor: pointer; font-size: 14.5px; line-height: 1.55; color: rgba(251,250,247,.8); }
.epf-check input { position: absolute; left: 0; top: 2px; width: 22px; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.epf-box { grid-column: 1; width: 22px; height: 22px; margin-top: 1px; border: 1px solid rgba(251,250,247,.4); position: relative; transition: background .2s ease, border-color .2s ease; }
.epf-box::after { content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border-right: 2px solid #0D0D10; border-bottom: 2px solid #0D0D10; transform: rotate(45deg) scale(0); transition: transform .18s cubic-bezier(.22,.68,0,1.4); }
.epf-check input:checked + .epf-box { background: var(--accent); border-color: var(--accent); }
.epf-check input:checked + .epf-box::after { transform: rotate(45deg) scale(1); }
.epf-check input:focus-visible + .epf-box { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent); }
.epf-check-t { grid-column: 2; }
.epf-check a { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.epf-check a:hover { color: var(--accent); }

/* --- gomb --- */
.epf-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 6px; }
.epf-btn { position: relative; display: inline-flex; align-items: center; gap: 14px; border: 0; cursor: pointer; white-space: nowrap;
  padding: 17px 38px 17px 34px; font: 600 15px/1 'Space Grotesk', sans-serif; letter-spacing: .02em; color: #0D0D10; background: var(--accent);
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); transition: filter .25s ease, transform .25s cubic-bezier(.22,.68,0,1); }
.epf-btn i { position: relative; width: 22px; height: 1.5px; background: currentColor; transition: width .3s cubic-bezier(.22,.68,0,1); }
.epf-btn i::after { content: ''; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); transform-origin: 70% 30%; }
.epf-btn:hover { filter: brightness(1.08); }
.epf-btn:hover i { width: 30px; }
.epf-btn:active { transform: translateY(1px); }
.epf-btn:focus-visible { outline: 2px solid var(--cream, #FBFAF7); outline-offset: 3px; }
.epf-btn[disabled] { cursor: progress; filter: saturate(.6) brightness(.9); }
.epf-req { font-size: 13px; color: rgba(251,250,247,.58); }
.epf-status { margin: 0; min-height: 1.4em; font-size: 14.5px; line-height: 1.5; }
.epf-status.is-err { padding: 12px 16px; border-left: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.epf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* --- siker --- */
.epf-ok { padding: clamp(28px, 4vw, 48px); background: rgba(251,250,247,.05); clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); outline: none; }
.epf-ok[hidden] { display: none; }
.epf-ok h3 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.01em; margin: 22px 0 10px; }
.epf-ok p { margin: 0; font-size: 17px; line-height: 1.6; color: rgba(251,250,247,.84); max-width: 46ch; }
.epf-ok-mark { position: relative; display: block; width: 52px; height: 36px; background: var(--accent); clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.epf-ok-mark::after { content: ''; position: absolute; left: 22px; top: 7px; width: 8px; height: 16px; border-right: 2.5px solid #0D0D10; border-bottom: 2.5px solid #0D0D10; transform: rotate(45deg); }
.epf.is-sent .epf-form { display: none; }
.epf.is-sent .epf-ok { display: block; animation: epf-in .5s cubic-bezier(.22,.68,0,1) both; }
@keyframes epf-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* --- elerhetosegek --- */
.epf-card { padding: clamp(26px, 3vw, 40px); background: rgba(251,250,247,.04); border-top: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
.epf-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 600; margin: 0 0 22px; }
.epf-card dl { margin: 0; display: grid; gap: 6px; }
.epf-card dt { font-family: 'Space Grotesk', sans-serif; font-size: 12.5px; letter-spacing: .06em; color: var(--accent); margin-top: 14px; }
.epf-card dt:first-child { margin-top: 0; }
.epf-card dd { margin: 0; font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.epf-card dd a { border-bottom: 1px solid rgba(251,250,247,.25); transition: color .25s ease, border-color .25s ease; }
.epf-card dd a:hover { color: var(--accent); border-color: var(--accent); }
.epf-note { margin: 22px 0 0; font-size: 14.5px; line-height: 1.6; color: rgba(251,250,247,.7); }

/* --- vilagos ag --- */
.ep-light .epf { background: linear-gradient(180deg, #F6F3EE 0%, #EFE7DA 100%); color: var(--ink, #191920); }
.ep-light .epf-lead { color: var(--ink-2); }
.ep-light .epf-f > span:first-child, .ep-light .epf-check { color: var(--ink-2); }
.ep-light .epf input[type=text], .ep-light .epf input[type=email], .ep-light .epf input[type=tel], .ep-light .epf select, .ep-light .epf textarea { background: #fff; border-bottom-color: rgba(25,25,32,.26); }
.ep-light .epf input:hover, .ep-light .epf select:hover, .ep-light .epf textarea:hover { background: #fff; border-bottom-color: rgba(25,25,32,.45); }
.ep-light .epf input:focus, .ep-light .epf select:focus, .ep-light .epf textarea:focus { background: #fff; border-bottom-color: var(--accent); }
.ep-light .epf-box { border-color: rgba(25,25,32,.4); background: #fff; }
.ep-light .epf-box::after, .ep-light .epf-ok-mark::after { border-color: #fff; }
.ep-light .epf-btn { color: #fff; }
.ep-light .epf-btn:focus-visible { outline-color: var(--ink, #191920); }
.ep-light .epf-req, .ep-light .epf-note { color: var(--ink-3); }
.ep-light .epf-ok, .ep-light .epf-card { background: #fff; }
.ep-light .epf-ok p { color: var(--ink-2); }
.ep-light .epf-card dd a { border-bottom-color: rgba(25,25,32,.22); }

@media (max-width: 900px) {
  .epf-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .epf { padding-top: 11vh; padding-bottom: 10vh; }
  .epf-row { grid-template-columns: 1fr; }
  .epf-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .epf *, .epf *::after { transition: none !important; animation: none !important; }
}
