
.modal {
    display: flex;
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.2);
    justify-content: center;
    align-items: center;
    padding: 5px;
    overflow-y: auto;
    z-index: -1;
    opacity: 0;
    transition: 0.2s
}

.modal.show {
    opacity: 1;
    z-index: 999
}

.modal .form {
    width: 100%;
    margin: 0 auto;
    background: #fdfdfd;
    border-radius: 0.5rem;
    max-width: 560px;
    padding: 2rem 1.5rem;
    z-index: 1;
    position: relative;
    border: 1px solid #E1E1E1;
    box-shadow: 0px 6px 30px rgba(0, 0, 0, 0.2);
}

.modal .title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: normal;
    font-family: 'Anticva';
    line-height: 1.1;
    letter-spacing: -0.8px;
    text-transform: uppercase;
    margin-bottom: 1rem
}

.modal .dtitle {
    text-align: center;
    font-size: 0.9rem;
}

.modal form {
    margin-top: 30px;
}

.modal .close_btn {
    background: none;
    border: none;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.modal .close_btn svg {
    stroke: #929292
}

.modal .close_btn:hover svg {
    stroke: #000;
}

.modal .errors-list p {
    margin: 0 0 6px 0
}

.modal input, .modal textarea {
    width: 100%;
    height: 50px;
    background: #f6f5f2;
    border: 1px solid #f8bd95;
    border-radius: 25px;
    font-size: 0.9rem;
    padding: 0 20px;
    margin-bottom: 1rem;
}

.modal input.error, .modal textarea.error {
    border: 1px solid #ff0000;
}

.modal textarea {
    height: 135px;
    padding: 20px;
}

.modal .send_btn {
    margin: 0.5rem 0 1rem;
    text-align: center
}

.modal .send_btn button {
    min-width: 160px;
    max-width: 100%;
}

.modal .nb {
    text-align: center;
    font-size: 0.7rem
}

.modal .nb a {
    text-decoration: underline;
    font-size: 0.7rem
}

.modal .nb a:hover {
    text-decoration: none
}

.modal.message .form .wrp {
}

.modal.message {
}

.modal.message .title {
    margin-bottom: 1em
}

.modal.message .form {
    max-width: 450px;
}

.modal.message p {
    margin-bottom: 0.3em
}

.modal.message h3 {
    font-size: 1.1em;
    width: auto;
    margin-bottom: 1rem;
    text-transform: none;
}

.modal.message.error h3, .modal.error .errors-list, .modal.error .errors-list p, .modal.error {
    color: #D00104 !important;
}

.modal.error .close_btn svg {
    stroke: #D00104
}

.modal.message.error .title {
    color: #D00104;
}

.modal.message.error h3 {
    text-align: left
}

.modal.message.error .form .wrp {
}



.checkbox, .radio {
    position: relative;
    cursor: pointer;
}

.checkbox input, .radio input {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
}

.checkbox input + span, .radio input + span {
    display: inline-block;
    user-select: none;
    margin-right: 1rem;
    font-size: 0.7rem;
    padding-left: 30px;
}

.checkbox input + span::before, .radio input + span::before {
    width: 20px;
    height: 20px;
    border: 1px solid #AAAAAA;
    border-radius: 5px;
    left: 0;
}

.checkbox input:checked + span::after, .radio input:checked + span::after {
    width: 10px;
    height: 10px;
    background: #ccb180;
    left: 6px;
    top: 12px;
    border-radius: 3px;
}


.afmodal {
    display: flex;
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.2);
    justify-content: center;
    align-items: center;
    padding: 5px;
    overflow-y: auto;
    z-index: -1;
    opacity: 0;
    transition: 0.2s
}
.afmodal.show {
    opacity: 1;
    z-index: 999
}
.afmodal .form {
    width: 100%;
    margin: 0 auto;
    background: #fdfdfd;
    border-radius: 8px;
    max-width: 560px;
    padding: 2.5rem 1rem;
    z-index: 1;
    position: relative;
    border: 1px solid #E1E1E1;
    box-shadow: 0px 0.5rem 2rem rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
    line-height: 1.5;
}

.afmodal.message .form{max-width: 400px; padding: 2.5rem 2rem}

.afmodal .wrp{max-width: 400px; margin: 0 auto}
.afmodal .title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.8px;
    text-transform: uppercase;
    margin-bottom: 1rem
}
.afmodal .close_btn {
    background: none;
    border: none;
    position: absolute;
    right: 1rem;
    top: 1rem;
}
.afmodal .close_btn svg {
    stroke: #929292
}
.afmodal .close_btn:hover svg {
    stroke: #f33a66;
}


.afmodal.error {
    color: #D00104 !important;
}
.afmodal.error .close_btn svg {
    stroke: #D00104
}
.afmodal.message.error .title {
    color: #D00104;
}
.afmodal.error .wrp span{display: block}


@media (max-width: 480px) {
	.modal .form{border: none; border-radius: 0; max-width: none; height: 100%; padding: 4rem 1.5rem 2rem;}
	.modal .close_btn{right: 2rem; top: 2rem}
}

.modal.city_form .form{max-width: 350px;}
.modal.city_form .title{text-transform: none; text-align: left}
.modal .city_wrp{overflow-y: auto; max-height: 12rem}
.modal *{
    scrollbar-width: thin;
    scrollbar-color: #ff7f27 #f5f5f5;
}


.modal .city_wrp li{margin-bottom: 0.2rem}
.modal .city_wrp a{font-size: 0.8rem; text-decoration: underline; cursor: pointer}
.modal .city_wrp a:hover{text-decoration: underline; color: #ff7f27}

.fixed_modal{overflow: hidden}