.modal {
    display: none;
    position: fixed;
    align-items: flex-start;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.4);
}


.modal-littlestar {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-apollo {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}
.modal-citizen {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-tele {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}
.modal-content {
    background-color: #fff;
    margin: 3% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

    #custom-form button[type="submit"] {
        display: block; /* Ensures the button takes full width and respects centering */
        margin: 20px auto 0; /* Centers the button horizontally */
        background-color: #0066b2;
        color: white;
        border-radius: 25px;
        border: none;
        cursor: pointer;
        font-size: 16px;
        padding: 10px 20px;
    }

  #custom-form label,
    #custom-form input,
    #custom-form textarea,
    #custom-form .inline-radio,
    #custom-form #hospital-options {
        margin-bottom: 15px; /* Adds consistent spacing between fields */
        
    }
    
    
    @media (max-width: 768px) {
    .modal-content {
        width: 90%;
        max-width: 100%;
        margin: 10% auto; /* Adjust margin to ensure proper centering */
        padding: 15px;
    }

    .close {
        top: 5px;
        right: 10px;
        font-size: 18px;
    }

    #custom-form button[type="submit"] {
        width: 100%; /* Full width on smaller screens */
        display: block;
        margin: 20px auto 0; /* Centers the button horizontally */
        padding: 12px;
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .modal-littlestar {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    right:20;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}
  
}



.success-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease-in-out;
}

.checkmark-circle {
    background-color: #0066b2;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.checkmark {
    color: white;
    font-size: 30px;
}

.success-button {
    margin-top: 20px;
    background-color: #0066b2;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
