/* 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; }

/* Az oldal arculata (LE claude design system): fehér kártya, lila kiemelés és lila küldés gomb.
   Csak a megjelenés változott, a mezők és a működés ugyanaz. */
.hdu-form {
    --hdu-card: #ffffff;
    --hdu-text: #242424;
    --hdu-soft: #3b3b3b;
    --hdu-muted: #666666;
    --hdu-line: #dddddd;
    --hdu-field-bg: #ffffff;
    --hdu-field-text: #212121;
    --hdu-field-border: #8a8a8a;
    --hdu-lila: #290d55;
    --hdu-krem: #faf6f2;
    --hdu-menta: #73eedc;
    --hdu-gomb: #290d55;
    --hdu-gomb-hover: #e93a5a;
    --hdu-error: #c62f3b;
    --hdu-display: 'Manrope', 'HDU Poppins', 'Poppins', sans-serif;
    width: 100%;
    max-width: 760px;
    padding: 32px;
    border: 1px solid var(--hdu-line);
    border-radius: 12px;
    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: 16px; }
.hdu-form .hdu-field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hdu-form .hdu-field.hdu-half { grid-column: span 1; }
.hdu-form .hdu-label { display: block; font-family: var(--hdu-display); font-size: 14px; font-weight: 600; color: var(--hdu-text); }
.hdu-form .hdu-req { color: var(--hdu-error); }

/* Szöveges mezők: ugyanazok, mint a pénztárban */
.hdu-form .hdu-input {
    display: block;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px;
    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: 4px;
    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%, var(--hdu-lila) 50%), linear-gradient(135deg, var(--hdu-lila) 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: var(--hdu-muted); opacity: 1; }
.hdu-form .hdu-input:focus { border-color: var(--hdu-lila); box-shadow: 0 0 0 1px var(--hdu-lila); background-color: var(--hdu-field-bg); color: var(--hdu-field-text); }
.hdu-form .hdu-hint { font-size: 12px; color: var(--hdu-muted); }

/* Választógombok: kártyák egy sorban, mint a pénztár szállítási módjai */
.hdu-form .hdu-radios { display: flex; flex-wrap: wrap; gap: 8px; }
.hdu-form .hdu-radios > legend { padding-bottom: 6px; float: left; width: 100%; }
.hdu-form .hdu-radios .hdu-check {
    flex: 1 1 160px; min-height: 52px; padding: 0 14px; align-items: center; font-weight: 600;
    border: 2px solid var(--hdu-line); border-radius: 8px; background: var(--hdu-card); transition: border-color .15s, background-color .15s;
}
.hdu-form .hdu-radios .hdu-check:hover { border-color: #7d59b6; }
.hdu-form .hdu-radios .hdu-check:has(input:checked) { border-color: var(--hdu-lila); background: var(--hdu-krem); }

/* Jelölőnégyzet és választógomb */
.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 var(--hdu-field-border); background: var(--hdu-card); display: grid; place-content: center;
}
.hdu-form .hdu-field-checkbox .hdu-check input { margin-top: 1px; border-radius: 4px; }
.hdu-form .hdu-check input[type="radio"] { width: 20px; height: 20px; border-radius: 50%; }
.hdu-form .hdu-check input:checked { border-color: var(--hdu-lila); }
.hdu-form .hdu-check input[type="checkbox"]:checked {
    background: var(--hdu-lila) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}
.hdu-form .hdu-check input[type="radio"]:checked::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--hdu-lila); }
.hdu-form .hdu-check input:focus-visible { outline: 2px solid var(--hdu-lila); outline-offset: 2px; }
.hdu-form .hdu-check a { color: var(--hdu-lila); text-underline-offset: 3px; }

/* Fájlfeltöltés: a fájl mező átlátszóan lefedi a dobozt (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 var(--hdu-lila); border-radius: 8px;
    background: var(--hdu-krem); transition: background-color .15s, border-color .15s;
}
.hdu-form .hdu-drop:hover, .hdu-form .hdu-drop.hdu-drag { background: #eef6ed; }
.hdu-form .hdu-drop:focus-within { outline: 2px solid var(--hdu-lila); 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-lila); }
.hdu-form .hdu-drop-text b { color: var(--hdu-lila); 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: 4px; background: var(--hdu-card); font-size: 12px; color: var(--hdu-soft); }

/* 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: 8px; font-size: 14px; line-height: 20px;
    color: var(--hdu-error); background: #fdf1f2; border: 1px solid var(--hdu-error);
}
.hdu-form .hdu-message:empty { display: none; }

/* Küldés: a bolt fő gombja */
.hdu-form .hdu-submit {
    display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 24px; padding: 0 32px;
    font-family: 'HDU Poppins', 'Poppins', sans-serif; font-size: 16px; font-weight: 600; line-height: 1.2;
    color: #ffffff; background: var(--hdu-gomb); border: 0; border-radius: 4px; cursor: pointer; transition: background-color .3s ease;
}
.hdu-form .hdu-submit:hover { background: var(--hdu-gomb-hover); color: #ffffff; }
.hdu-form .hdu-submit:focus { color: #ffffff; }
.hdu-form .hdu-submit:focus-visible { outline: 2px solid var(--hdu-lila); 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-menta); color: var(--hdu-lila); 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: 'Barlow Condensed', var(--hdu-display); font-size: 34px; font-weight: 800; font-style: italic; line-height: 1.1; text-transform: uppercase; color: var(--hdu-lila); }

@media (max-width: 640px) {
    .hdu-form { padding: 16px; }
    .hdu-form .hdu-grid { grid-template-columns: 1fr; gap: 12px; }
    .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 .hdu-check { flex: 1 1 130px; }
}
@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; }
}
