.form-reg-container {
    text-align: center;
    position: relative;
    min-height: 300px;
}
#form-guarantee {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
#form-guarantee .service-item {
    position: relative;
}
.form-reg-error,
.form-reg-model {
    display: none;
    width: 100%;
    padding: 20px 0;
    text-align: center;
    font-size: 18px;
    color: red;
}

.form-reg-model {
    color: black;
}
.service-item__file-control {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: end;
    top: 30px;
    margin-left: 10px;
    height: 35px;
    width: 150px;
    padding-right: 10px;
    border-radius: 3px;
    border: 1px solid black;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    cursor: pointer;
    transition: .25s;
}
.service-item__file-control::before,
.service-item__file-control::after {
    content: '';
    display: block;
    position: absolute;
    height: 13px;
    width: 1px;
    top: 32%;
    left: 11%;
    background-color: black;
}
.service-item__file-control::after {
    transform: rotate(90deg);
}
.service-item__file-control:hover {
    background-color: rgba(0, 0, 0, 0.12);
}
.service-item__file-preview {
    display: none;
    position: relative;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    top: 30px;
    padding-left: 10px;
    height: 33px;
    background-color: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.15);
}
.service-item__file-preview div {
    display: flex;
    align-items: center;
    height: 100%;
}
.item-hide {
    display: none;
}
.item-show {
    display: block;
}
.preview-img {
    width: auto;
    max-height: 33px;
}
.preview-name {
    font-size: 14px;
}
.preview-close {
    position: relative;
    cursor: pointer;
    width: 33px;
    height: 33px;
}
.preview-close::before,
.preview-close::after {
    content: '';
    display: block;
    position: absolute;
    top: 9px;
    left: 15px;
    height: 14px;
    width: 2px;
    background-color: black;
}
.preview-close::before {
    transform: rotate(45deg);
}
.preview-close::after {
    transform: rotate(-45deg);
}
.not-load {
    display: none;
    color: red;
    margin-left: 180px;
    font-size: 14px;
}
.service-item__pos {
    position: absolute;
    padding: 0px 10px 0;
    font-size: 13px;
    transition: .3s;
}
.service-item__pos span {
    padding-left: 2px;
    color:rgb(241, 50, 50);
}
#form-guarantee input,
#form-guarantee button,
.service-item__file {
    width: 600px;
    height: 52px;
    border: 1px solid rgba(19, 50, 52, 0.05);
}
#form-guarantee input,
.service-item__file {
    background-color: #f5f5f5;
    padding-left: 10px;
    padding-top: 10px;
    border-radius: 4px;
}
.service-item__file {
    position: relative;
    height: 82px;
    display: flex;
    flex-direction: column;
    padding: 0;
}
#form-guarantee button {
    cursor: pointer;
    color: #fff;
    background-color: #3ea7ad;
    font-size: 16px;
    border-radius: 10px;
    transition: .3s;
}
#form-guarantee button:hover {
    background-color: rgba(62, 167, 172, 0.7);
}
#form-guarantee input:focus {
    border: 1px solid rgba(62, 167, 172, 1);
    outline: none;
}
#form-guarantee .serviceReg:focus {
    border: 1px solid rgba(19, 50, 52, 0.05);
}
#form-guarantee .serviceReg-wrap {
    position: relative;
}
#form-guarantee .serviceReg-wrap:after {
    content: "";
    position: absolute;
    display: block;
    height: 7px;
    width: 7px;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    top: 24px;
    right: 10px;
    opacity: .3;
    transition: .3s;
    transform: translateX(-50%) translateY(-50%) rotate(45deg);
    }
#form-guarantee .serviceReg-wrap:hover:after {
    opacity: 1;
}
.serviceReg-wrap {
    position: relative;
}
.serviceReg:hover {
    cursor: pointer;
}
.service-options {
    display: none;
    height: auto;
    max-height: 210px;
    width: 100%;
    overflow-y: scroll;
    z-index: 100;
    position: absolute;
    top: 55px;
    background-color: #fff;
    border: 1px solid rgba(19, 50, 52, 0.05);
    box-shadow: 0 6px 21px rgba(0, 0, 0, 0.5);
}
.service-options__opt {
    transition: 0.3s;
    text-align: left;
    padding-left: 10px;
}
.service-options__opt:hover {
    cursor: pointer;
    background-color:rgb(250, 250, 250);
}

.modal {
    display: block;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 15px 20px 50px 20px;
    border-radius: 13px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    text-align: center;
}

.modal-content p {
    font-weight: 600;
    font-size: 24px;
    margin-top: 50px;
}

.close-modal {
    position: absolute;
    right: 0px;
    top: 7px;
    width: 32px;
    height: 32px;
    opacity: 0.3;
    cursor: pointer;
}

.close-modal:before {
    transform: rotate(45deg);
}

.close-modal:after {
    transform: rotate(-45deg);
}

.close-modal:before, 
.close-modal:after {
    content: ' ';
    position: absolute;
    left: 15px;
    height: 20px;
    width: 2px;
    background-color: #333;
}

@media screen and (max-width: 767px) {
    #form-guarantee input,
    #form-guarantee button {
        width: 475px;
    }
    .form-reg-container h2 {
        font-size: 30px;
    }
    .form-reg-errorб
    .form-reg-model {
        font-size: 16px;
    }
}

@media screen and (max-width: 600px) {
    #form-guarantee input,
    #form-guarantee button {
        width: 385px;
    }
    .form-reg-errorб
    .form-reg-model {
        font-size: 12px;
    }
}

@media screen and (max-width: 450px) {
    #form-guarantee input,
    #form-guarantee button {
        width: 300px;
    }
}

.form-loader {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, .65);
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    z-index: 99;
}

.form-loader.disable{
    display: none;
}

.form-loader-loading{
    font-weight: 400;
    display:inline-block;
    font-family: monospace;
    padding-bottom: 60px;
    font-size: 18px;
    clip-path: inset(0 3ch 0 0);
    animation: l 1s steps(4) infinite;
}

@keyframes l {
    to {
        clip-path: inset(0 -1ch 0 0)
    }
}

.form-success-message{
    width: 100%;
    align-items: center;
    font-size: 25px;
    border-radius: 26px;
    text-align: center;
    margin: 40px 0;
    padding: 30px;
    justify-content: center;
    height: auto;
    background: #f7fffc;
    border: 1px solid #a3b1a2;
}