input[type="number"] {
    line-height: 50px;
    padding: 0 20px;
    color: var(--textcolor);
    border-radius: 15px;
    width: 100%;
    margin: 0 0 10px 0;
    background: var(--grey);
    border: 0;
    font-family: var(--fontfamily);
    font-size: var(--fontsize);
    outline: none;
    box-sizing: border-box;
    display: block;
    transition: background .5s, resize 0s;
}
input[type="number"]:focus {
    background: #e0e2e8;
}

.calc-wrapper {
    position: relative;
}
.calc-wrapper>* {
    margin-bottom: 0;
}
*[class*="block-calc-"] {
    display: flex;
    flex-direction: column;
    row-gap: 16px;
}
#map {
    width: 100%;
    height: 100%;
}
.block-calc {
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.25);
    height: 100%;
}
.block-calc-footer {    
    border: 1px solid var(--maincolor2);
}
.field-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: stretch;
    column-gap: 16px;
}
.field-wrapper>* {
    flex: 0 1 50%;
}
.field,
.input-wrapper {
    position: relative;
    cursor: pointer;
}
.field label,
.input-wrapper label {
    font-weight: 600;
    font-size: 11px;
    color: #888888;
    position: absolute;
    padding: 8px 0 0 16px;
    pointer-events: none;
}
.field>.fake-select,
.input-wrapper>input:not(button),
.input-wrapper>textarea,
.input-wrapper>select {
    border-radius: 8px;
    padding: 32px 16px 8px;
    /*border: 1px solid #ddd;*/
    border: 1px solid var(--grey2);
    color: var(--textcolor);
    font-family: var(--fontfamily);
    font-weight: 500;
    font-size: 16px;
    line-height: 16px;
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s;
}
.field>.fake-select:hover,
.input-wrapper>input:not(button):hover,
.input-wrapper>textarea:hover,
.input-wrapper>select:hover {
    border-color: var(--grey3);
}
.field:not(.icon-right)>.fake-select::after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background-image: url(../images/ico-chevron.svg);
    background-size: 16px 16px;
    width: 16px;
    height: 16px;
    background-position: center;
    background-repeat: no-repeat;
}
.field.icon-left>* {
    padding-left: 76px;
}
.input-wrapper>input:not(button)::placeholder,
.input-wrapper>textarea::placeholder {
    color: var(--hcolor);
}
.input-wrapper>textarea {
    resize: vertical;
}
.price-output-wrapper > label {
    color: var(--maincolor2);
    padding: 0;
}
input[type="text"].price-output {
    border: none;
    background: none;
    pointer-events: none;
    padding: 0;
    padding-top: 20px;
    color: #333;
    font-weight: 500;
    font-size: 32px;
    line-height: 32px;
    margin: 0;
}
input[type="text"].input-phone {
    background-image: url(../images/ico-phone.svg);
    background-size: 24px 24px;
    background-position: right 12px top 50%;
    background-repeat: no-repeat;
}
.input-car-type {
    background-image: url(../images/ico-car.svg);
    background-size: 48px 48px;
    background-position: 12px 50%;
    background-repeat: no-repeat;
}
.input-car-price {
    background-image: url(../images/ico-rub.svg);
    background-size: 48px 48px;
    background-position: 12px 50%;
    background-repeat: no-repeat;
}
.input-car-options {
    background-image: url(../images/ico-options.svg);
    background-size: 24px 24px;
    background-position: right 12px top 50%;
    background-repeat: no-repeat;
}
.block-calc-order {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.block-calc-order-button {
    height: 48px;
    line-height: 48px;
    padding: 0 24px;
    flex-shrink: 0;
}
.modal-calc {
    display: none;
    z-index: 1000;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    align-items: flex-start;
    justify-content: flex-end;
}
.modal-calc::after {
    content: '';
    display: block;
    position: fixed;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    background: rgb(0 0 0 / 15%);
    width: 100vw;
    height: 100vh;
    z-index: -1;
    top: 0;
    left: 0;
}
.modal-content {
    background: white;
    box-sizing: border-box;
    padding: 20px;
    max-height: 100%;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
}
.modal-content h3 {
    margin-top: 0;
}
.modal-options {
    overflow-y: auto;
    max-height: 60vh;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
.modal-option {
    padding: 10px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
}
.modal-option::before {
    content: '';
    display: block;
    width: 16px;
    height: 8px;
    border-bottom: 2px solid #ddd;
    border-left: 2px solid #ddd;
    transform: translateY(-4px) rotate(-45deg);
    margin-right: 10px;
    transition: border-color .2s;
}
.modal-option:hover::before {
    border-color: var(--grey4);
}
.modal-option.active::before {
    border-color: var(--maincolor2);
}
.modal-close {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 24px;
    height: 24px;
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey4);
    transition: color .2s;
}
.modal-close:hover {
    color: var(--textcolor);
}