.fiok-modal {
    position: fixed;
    z-index: 1500;
    inset: 0;
    display: none;
    place-items: center;
    padding: 24px;
}

.fiok-modal.is-open {
    display: grid;
}

.fiok-modal__hatter {
    position: absolute;
    inset: 0;
    background: rgba(8, 24, 45, 0.72);
    backdrop-filter: blur(8px);
}

.fiok-kartya {
    position: relative;
    width: min(760px, 100%);
    max-height: min(660px, calc(100vh - 40px));
    display: grid;
    grid-template-columns: minmax(190px, 0.7fr) minmax(380px, 1.3fr);
    overflow: hidden auto;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 26px;
    box-shadow: 0 36px 110px rgba(0, 0, 0, 0.38);
}

.fiok-kartya__bezaras {
    position: absolute;
    z-index: 2;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    padding: 0 0 3px;
    color: var(--navy);
    background: #f4f0e8;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.55rem;
    line-height: 1;
}

.fiok-kartya__bezaras:hover {
    background: #e9e1d4;
}

.fiok-kartya__marka {
    position: relative;
    min-height: 500px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(155deg, rgba(13, 43, 88, 0.96), rgba(27, 74, 119, 0.9)), url("img/banner_01.jpg") center / cover;
}

.fiok-kartya__marka::before,
.fiok-kartya__marka::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(242, 193, 90, 0.34);
    transform: rotate(18deg);
}

.fiok-kartya__marka::before {
    top: -55px;
    left: -65px;
}

.fiok-kartya__marka::after {
    right: -75px;
    bottom: -70px;
}

.fiok-kartya__jel {
    width: 92px;
    height: 108px;
    display: grid;
    place-items: center;
    color: var(--gold-soft);
    border: 3px solid var(--gold-soft);
    outline: 1px dashed rgba(255, 255, 255, 0.55);
    outline-offset: -10px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
    font-family: Georgia, serif;
    font-size: 1.8rem;
    font-weight: 700;
    transform: rotate(-4deg);
}

.fiok-kartya__tartalom {
    min-height: 500px;
    padding: 34px 40px 30px;
}

.fiok-kartya__fejlec {
    margin-bottom: 19px;
}

.fiok-kartya__fejlec h2 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, serif;
    font-size: clamp(1.75rem, 3vw, 2.2rem);
    line-height: 1.08;
}

.fiok-kartya__fejlec > p:last-child {
    margin: 10px 0 0;
    color: var(--muted);
}

.fiok-nezet[hidden] {
    display: none;
}

.fiok-form {
    display: grid;
    gap: 13px;
}

.fiok-mezo {
    display: grid;
    gap: 7px;
    color: #36434c;
    font-size: 0.92rem;
    font-weight: 700;
}

.fiok-mezo > input,
.fiok-jelszo {
    width: 100%;
    min-height: 46px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #cfc8bc;
    border-radius: 11px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.fiok-mezo > input {
    padding: 12px 14px;
}

.fiok-mezo > input:focus,
.fiok-jelszo:focus-within {
    border-color: var(--navy-soft);
    box-shadow: 0 0 0 4px rgba(36, 76, 127, 0.12);
    outline: 0;
}

.fiok-jelszo {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
}

.fiok-jelszo input {
    min-width: 0;
    padding: 12px 5px 12px 14px;
    border: 0;
    outline: 0;
}

.fiok-jelszo button {
    margin-right: 7px;
    padding: 7px 9px;
    color: var(--navy-soft);
    background: transparent;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
}

.fiok-form__sor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.fiok-jelolonegyzet {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.87rem;
}

.fiok-jelolonegyzet input {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    margin: 2px 0 0;
    accent-color: var(--navy);
}

.fiok-jelolonegyzet--feltetel a {
    color: var(--navy);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fiok-link,
.fiok-valto button,
.fiok-vissza {
    padding: 0;
    color: var(--navy-soft);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-weight: 750;
}

.fiok-link:hover,
.fiok-valto button:hover,
.fiok-vissza:hover {
    text-decoration: underline;
}

.fiok-vissza {
    margin: -8px 0 20px;
}

.fiok-link--kozep {
    justify-self: center;
}

.fiok-form__kuldes {
    width: 100%;
    min-height: 46px;
    margin-top: 2px;
}

.fiok-form__hiba {
    margin: -5px 0 0;
    padding: 9px 11px;
    color: var(--red);
    background: #fff3f4;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 650;
}

.fiok-valto {
    margin: 17px 0 0;
    color: var(--muted);
    text-align: center;
    font-size: 0.91rem;
}

.fiok-segedszoveg,
.fiok-kod-uzenet {
    margin: 0;
    color: var(--muted);
    font-size: 0.91rem;
}

.fiok-kod-uzenet {
    text-align: center;
}

.fiok-kod-uzenet strong {
    color: var(--ink);
}

.fiok-email-jel,
.fiok-kesz__jel {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    color: var(--navy);
    background: #f4ead1;
    border-radius: 50%;
    font-size: 1.7rem;
}

.fiok-mezo--kod {
    justify-items: center;
}

.fiok-mezo--kod input {
    max-width: 260px;
    padding-left: 28px;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.48em;
    text-align: center;
}

.fiok-kesz {
    padding-top: 30px;
    text-align: center;
}

.fiok-kesz__jel {
    color: #fff;
    background: var(--green);
}

.fiok-kesz h3 {
    margin: 0 0 8px;
    color: var(--navy);
    font-family: Georgia, serif;
    font-size: 1.75rem;
}

.fiok-kesz p {
    margin: 0 0 24px;
    color: var(--muted);
}

@media (max-width: 760px) {
    .fiok-modal {
        align-items: end;
        padding: 12px;
    }

    .fiok-kartya {
        max-height: calc(100vh - 24px);
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

    .fiok-kartya__marka {
        display: none;
    }

    .fiok-kartya__tartalom {
        min-height: 0;
        padding: 38px 25px 28px;
    }

    .fiok-kartya__fejlec {
        padding-right: 32px;
    }
}

@media (max-width: 430px) {
    .fiok-modal {
        padding: 0;
    }

    .fiok-kartya {
        max-height: 100vh;
        min-height: 100vh;
        border-radius: 0;
    }

    .fiok-kartya__tartalom {
        padding: 42px 20px 28px;
    }

    .fiok-form__sor {
        align-items: flex-start;
        flex-direction: column;
    }
}
