/* Styles for Schedule Page */
#mainContent {
    margin: auto;
    padding-top: 2%;
    padding-bottom: 2%;
    width: 80%;
    background-color: #ffffff;
}
#formContainer{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 20px;
    margin: auto;
    width: 80%;
    padding: 50px;
    background-color:rgb(100, 100, 100);
    color: white;
    border: 10px solid #E60B2B;
    border-radius: 10px;
}

#formTop {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 15px;
    justify-content: space-between;
}

#formTop .form-group {
    flex: 1 1 calc(50% - 10px);
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 200px;
    text-align: center;
    margin-bottom: 50px;
}

#formBottom .form-group {
    width: 75%;
}

#formBottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

input, select, textarea {
    font-size: large;
    width: 70%;
    padding: 8px;
    margin: auto;
    box-sizing: border-box;
    border: 1px solid #E60B2B;
    border-radius: 4px;
}

label{
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: larger;
}

input[type="submit"] {
    background-color: #E60B2B;
    color: white;
    font-weight: bold;
    font-size: large;
    border: none;
    width: 20vw;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

input[type="submit"]:hover {
    background-color: #0030AC;
    color: white;
    transition: all 0.2s ease-in;
}

.errText{
    font-weight: bold;
    margin-top: 10px;
}

hr{
    margin: auto;
    border-top: none;
    border-bottom: 2px white solid;
    margin-bottom: 10px;
    width: 65%;
}

.autocomplete-container {
    max-width: 500px;
    margin-top: 10px;
}  


/* Address */

.form-group label {
    display: block;
    text-align: center; 
    margin-bottom: 6px;
    font-weight: bold;
}
  
#autocomplete-label {
    display: block;
    text-align: center;
    margin-bottom: 6px;
    font-weight: bold;
}
  
.addressInput {
    display: block;
    margin: 0 auto; /* centers the input */
    width: 100%;
    max-width: 500px;
    padding: 0.75rem 1rem;
    border: 1px solid #e31b23;
    border-radius: 5px;
    font-size: 1rem;
}

/* Media Queries */


@media (max-width: 1100px) {
    #mainContent{
        width: 95%;
    }
    input[type="submit"] {
        width: auto;
    }
}

@media (max-width: 700px) {
    #mainContent{
        width: 100vw;
    }
    #formContainer{
        width: 100%;
        padding-left: 0px;
        padding-right: 0px;
        border: none;
        border-radius: 0px;
    }
    input, select, textarea {
        padding-left: 0px;
        padding-right: 0px;
        margin: auto;
        box-sizing: border-box;
    }
    textarea{
        width: 100%;
    }
    #formTop {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 15px;
        justify-content: space-between;
    }
}

@media (max-width: 500px){
    #formTop {
        display: flex;
        flex-wrap: wrap;
        gap: 0px;
        justify-content: space-between;
    }
    input, select{
        width: 85%;
    }
}

@media (max-width: 700px) {
    .addressInput {
        width: 85% !important;
        max-width: 100%;
        padding: 10px;
    }

    #formContainer .form-group label[for="address"] {
        text-align: center;
        font-size: large;
        display: block;
    }

    #formContainer .form-group {
        align-items: center;
    }
}
