*,
*:before,
*:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

*:focus {
    outline: none;
}

html {
    height: 100%;
    width: 100%;
}

body {
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: baseline;
    background: #505556 url(../assets/unsplash.png) right no-repeat;
    background-size: 45% 100%;
    min-width: 80px;
}
main {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    position: relative;
    max-width: 336px;
    min-width: 80px;
    height: 532px;
    width: 100%;
    align-self: center;
    justify-content: center;
    background-color: rgba(255,255,255, 0.95);
    font-family: Montserrat, sans-serif;
}


                            /*-----------------HEADER----------------*/
header{
    height:72px;
    width:100%;
    background-color: #f8edaf;
    display: flex;
    margin: 0 auto;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
    padding: 0 24px;
}
.ha-man-fio output{
    max-width: 88px;
    height: 12px;
    color: #6e7f7b;
    font-size: 14px;
    font-weight: 700;
}
.ha-man-fio p{
    max-width: 74px;
    height: 8px;
    color: #a6a28d;
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
}
header output{
    width: 63px;
    height: 32px;
    color: #637570;
    font-size: 36px;
    font-weight: 400;
}
                            /*-----------------end HEADER----------------*/

                            /*-----------------FORM payment----------------*/
button, a{
    cursor: pointer;
}

select, input{
    font-family: Montserrat, sans-serif;
    color: #727f82;
    font-size: 13px;
    font-weight: 400;
    padding-left:10px;
}

label{
    max-width: 128px;
    height: 15px;
    color: #9eabad;
    font-size: 13px;
    font-weight: 400;
}
.fa-form-payment label:first-child, label:nth-child(5){
    margin-bottom: 9px;
}
.fa-form-payment label:nth-child(3){
     margin-top: 28px;
     margin-bottom: 6px;
 }
.fa-form-payment label:nth-child(5){
    margin-top: 26px;
}

.fa-form-payment{
    margin: 0;
    padding-left:24px;
    padding-right: 24px;
    padding-top: 45px;
    width: 100%;
    height: 404px;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
}

.fa-select-block{
    display: flex;
    justify-content: space-between;
    flex-direction: row;
}

.fa-select-block__item:first-child,
.fa-select-block__item:nth-child(2), input{
    height: 44px;
    width: 100%;
    overflow: hidden;
    border: 2px solid #bac8cb;
    background-color: #ffffff;
    flex-grow: 1;
}

.fa-select-block .fa-select-block__item:first-child{
    max-width: 176px;
    background: #ffffff url(../assets/arrow.svg) no-repeat 95% center;
}

.fa-select-block .fa-select-block__item:nth-child(2){
   max-width: 96px;
    background: #ffffff url(../assets/arrow.svg) no-repeat 90% center;
}
.fa-select-block select{
    width: 120%;
    background: transparent;
    background: rgba(0,0,0,0);
    -webkit-appearance: none;
    border:none;
    height: 100%;

}
.fa-select-block .fa-select-block__item:first-child select{
    max-width: 206px;

}
.fa-select-block .fa-select-block__item:nth-child(2) select{
    max-width: 126px;
}

.fa-cvv-code input{
    max-width: 96px;
    min-width: 45px;
    margin-right: 9px;
}
.fa-cvv-code p {
    max-width: 167px;
    height: 15px;
    color: #9eabad;
    font-size: 12px;
    font-weight: 400;
}

.fa-cvv-code{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

button{
    font-family: Montserrat, sans-serif;
    max-width: 288px;
    height: 48px;
    background-color: #25b86a;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    border: none;
    margin-top: 62px;
}

                        /*----------------- end FORM payment----------------*/

                            /*----------------- FOOTER----------------*/

footer{
    height: 56px;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

footer a{
    max-width: 79px;
    height: 11px;
    color: #9eabad;
    font-size: 12px;
    font-weight: 400;
    text-decoration: underline;
}
                            /*----------------- end FOOTER----------------*/

/*  Little check for correct input*/
.fa-form-payment input:focus:invalid {
    background: #fff url(../assets/warning.svg) no-repeat 98% center;
    background-size: 15px 15px;
    border-color: #82d4e7
}

.fa-form-payment input:required:valid{
    background: #fff url(../assets/checked.svg) no-repeat 98% center;
    background-size: 15px 15px;
    border-color: #82d4e7;
}
/*---need write check for password, correct number of credit card and Date
(maybe l write it in future...) or check it in javaScript*/
/*  End check for correct input*/