
h1, h2, h3, h4, h5, h6, p, button {
  margin: 0 !important;
  padding: 0 !important;
}
.form-container {
    font-size: 16px;
    width: 100%;
    margin: 20px auto;
    background-color: white;
    min-height: 80vh;
    align-content: center;
}
.shell{ /*pins progress bar and headers to top and buttons to the bottom*/
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    min-height: 80vh;
    background-color: white;
    align-content: space-between;
}
.page-header, 
.page-content,
.page-footer{
    width: 100%;
}
progress {
    width: 100%;
    margin-bottom: 3vh;
    height: 10px;
    border-radius: 5px; /* necessary*/
}
progress::-webkit-progress-bar {
    background-color: #BBBDBF;               
    border-radius: 5px;                
}                               
progress::-webkit-progress-value {            
    background-color: #34C6F4;           
    border-radius: 5px;            
}          
.centered{
    text-align: center;
}
.indented{ /*customized on some pages*/
    width: 70%;
    margin: auto;
}
/* Form input fields */
.form-element {
    margin-bottom: 15px;
}
.form-element label { 
    font-weight: normal;
}
.form-element input,
.form-element select,
.form-element textarea {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
/*fields that stack on mobile and go side-by-side on computer*/
.side-or-bottom{
    display: flex;
    align-items: last baseline; /* so they don't adjust upward when an error message appears */
    gap: 1.5rem;
}

.side-or-bottom .form-element {
    flex: 1 1 25%; /* Adjust width as needed */
    margin-bottom: 1rem;
}
.side-or-bottom .form-element label {
    width: 100%;
}
.side-or-bottom .form-element input,
.side-or-bottom .form-element select {
    width: 100%;
}
.required{
    color: red;
    margin: 3px;
}
.invalid, 
.form-element .invalid,
.side-or-bottom .form-element .invalid {
    border: 2px solid red;
}
.error-message {
    display: none;
    color: red;
}
.orderHeader{
    font-size: xx-large;
    text-align: center;
}
.subheader{
    font-size: x-large;
    text-align: center;
    padding: 2vh;
}
.link{
    color: rgb(63, 210, 247);
    font-weight: bold;
    cursor: pointer;
}
/* Modal styles */
.outside-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}
.modal-window {
    position: fixed;
    z-index: 1000;
    background-color: #fefefe;
    border: 1px solid #888;
    border-radius: 10px;
    padding: 5vh;
    max-width: 80vw;
    max-height: 80vh;
    text-align: center;
    overflow: hidden;
    cursor: move;
    user-select: none;
}
.modal-content img {
    max-width: 70vw;
    max-height: 70vh;
    width: auto;
    height: auto;
    flex:auto;
}
.close {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}
/* tooltip styles not currently used - originally for hovering over disabled submit button
.tooltip-container {
    position: relative;
    display: inline-block;
}
.tooltip-container .tooltip-text {
    visibility: hidden;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    right: 0;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
} 
.tooltip-container:hover button:disabled + .tooltip-text {
    visibility: visible;
    opacity: 1;
}*/
/* Overlay spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
}
.spinner {
    width: 2em;
    height: 2em;
    border: 4px solid #ccc;
    border-top: 4px solid #555;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
.next-button {
    margin-top: 0.5rem;
    margin-buttom: 1rem; 
    display: inline-block;
    padding: 8px 16px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    background-color: rgb(52, 198, 244);
    color: white;
    border: none;
    border-radius: 30px 30px 30px 30px;
    cursor: pointer;
    width: 130px;
    height: 50px;
}
.back-button {
    display: inline-block;
    padding: 8px 16px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    background-color: lightgray;
    color: black;
    border: none;
    border-radius: 30px 30px 30px 30px;
    cursor: pointer;
    width: 130px;
    height: 50px;
}
button:disabled {
    background-color: #cccccc !important;
    color: #666666;
    cursor: not-allowed;
}
.multiselect-checkbox{
    display: flex;
    align-items: flex-start;    
    line-height: 1em;   
    margin-top: .5em; 
    margin-bottom: .5em;
}
.multiselect-checkbox input{
    width: 1rem;
    height: 1rem;
    margin-right: 3px;
    box-sizing: border-box;
    flex-shrink: 0;
}
@keyframes spin {/*spinner*/
    0% {
      transform: rotate(0deg);
    }

    100% {
      transform: rotate(360deg);
    }
}
@media(min-width: 600px){/*computer*/
    .page{
        display: block;
    }
    .buttons{
        display: flex;
        width: 100%;
        justify-content: space-between;
        margin-top: 15px;
    }
    .mobile-progress-bar{
        display: none;
    }
    /*display is block*/
    .side-or-bottom{
        max-width: 100%;       
    }
    /* Submit button */
    .next-button:hover {
        background-color: #005fb2;
    }
    .form-container {
        padding: 1.5rem;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        border-radius: 5px;
        box-sizing: border-box;
    }
}
@media(max-width: 600px){/*mobile*/
    .form-container{
        padding: 0px;
    }
    .page{
      min-height: fit-content;
      height: 100vh;
      display: none;
      background-color: white;
    }   
    .buttons{
        display: flex;
        width: 100%;
        position:fixed;
        bottom: 0px;
        left: 0px;
        right: 0px;
        padding: 10px;
        background-color: white;
        justify-content: space-between;
        box-sizing: border-box;
    }
    .computer-progress-bar{
        display: none;
    }
    /*stack on mobile*/
    .side-or-bottom{
        display:block;
    }
    .orderHeader{
        display:flex;
        flex:1;
        justify-content: center;
        font-weight: bold; 
    }
    .multiselect-checkbox {
        line-height: 1.5rem;
    }
    .multiselect-checkbox input {
        width: 1.5rem;
        height: 1.5rem;
    }
    .indented{
        width: 100%;
    }
} 











