/* Háttér és középre igazítás */
.county-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(22, 36, 32, 0.62);
    backdrop-filter: blur(3px);
}

/* Modal doboz */
.county-modal {
    position: relative;
    width: 100%;
    max-width: 540px;
    padding: 32px 30px 24px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
    font-family: inherit;
    color: #234f43;
    animation: countyModalEnter 0.25s ease-out;
    box-sizing: border-box;
}

.county-modal *,
.county-modal *::before,
.county-modal *::after {
    box-sizing: border-box;
}

/* Bezáró gomb */
.county-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #84918c;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.county-modal-close:hover {
    color: #0D4087;
}

/* Mancs ikon */
.county-modal-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    color: #F48221;
}

.county-modal-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Címsor */
.county-modal h2 {
    margin: 0 0 16px;
    color: #0D4087;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

/* Leírás */
.county-modal-description {
    margin: 0 auto 26px;
    max-width: 420px;
    color: #61716b;
    font-size: 15px;
    line-height: 1.65;
    text-align: center;
}

/* Űrlap */
.county-modal form label {
    display: block;
    margin-bottom: 8px;
    color: #0D4087;
    font-size: 14px;
    font-weight: 700;
}

.county-modal form select {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid #cbd7d2;
    border-radius: 8px;
    background: #fff;
    color: #465b53;
    font-family: inherit;
    font-size: 15px;
    outline: none;
}

.county-modal form select:focus {
    border-color: #26765c;
    box-shadow: 0 0 0 3px rgba(38, 118, 92, 0.12);
}

/* Mentés gomb */
.county-modal-submit {
    display: block;
    width: 100%;
    min-height: 50px;
    margin-top: 26px;
    padding: 12px 18px;
    border: 0;
    border-radius: 28px;
    background: #F48221;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.county-modal-submit:hover {
    background: #0D4087;
}

.county-modal-submit:active {
    transform: scale(0.99);
}

/* Információs sáv */
.county-modal-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
    padding: 16px;
    border-radius: 9px;
    background: #edf6f2;
    color: #315d4f;
    font-size: 13px;
    line-height: 1.5;
}

.county-note-info {
    display: flex;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 2px solid #36745e;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

/* Animáció */
@keyframes countyModalEnter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobil */
@media (max-width: 576px) {
    .county-modal-overlay {
        padding: 14px;
    }

    .county-modal {
        padding: 28px 20px 20px;
        border-radius: 12px;
    }

    .county-modal h2 {
        font-size: 22px;
    }

    .county-modal-description {
        font-size: 14px;
    }

    .county-modal-note {
        padding: 12px;
        font-size: 12px;
    }
}