:root {
    --light-gray: rgb(237, 237, 237);
    --dark-gray: rgb(111, 111, 111);
    font-size: 80%;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Manrope";
}

main {
    min-height: 100vh;
    background-color: var(--light-gray);
} 

.form-container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.covid-form {
    --form-width: 700px;
    width: var(--form-width);
    background-color: white;
    display: flex;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 0.2rem;
}

.covid-form .form-page {
    height: 100%;
    width: var(--form-width);
    display: block;
    flex-shrink: 0;
    padding: 2rem;
    margin: 0;
    border: none;
    box-sizing: border-box;
} 


.covid-form .next-button {
    float: right;
}

.covid-form .back-button {
    float: left;
}

.covid-form fieldset {
    height: 100%;
}



/*Form Input*/

.input-wrapper {
    display: flex;
    flex-direction: column-reverse;
    background-color: var(--light-gray);
    position: relative;
}

.input-wrapper.text-input label, .input-wrapper.select-input label {
    display: none;
    position: absolute;
    top: 0.9rem;
    left: 1.2rem;
    font-size: 0.8rem;
    color: var(--dark-gray);
}

.input-wrapper.select-input label {
    display: initial;
}

.input-wrapper > input:focus ~ label, .input-wrapper > input.filled ~ label, .input-wrapper > textarea:focus ~ label, .input-wrapper > textarea.filled ~ label {
    display: initial;
}

.input-wrapper.text-input input:focus, .input-wrapper input.filled, .input-wrapper.select-input select, .input-wrapper.text-input textarea:focus, .input-wrapper.text-input textarea.filled {
    padding: 2.1rem 1.2rem .6rem;
    border-color: black;
}

.input-wrapper.text-input input:focus::-webkit-input-placeholder {
    color:transparent;
}
 
.input-wrapper.text-input input:focus:-moz-placeholder { /* Firefox 18- */
    color:transparent; 
}
 
.input-wrapper.text-input input:focus::-moz-placeholder {  /* Firefox 19+ */
    color:transparent; 
}
 
.input-wrapper.text-input input:focus:-ms-input-placeholder {  
    color:transparent;
}
 


.input-wrapper input, .input-wrapper.text-input textarea {
    background-color: var(--light-gray);
    border: none;
    font-size: 1rem;
    padding: 1.35rem 1.2rem;
    font-family: "Manrope";
    color: black;
}

.input-wrapper input:not(:valid) {
    color: red;
}

.input-wrapper.select-input select {
    border: none;
    appearance: none;
}

.input-wrapper.select-input::before {
    content: "^";
    position: absolute;
    right: 1.2rem;
    font-size: 2.5rem;
    pointer-events: none;
    line-height: 4.5rem;
    rotate: 180deg;
}


input[type="number"] {
    -moz-appearance: textfield;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

textarea {
    resize: none;
}