* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;
    overflow-y: hidden;
    background-color: #f0f0f0;
    overflow-x: hidden;
}

.container {
    text-align: center;
    overflow-y: auto;
    height: auto;
    min-height: 100dvh; 
    padding: 5vh 0;
    padding-bottom: 80px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    overflow-x: hidden;
}

#loginForm, #mainContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

button {
    padding: 8px 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

.checkBtn {
    width: 100%;
    max-width: 100%;
    height: 75px;
}

#loginForm {
    text-align: left;
}

#agencyLogo {
    width: 80%;
    max-width: 100px;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .container {
        width: 100%;
    }
    
    #loginForm, #mainContent {
        padding: 10px;
    }
    
    
    .form-control, select, .checkBtn, .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .row {
        flex-direction: column;
        align-items: center;
    }
    
    .col-4 {
        width: 100%;
    }

    #modal .modal-content {
        max-height: 100%;
        padding: 20px;
        overflow-y: auto;
    }
    
    #modal .form-check, #modal .form-control, #modal button {
        width: 100%;
    }
    
    #modal .col-4, #modal .col-6 {
        width: 48%;
        display: inline-block;
    }
}

#modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100vh + env(safe-area-inset-bottom));
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    height: auto;
    max-height: 90dvh;
    overflow-y: auto;
    padding-bottom: 80px; 
}

.hidden {
    display: none !important;
}

.form-check {
    text-align: left;
    font-size: 0.9rem;
    min-height: 1rem;
}