.modal {
    display: none; /* Default hide */
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.7); /* dark transparent */
}

/* Modal Content Box */
.modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 30px 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.4s ease-in-out;
}

/* Fade animation */
@keyframes fadeIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Form Title */
.modal-content h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 28px;
    text-align: center;
}

/* User Input Boxes */


.user-box label {
    display: block;
    color: #555;
    margin-bottom: 5px;
    font-weight: 500;
}

.user_box input {
    width: 100%;
    height: 50px;
    text-align: center;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 12px;
    outline: none;
    transition: 0.3s;
}

.user_box input:focus {
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* Buttons */
.button {
    width: 48%;
    padding: 10px;
    margin-top: 10px;
    background-color: #007BFF;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #0056b3;
}

/* Side by side buttons */
form {
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Close icon (optional) */
.modal-content .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    color: #aaa;
    cursor: pointer;
}

.modal-content .close-btn:hover {
    color: #333;
}