/*
* FORM CSS
* CSS for simple single question linear flow form using HTMX
* Relevant HTML will be in steps or index
* Author: Evolve Digital
* Author URI: https://evolvetodigital.ca
 */

body{
    font-family: Inter, Arial;
    font-weight: 200;
    font-size: 20px;
    background: rgb(111,111,111);
    background: linear-gradient(139deg, rgb(239, 239, 239) 0%, rgb(227, 223, 223) 100%);
    background-attachment: fixed;
    color:#333;
}

form{
    display: block;
    padding:20px;
    width: 90%;
    max-width: 700px;
    color:#333;
}

form input[type="text"]{
    appearance: none;
}

form input{
    border-radius: 0px;
    border-top:none;
    border-left: none;
    border-right:none;
    -webkit-appearance: none;
    display: block;
    width:100%;
    font-size: 20px;
    border:none;
    background:transparent;
    border-bottom:2px solid #790101;
    padding:5px 2px;
    color:#333;
    outline:0;
    transition: all 0.3s linear;
    margin-top:10px;
    margin-bottom:20px;
}

form input[type="radio"]{
    appearance: radio;
    -webkit-appearance: radio;
    display:inline;
    width:20px;
    border:none;
}

form input::placeholder{
    color:#aaa;
}
form input:focus::placeholder{
    color:#eee;
}
form input:focus{
    outline:0;
}
form input:hover{
    border-bottom:2px solid #333;
}

form textarea{
    display: block;
    width:100%;
    font-size: 15px;
    border:none;
    background:transparent;
    border-bottom:2px solid #790101;
    padding:2px 2px;
    color:#333;
    outline:0;
    transition: all 0.3s linear;
    margin-top:10px;
    margin-bottom:20px;
}

form textarea::placeholder{
    color:#aaa;
}
form textarea:focus::placeholder{
    color:#bbb;
}
form textarea:focus{
    outline:0;
}
form textarea:hover{
    border-bottom:2px solid #333;
}

form select{
    display: block;
    width:100%;
    font-size: 20px;
    border:none;
    background:transparent;
    border-bottom:2px solid #790101;
    padding:5px 2px;
    color:#333;
    outline:0;
    transition: all 0.3s linear;
    margin-top:10px;
    margin-bottom:20px;
}
form select::placeholder{
    color:#aaa;
}
form select:focus::placeholder{
    color:#eee;
}
form select:focus{
    outline:0;
}
form select:hover{
    border-bottom:2px solid #333;
}

form input[type="checkbox"] {
    display: inline-block;
    height:20px;
    width:20px;
}
form hr{
    background:#333;
    height:1px;
    border:none;
    margin-top:10px;
    margin-bottom:10px;
}
body main.formContainer{
    display: block;
    align-items: center;
    justify-content: center;
    max-width: 700px;
    width:100%;
    margin:auto;
    height:98vh;
}

div.formRow{
    display:flex;
    align-items: center;
    justify-content: space-evenly;
}

div.formRow div.formCol{
    display: block;
    margin:2px;
    padding:5px;
    width:90%;
}

form{
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn{
    0%{
        opacity: 0;
        transform:translateY(50px);
    }
    100%{
        opacity: 1;
        transform:translateY(0px);

    }
}

.nextBtn{
    appearance: none;
    display: block;
    margin:auto;
    cursor: pointer;
    font-weight: 400;
    font-size: 20px;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: #c02425;
    color:white;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    line-height: 1.5;
    border-radius: 0;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.nextBtn:hover{
    background: white;
    color: #c02425;
}

.nextBtn::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 1px solid #aaaaaa;
    border-top: 1px solid #aaaaaa;
    margin-right: 10px;
    transform: rotate(135deg) translate(-10px, -5px);
}

.prevBtn::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    border-left: 1px solid #aaaaaa;
    border-bottom: 1px solid #aaaaaa;
    margin-left: 6px;
    transform: rotate(45deg) translate(-4px, 4px);
}
.prevBtn{

    appearance: none;
    border:none;
    display: none;
    background:transparent;
    color:#aaaaaa;
    font-size: 12px;
    margin:auto;
    margin-top:10px;
    cursor: pointer;
    text-decoration: underline;
}

.load{
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    animation: load 2s linear infinite;
    top: 0px;
    right: 0px;
    left: 0px;
    bottom: 0px;
    z-index: 99;
    background: rgb(133 67 67 / 12%);
    color: #333;
    font-weight: 600;
    backdrop-filter: blur(5px);
    text-shadow: 2px 2px 5px black;
}
.load.htmx-request{
    display: flex;
}

@keyframes load {
    0%{
        backdrop-filter:blur(0px);
    }
    50%{
        backdrop-filter:blur(5px);
    }
    100%{
        backdrop-filter:blur(0px);
    }
}

.alert{
    position: absolute;
    top:10px;
    left:20vw;
    right:20vw;
    z-index:1;
    background: #af6161;
    color:white;
    display: block;
    padding:10px;
    padding-bottom: 12px;
    border-radius: 5px;
    text-align: center;

}

@media screen and (max-width:500px){
    body{
        font-size: 12px;
    }
    form input{
        font-size: 13px;
    }
    .nextBtn{
        font-size: 14px;
    }

}

.restart{
    position: fixed;
    bottom:10px;
    right:10px;
    text-align: center;
    background:white;
    padding:10px;
    border-radius: 5px;
    color:#333;
    font-weight: 600;
    text-decoration: none;
}
.restart a{
    color:#333;
    font-size: 14px;
    text-decoration: none;
    font-weight: 600;
}

.radioInput{
    display:flex;
    border-bottom:1px solid #333;
    padding-bottom: 5px;
    padding-top:5px;
}
.radioInput input[type="radio"]{
    width:30px;
    margin-right:10px;
    cursor:pointer;
}
.radioInput label{
    display:flex;
    align-items: center;
    justify-content: space-evenly;
    cursor:pointer;
    font-size:15px;
}
.radioInput label img{
    margin-right:10px;
    width:50px;
}

.savedDoors{
    padding:20px;
    background-color: white;
    border-radius: 5px;
    overflow-x:scroll;
}

.savedDoors table{
    width:100%;
    font-size: 11px;
}

.savedDoors th{
    text-align: left;
}