/* JAVÍTOTT */
.mr-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Ez engedélyezi a görgetést, ha a tartalom kilóg */
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: flex-start; /* A tartalom a tetejére igazodik */
    justify-content: center;
    padding: 40px 0; /* Vertikális padding, hogy legyen helye */
    box-sizing: border-box; /* Biztosítja, hogy a padding ne növelje a magasságot */
}

/* A modal doboz */
.mr-modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* A bezárás gomb */
.mr-close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.mr-close-button:hover,
.mr-close-button:focus {
    color: black;
    text-decoration: none;
}

/* Formázás a form-on belül */
#mr-reg-form {
    display: flex;
    flex-direction: column;
}

#mr-reg-form label {
    margin-top: 15px;
    font-weight: bold;
}

#mr-reg-form input[type="text"],
#mr-reg-form input[type="tel"] {
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

#mr-reg-form button {
    margin-top: 20px;
    padding: 12px 20px;
    background-color: #0A3462; /* Az eredeti plugin fő színe */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#mr-reg-form button:hover {
    background-color: #0C4A88; /* Az eredeti plugin hover színe */
}

/* Visszajelző üzenetek stílusa */
#mr-form-response {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    display: none; /* Alapból rejtett */
}
#mr-form-response.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}
#mr-form-response.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}