
/* Styles for the modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    max-width: 400px; /* Slightly smaller modal */
}

/* Center the title */
.modal h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

/* Add space between input boxes */
.input-box {
    margin-bottom: 25px;
    position: relative; /* Add this for relative positioning */
}



       /* Additional styles for checkbox and label alignment */
       .input-box.check-design {
        margin-bottom: 20px;
    }

 
.input-box input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s;
    font-size: 14px;
}

.input-box input:focus {
    border-color: #007bff;
}

.input-box .placeholder {
    position: absolute;
    top: 50%; /* Position the placeholder in the middle of the input box */
    transform: translateY(-50%); /* Adjust for vertical centering */
    left: 8px;
    pointer-events: none;
    font-size: 12px;
    color: #888;
    transition: all 0.2s ease-in-out;
}

.input-box input:focus + .placeholder,
.input-box input:valid + .placeholder {
    top: -18px;
    left: 8px;
    font-size: 10px;
    color: #007bff;
}

/* Button style */
button[type="submit"] {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 14px;
}

button[type="submit"]:hover {
    background-color: #2e84df;
}

@media screen and (max-width: 600px) {
    .modal-content {
        margin: auto; /* Add 'auto' to horizontally center the modal */
        margin-top: 50px;
        padding: 15px;
        max-width: 90%;
    }
}
