.form-section textarea{
    width: 100%;
    padding: 5px 0px;
    border: none;
    min-height: 50px;
    font-size: 13px;
}

.form-section section{
    margin-top: 15px;
    padding-top: 10px;
    /* border-top: 1px solid #b19671; */
}

.form-section section h5{
    margin: 0 0 10px;
    color: #b19671;
}

input[type='checkbox']{
    display: none;
}


input[type='checkbox'] ~ label{
    font-size: 13px;
    line-height: 1.4;
    color: #999;
    transition-duration: 200ms;
    padding-left: 25px;
    position: relative;
    margin: auto 0;
}

input[type='checkbox'] ~ label::before{
    content: '';
    width: 15px;
    height: 15px;
    background-color: transparent;
    display: block;
    position: absolute;
    left: 3px;
    top: 2px;
    border-radius: 3px;
    border: 1px solid;
}
input[type='checkbox'] ~ label::after{
    content: '';
    transition-duration: 200ms;
    width: 0;
    height: 0;
    background-color: #fff;
    display: block;
    position: absolute;
    left: 10px;
    top: 8px;
}

input[type='checkbox']:checked ~ label, input[type='checkbox']:checked ~ p{
    color: #333 !important;
}

input[type='checkbox']:checked ~ label::before{
    border-color:#b19671;
}

input[type='checkbox']:checked ~ label::after{
    background-color: #b19671;
    width: 11px;
    height: 11px;
    left: 5px;
    top: 4px;
}

.d-flex{
    display:flex;
}

.d-none{
    display:none !important;
}

.flex-column{
    flex-direction: column;
}

.w-50{
    width: 50%;
}

.chanintr-webform{
    box-shadow: 0 20px 60px -2px rgba(27, 33, 58, 0.4);
    background-color: #ffffff;
    margin: 50px auto;
    min-width: 800px;
    max-width: 800px;
    padding: 70px 30px 30px;
    border: 1px solid #b19671;
    border-radius: 3px;
}

.chanintr-logo{
    width: 40px;
    margin: 0 auto 10px;
}
.chanintr-name{
    margin: 10px auto 20px;
    width: 140px;
}

.chanintr-contact-info{
    margin: 20px 0 10px;
    color: #b19671;
}

.form-line{
    display: flex;
    margin: 20px 0 15px;
    gap: 20px;
    width: 100%;
}

.form-line .form-input{
    border-bottom: 1px solid #cfc7c0;
}

.form-line .form-input{
    width: 50%;
}
.form-line .form-input.divided{
    width: 50%;
}
.form-input input#title-other{
    width: 50%;
    border-bottom: 1px solid #cfc7c0;
}

.form-input{
    position: relative;
    display: flex;
}

.form-select{
    /* margin: 0 10px; */
    width: 100%;
    position: relative;
}

.form-select.input-condition{
    width: 40%;
    display: flex;
}

.form-select.input-condition label{
    z-index: 1;
}

.form-select.input-condition button{
    width: 100%;
    position: relative;
    transition-duration: 200ms;
}

.form-select.input-condition.additional button{
    width: 50%;
}

.form-select.input-condition.additional input{
    display:block;
    width: 50%;
}

.form-select.input-condition input{
    width: 50%;
    padding: 10px 10px 3px;
    border: none;
    border-bottom: 1px solid #cfc7c0;
    font-size: 13px;
    display:none;
}

.form-select.input-condition .form-options{
    top: 35px;
}

.form-select button{
    font-size: 13px;
    width: 100%;
    height: auto;
    min-height: 41px;
    line-height: 1.4;
    background: #fafafa;
    padding: 0 10px;
    text-align: left;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid #b19671;
    display: flex;
    flex-flow: wrap;
}

.form-select button:hover{
    background-color: #efefef;
}
.form-select button:active{
    background-color: #dfdfdf;
}

.form-select button:after{
    content: "";
    width: 0px;
    height: 0px;
    border-left: 12px solid transparent;
    border-right: 12px solid #b19671;
    border-top: 12px solid transparent;
    transform: rotate(0deg);
    position: absolute;
    right: 7px;
    bottom: 7px;
}

.single-selected{
    margin: 10px auto auto 0;
}

.multi-selected{
    padding: 2px 5px;
    background-color: #b19671;
    color: #fff;
    border-radius: 3px;
    position: relative;
    font-size: 13px;
    text-transform: capitalize;
}

.multi-selected span{
    margin-left: 2px;
    background: #fff;
    color: #333;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    top: 5px;
    right: 4px;
    position: absolute;
    display: flex;
}

.multi-selected span:hover{
    background-color: #eee;
}

.multi-selected:first-child{
    margin-left: 0 !important;
}
.multi-selected:nth-child(n){
    margin: 5px 5px 5px 0;
}

.form-options{
    display:none;
    width: 100%;
    background-color: #fff;
    position: absolute;
    z-index: 2;
    max-height: 210px;
    overflow: overlay;
    box-shadow: 0 0px 3px 1px rgba(22, 22, 22, 0.2);

}

.form-options .group-option{
    padding-top: 10px;
}
.form-options .group-option > span{
    display: flex;
    margin: 0 10px 5px 10px;
    border-bottom: 1px solid #b19671;
}

.form-options.multiple .group-option li{
    padding-left: 10px;
}

.form-options.show{
    display:block;
}
.form-options li{
    height: 35px;
    display: flex;
}

.form-options li:hover{
    background-color: #fefefe;
    color: #b19671;
}

.form-options li span{
    margin: auto auto auto 10px;
    font-size: 13px;
    text-transform: capitalize;
}

.form-options.multiple li{
    position: relative;
}

.form-options.multiple li.selected{
    background-color: #efefef;
}

.form-options.multiple li.selected::after{
    background-image: url(right.svg);
    content: '';
    width: 20px;
    height: 20px;
    position: absolute;
    right: 25px;
    top: 8px;
    border-radius: 50%;
    background-size: 20px 20px;
}

.form-input label, .form-select label, #date-of-birth > label{
    position: absolute;
    top: 8px;
    left: 10px;
    transition: all 200ms ease;
    color: #b3b3b3;
    font-size: 13px;
    z-index: 1;
}

.form-input.required label{
    color: #a3a3a3;
    font-weight: bold;
}

#date-of-birth label {
    top: -15px;
    left: 10px;
    font-size: 12px;
    font-weight: bold;
}

.form-input:focus label, 
.form-input:focus-within label, 
.form-input.filled label, 
.form-select.filled label,
#date-of-birth:focus-within label,
#date-of-birth.filled label {
    top: -15px;
    left: 10px;
    font-size: 12px;
    color: #b19671;
    font-weight: bold;
}

.form-input input{
    padding: 5px 10px 0px;
    width: 100%;
    border:none;
    font-size: 13px;
    /* height: 30px; */
}

.form-input.input-textarea{
    width: 100%;
}

.form-input.input-textarea textarea{
    padding: 10px;
    width: 100%;
    background-color: #fafafa;
}

#date-of-birth{
    margin: 0 10px;
    position: relative;
}

#date-of-birth input::-webkit-input-placeholder{
    font-size: 10px;
    color: #b3b3b3;
}
#date-of-birth .form-input:nth-child(2) {
    width: 40%;
    margin: 0;
}
#date-of-birth .form-input:nth-child(3) {
    width: 30%;
    margin: 0;
}
#date-of-birth .form-input:nth-child(4) {
    width: 30%;
    margin: 0;
}

#date-of-birth input::-webkit-input-placeholder  {
    color: transparent;
}
#date-of-birth:focus-within input::-webkit-input-placeholder, #date-of-birth.filled input::-webkit-input-placeholder{
    color: #b3b3b3
}

.form-input.error{
    color: #bf350a;
    border-color: #bf350a;
}

.error-message{
    position: absolute;
    bottom: 0px;
    right: 0px;
    font-size: 12px;
}

#form-submit{
    display: inline-block;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    border-radius: 3px;
    background-color: #B0956F;
    color: #fff;
    text-decoration: none;
    clear: both;
    white-space: nowrap;
    width: 140px;
}

#form-submit:disabled{
    background: #fafafa !important;
    color: #ddd !important;
    border: 1px solid transparent !important;
    cursor: default !important;
}

#form-submit:hover{
    cursor: pointer;
    border-color: #b0946f;
    color: #fff;
}

#term-and-condition{
    margin: 20px 0 20px;
}

#term-and-condition > div{
    margin: 20px 0 0;
}

#term-and-condition > label{    
    display: flex;
    flex-direction: column;    
}

#term-and-condition a{
    text-decoration: none;
    color: #b19671;
}

.checkbox-input{
    margin: 10px 0;
    display: flex;
}

.checkbox-input.line{
    width: calc( 50% - 20px );
    display: flex;
}

#line-id{
    width: 0;
    padding: 0;
    border: none;
    font-size: 13px;
    height: 30px;
    margin-left: 10px;
    border-bottom: 1px solid #cfc7c0;
    transition-duration: 200ms;
}
#line-id.show{
    width: 100%;
}

.success-modal{
    opacity: 0;
    display: none;
    position: fixed;
    height: 100%;
    width: 100%;
    z-index: 111;
    background: rgba(0,0,0, 0);
    transition-duration: 400ms;
}

.success-modal .block-success{
    margin: auto;
    border-radius: 3px;
    background-color: rgba(0,0,0, 0.2);
    color: rgba(0,0,0, 0.2);
    max-width: 300px;
    height: 100px;
    width: 100%;
    padding: 50px 20px;
    text-align: center;
    transition-duration: 400ms;
}
.success-modal.flow-in{
    opacity: 1;
    display: flex;
    background: rgba(0,0,0, 0.2);
}
.success-modal.flow-in .block-success{
    background-color: #f4f4f4;
    color: #333;
}

@media screen and (max-width: 1024px) and (min-width: 640px){
    .chanintr-webform{
        min-width: 500px;
        max-width: 80%;
        background-color: #ffffff;
        margin: 20px auto 0px;
        padding: 40px 20px 20px;
        width: 100%;
    }
}

@media screen and (max-width: 640px){
    .form-select.w-50{
        width: 100%;
    }
    .chanintr-webform{
        min-width: 0;
        max-width: 100%;
        width: 100%;
        height: 100%;
        margin: 20px;
        box-shadow: none;
        padding: 45px 20px 30px;
    }
    .form-line{
        margin:0;
    }
    .form-line.d-flex{
        flex-direction: column;
    }
    .form-line .form-input{
        margin: 15px 0px 20px;
        width: 100%;;
    }
    .form-select{
        margin: 15px 0px 20px;
    }
    
    .form-select.input-condition, #date-of-birth{
        width: 100%;
    }
    #date-of-birth{
        margin: 15px 0px 20px;;
    }
    #date-of-birth .form-input{
        margin: 15px 0px 20px;
    }
    .checkbox-input.line{
        width: calc( 100% - 10px );
    }
}