/* ===== Google Font Import - Prompt,Sarabun ===== */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;500;600;700&family=Sarabun:wght@100;200;300;400;500;600;700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(226, 226, 226);
}
.container{
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 600px;
    border-radius: 8px;
    padding: 20px;
    margin: 0 15px;
    background-color: #fff;
    /*box-shadow: 0 25px 10px rgba(0, 0, 0, 0.1);*/
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);

}
.container header{
    position: relative;
    font-size: 20px;
    font-weight: 600;
    font-family: 'Prompt', sans-serif;
    color: #333;   
}
.container header::before{
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 3px;
    width: 100%;
    border-radius: 8px;
    background-color: #4070f4;
}

.container header .close-btn {
    position: absolute;
    top: 1px;
    right: 1px;
    color: #333;
    cursor: pointer;
}

.container header .close-btn:hover{
    background-color: #aaa;
    background-color: #f2f2f2;

}
.container form{
    position: relative;
    margin-top: 10px;
    min-height: 500px;
    background-color: #fff;
    overflow: hidden;
}
.container form .form{
    position: absolute;
    background-color: #fff;
    transition: 0.3s ease;
}
.container form a{
    font-size: 18px;
    font-weight: 300;
    margin: 3px 0;
    color: #333;
    font-family: 'Prompt', sans-serif;
}
.container form h{
    font-size: 18px;
    font-weight: 300;
    margin: 3px 0;
    font-family: 'Prompt', sans-serif;
    color: #c30000; 
    background: #fff;
}


.container form .title{
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 600;
    margin: 3px 0;
    color: #333;
    font-family: 'Prompt', sans-serif;
}
.container form .fields{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    font-family: 'Sarabun', sans-serif;
}
form .fields .input-field{
    display: flex;
    width: calc(100% / 2 - 5px);
    flex-direction: column;
    margin: 4px 0;
}
.input-field label{
    font-size: 16px;
    font-weight: 400;
    color: #2e2e2e;    
}
.input-field a{
    position: absolute;
    top: 508px;
    transform: translateY(-50%);
    color: #333;
    transition: all 0.1s linear;
    font-size: 14px;
    font-weight: 300;
}
.input-field input, select{
    outline: none;
    font-size: 16px;
    font-weight: 300;
    font-family: 'Sarabun', sans-serif;
    color: #333;
    border-radius: 6px;
    border: 1px solid #aaa;
    padding: 0px 15px;
    height: 42px;
    margin: 8px 0;
}

.input-field input:focus {
    border: 1.2px solid #0044ff;
}

.input-field input :focus,
.input-field select:focus{
    box-shadow: 0 3px 6px rgba(0,0,0,0.13);
    border: 3px solid #0000ff;
}
.input-field select,
.input-field input[type="date"]{
    color: #707070;
}
.input-field input[type="date"]:valid{
    color: #333;
}


/*---------------------------------------*/
form .buttons{
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    /*padding: 0px 20px;*/
    /*border: 2px solid #0044ff;*/
}
form .btn{
    height: 40px;
    width: calc(100% / 3 - 15px);
    /*width: 150px;*/
    margin-top: 0px;
    cursor: pointer;
    border-radius: 30px;
    background: transparent;
    border: 2px solid #4AD489;
    font-size: 18px;
    font-weight: 500;
    font-family: 'poppins', sans-serif;
  }
  form .btn:hover{
    background: #4AD489;
    color: #fff;
    transition: 0.5s;
  }
  form .reset{
    border: 2px solid #d44a4a;
  }
  form .reset:hover{
    background: #d44a4a;
    transition: 0.5s;
  }
  form .cancel{
    border: 2px solid #1500ff;
  }
  form .cancel:hover{
    background: #1500ff;
    transition: 0.5s;
  }
/*------------------*/













@media (max-width: 750px) {
    .container form{
        overflow-y: scroll;
    }
    .container form::-webkit-scrollbar{
       display: none;
    }
    form .fields .input-field{
        width: calc(100% / 2 - 15px);
    }
}

@media (max-width: 550px) {
    form .fields .input-field{
        width: 100%;
    }
}