/* Helpdesk Űrlap – minden szabály a .hdu-form alatt, hogy a sablon és az Elementor ne írja felül, és mi se írjuk felül az oldalt. */
@font-face { font-family: 'HDU Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-latin-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'HDU Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-latin-ext-400.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'HDU Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-latin-500.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'HDU Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-latin-ext-500.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'HDU Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-latin-600.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'HDU Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-latin-ext-600.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* F Design (A terv): sötét kártya, világos beviteli mezők, lime gomb — ugyanaz a nyelv, mint a webshop pénztára.
   Minden szabály a .hdu-form alatt, hogy a sablon és az Elementor ne írja felül, és mi se írjuk felül az oldalt. */
.hdu-form {
    --hdu-card: #202020;
    --hdu-text: #ffffff;
    --hdu-soft: rgba(255, 255, 255, 0.85);
    --hdu-muted: rgba(255, 255, 255, 0.6);
    --hdu-line: rgba(255, 255, 255, 0.2);
    --hdu-field-bg: #ffffff;
    --hdu-field-text: #111111;
    --hdu-field-border: #dddddd;
    --hdu-lime: #e6ff6e;
    --hdu-lime-wash: rgba(230, 255, 110, 0.08);
    --hdu-error: #ff7a7a;
    --hdu-display: 'Archivo', 'HDU Poppins', 'Poppins', sans-serif;
    width: 100%;
    max-width: 760px;
    padding: 32px;
    border-radius: 10px;
    background: var(--hdu-card);
    color: var(--hdu-text);
    font-family: 'HDU Poppins', 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.5;
}
.hdu-form *, .hdu-form *::before, .hdu-form *::after {
    box-sizing: border-box;
    font-family: inherit;
    letter-spacing: normal;
    text-transform: none;
}
.hdu-form form, .hdu-form p, .hdu-form fieldset, .hdu-form legend, .hdu-form ul { margin: 0; padding: 0; border: 0; }
.hdu-form .hdu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hdu-form .hdu-field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hdu-form .hdu-field.hdu-half { grid-column: span 1; }
.hdu-form .hdu-label { display: block; font-size: 14px; font-weight: 600; color: var(--hdu-text); }
.hdu-form .hdu-req { color: var(--hdu-lime); }

/* Szöveges mezők: fehér háttér, mint a pénztárban */
.hdu-form .hdu-input {
    display: block;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 15px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--hdu-field-text);
    background: var(--hdu-field-bg);
    border: 1px solid var(--hdu-field-border);
    border-radius: 8px;
    box-shadow: none;
    outline: none;
    appearance: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.hdu-form textarea.hdu-input { min-height: 140px; resize: vertical; }
.hdu-form select.hdu-input {
    padding-right: 40px;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}
.hdu-form .hdu-input::placeholder { color: #8a8a8a; opacity: 1; }
.hdu-form .hdu-input:focus { border-color: var(--hdu-lime); box-shadow: 0 0 0 3px rgba(230, 255, 110, 0.45); }
.hdu-form .hdu-hint { font-size: 12px; color: var(--hdu-muted); }

/* Választógombok: kártyák egy sorban (a kiválasztott lime keretes) */
.hdu-form .hdu-radios { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 10px; }
.hdu-form .hdu-radios > legend { grid-column: 1 / -1; padding-bottom: 8px; float: left; width: 100%; }
.hdu-form .hdu-radios .hdu-check {
    min-height: 52px; padding: 0 14px; align-items: center; font-weight: 600;
    border: 1px solid var(--hdu-line); border-radius: 10px; background: transparent; transition: border-color .15s, background-color .15s;
}
.hdu-form .hdu-radios .hdu-check:hover { border-color: rgba(230, 255, 110, 0.6); }
.hdu-form .hdu-radios .hdu-check:has(input:checked) { border-color: var(--hdu-lime); background: var(--hdu-lime-wash); }

/* Jelölőnégyzet és választógomb saját rajzolással (lime) */
.hdu-form .hdu-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 21px; cursor: pointer; color: var(--hdu-soft); }
.hdu-form .hdu-check input {
    flex: 0 0 auto; width: 20px; height: 20px; margin: 0; appearance: none; -webkit-appearance: none; cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.5); background: transparent; display: grid; place-content: center;
}
.hdu-form .hdu-field-checkbox .hdu-check input { margin-top: 1px; border-radius: 5px; }
.hdu-form .hdu-check input[type="radio"] { width: 18px; height: 18px; border-radius: 50%; }
.hdu-form .hdu-check input:checked { border-color: var(--hdu-lime); }
.hdu-form .hdu-check input[type="checkbox"]:checked {
    background: var(--hdu-lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5l10 -10'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.hdu-form .hdu-check input[type="radio"]:checked::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hdu-lime); }
.hdu-form .hdu-check input:focus-visible { outline: 2px solid var(--hdu-lime); outline-offset: 2px; }
.hdu-form .hdu-check a { color: var(--hdu-lime); }

/* Fájlfeltöltés: szaggatott lime keretes doboz; a fájl mező átlátszóan lefedi (kattintás és ráhúzás) */
.hdu-form .hdu-drop {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    min-height: 76px; padding: 14px; border: 1px dashed rgba(230, 255, 110, 0.6); border-radius: 10px;
    background: rgba(230, 255, 110, 0.05); transition: background-color .15s, border-color .15s;
}
.hdu-form .hdu-drop:hover, .hdu-form .hdu-drop.hdu-drag { background: rgba(230, 255, 110, 0.12); border-color: var(--hdu-lime); }
.hdu-form .hdu-drop:focus-within { outline: 2px solid var(--hdu-lime); outline-offset: 2px; }
.hdu-form .hdu-file { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.hdu-form .hdu-drop-text { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--hdu-soft); pointer-events: none; }
.hdu-form .hdu-drop-text svg { flex-shrink: 0; color: var(--hdu-lime); }
.hdu-form .hdu-drop-text b { color: var(--hdu-lime); font-weight: 600; }
.hdu-form .hdu-files { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; pointer-events: none; }
.hdu-form .hdu-files li { padding: 4px 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.4); font-size: 12px; color: var(--hdu-text); }

/* Hibák */
.hdu-form .hdu-field.hdu-invalid .hdu-input { border: 2px solid var(--hdu-error); }
.hdu-form .hdu-field.hdu-invalid .hdu-drop, .hdu-form .hdu-field.hdu-invalid .hdu-radios .hdu-check { border-color: var(--hdu-error); }
.hdu-form .hdu-error { font-size: 13px; color: var(--hdu-error); }
.hdu-form .hdu-error:empty { display: none; }
.hdu-form .hdu-message {
    margin-top: 20px; padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 20px;
    color: #ffb3b3; background: rgba(255, 122, 122, 0.12); border: 1px solid rgba(255, 122, 122, 0.5);
}
.hdu-form .hdu-message:empty { display: none; }

/* Küldés: lime, teljes szélességű gomb */
.hdu-form .hdu-submit {
    display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; margin-top: 24px; padding: 0 32px;
    font-family: var(--hdu-display); font-size: 18px; font-weight: 800; line-height: 1.2;
    color: #000000; background: var(--hdu-lime); border: 0; border-radius: 28px; cursor: pointer; transition: background-color .15s ease;
}
.hdu-form .hdu-submit:hover { background: #f2ffb0; }
.hdu-form .hdu-submit:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; }
.hdu-form .hdu-submit[disabled] { opacity: .7; cursor: wait; }
.hdu-form .hdu-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Elküldve: köszönő állapot az űrlap helyén */
.hdu-form .hdu-success { padding: 16px 0 4px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.hdu-form .hdu-success[hidden] { display: none; }
.hdu-form .hdu-success:focus { outline: none; }
.hdu-form .hdu-success-ikon { width: 64px; height: 64px; border-radius: 50%; background: var(--hdu-lime); color: #000000; display: flex; align-items: center; justify-content: center; }
.hdu-form .hdu-success p { font-size: 15px; color: var(--hdu-soft); }
.hdu-form .hdu-success .hdu-success-title { font-family: var(--hdu-display); font-size: 26px; font-weight: 900; font-style: italic; text-transform: uppercase; color: var(--hdu-text); }

@media (max-width: 640px) {
    .hdu-form { padding: 18px; }
    .hdu-form .hdu-grid { grid-template-columns: 1fr; gap: 16px; }
    .hdu-form .hdu-field.hdu-half { grid-column: 1 / -1; }
    .hdu-form .hdu-input { font-size: 16px; } /* iOS: 16 px alatt ráközelít a mezőre */
    .hdu-form .hdu-radios { grid-template-columns: 1fr 1fr; gap: 8px; }
    .hdu-form .hdu-submit { min-height: 54px; font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
    .hdu-form .hdu-input, .hdu-form .hdu-submit, .hdu-form .hdu-drop, .hdu-form .hdu-radios .hdu-check { transition: none; }
}
