.modal-bg {
    display: none;
}

.modal {
    display: none;
}

.modal-bg.modal-active {
    display: block;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.60);
}

body.modal-active {
    margin-right: var(--scrollbar-width);
    overflow: hidden;
    position: relative;
}

.modal.modal-active {
    display: block;
    z-index: 1001;
    position: fixed;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    border-radius: 50px;
    background: #fff;
    backdrop-filter: blur(13.5px);
    max-width: calc(100vw - 30px);
    max-height: calc(100vh - 30px);
    overflow-y: auto;
}

fieldset.form-inputs {
    flex-wrap: wrap;
    display: flex;
    row-gap: 20px;
    justify-content: space-between;
}

svg.modal__close {
    position: absolute;
    top: 25px;
    right: 25px;
    cursor: pointer;
}

.modal__inner {
    padding: 60px 10px 50px;
}

.modal__header {
    text-align: center;
    font-size: 38px;
    font-style: normal;
    font-weight: 800;
    line-height: 105%;
    /* 39.9px */
    letter-spacing: 1.14px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.modal__description {
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: 145%;
    margin-bottom: 25px;
    text-align: center;
}

.modal__description span {
    color: var(--unnamed, #F7980B);
    text-decoration: underline;
    text-underline-position: under;
    font-weight: 600;
}

.products-in-request {
    padding-bottom: 20px;
}

.modal--request {
    width: 700px;
}

.modal__form fieldset.form-inputs {
    margin: 0 0 11px;
    max-width: 100%;
}

form.modal__form input.form-submit {
    position: static;
    width: 294px;
    height: 63px;
    max-width: 100%;
    margin: 10px auto 11px;
}

.modal__form textarea.form-input {
    height: 160px;
}

.modal__form .form-file__left {
    flex: 0 0 334px;
}

.modal input.form-input,
.modal__form textarea.form-input {
    border: 1px solid rgb(65 65 65 / 25%)
}

.modal__form .form-file__right {
    flex: 0 0 calc(100% - 334px - 25px);
}

.products-in-request {
    display: flex;
    flex-direction: column;
    row-gap: 15px;
}

.product-in-request {
    border-radius: 10px;
    background: #414246;
    padding: 15px;
    display: flex;
    column-gap: 20px;
}

.product-in-request__left {
    flex: 0 0 170px;
}

.product-in-request__right {
    position: relative;
    flex: 0 0 calc(100% - 170px - 20px);
    padding: 0 25px 0 0;
    display: flex;
    flex-direction: column;
}

button.product-in-request__delete {
    border: none;
    padding: 0;
    background: transparent;
    position: absolute;
    top: 5px;
    right: 5px;
}

button.product-in-request__delete svg {
    display: block;
}

.product-in-request__name {
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 135%;
    /* 20.25px */
    margin-bottom: auto;
}

.product-in-request__price {
    font-size: 21px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 5px;
}

.modal--message {
    width: 700px;
}

.modal--message .modal__header {
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}

.modal--message .modal__description {
    margin-bottom: 35px;
}

.modal--message button.modal__close {
    border-radius: 1000px;
    background: #F7980B;
    width: 317px;
    max-width: 100%;
    height: 63px;
    border: 1px solid #F7980B;
    outline: none;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: 125%; /* 18.75px */
    letter-spacing: 0.45px;
}

.modal--message button.modal__close:hover {
    color: #F7980B;
    background: transparent;
}

.form-footer {
    margin-top: 40px;
    padding-top: 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.30);
    color: var(--, #FFF);
    text-align: center;
    font-family: Proxima Nova;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 145%; /* 26.1px */
}

.modal--not-found {
    width: 700px;
}

.modal--callback {
    width: 494px;
}

.modal.modal--not-found input.form-input:nth-last-child(2) {
    padding-right: 35px;
}

.city-modal {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 400px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 10000;
  font-family: Arial, sans-serif;
}

.city-modal-content {
  padding: 20px;
  position: relative;
}

.city-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

.city-modal-close:hover {
  color: #333;
}

.city-modal h3 {
  margin: 0 0 15px 0;
  color: #333;
}

.city-modal-buttons {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.city-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.city-btn-primary {
  background: #FFCD11;
  color: black;
border-radius: 20px;
}

.city-btn-secondary {
  background: #6c757d;
  color: white;
border-radius: 20px;
}

.city-btn:hover {
  opacity: 0.9;
}

#city-search {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-top: 10px;
}

#city-suggestions {
  max-height: 150px;
  overflow-y: auto;
  border-radius: 4px;
  margin-top: 5px;
}

.city-suggestion {
  padding: 8px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.city-suggestion:hover {
  background: #f5f5f5;
}

.city-suggestion:last-child {
  border-bottom: none;
}

@media (max-width: 767px){
    .modal__inner {
        padding: 50px 30px 30px;
    }
    
    svg.modal__close {
        top: 14px;
        right: 50%;
        transform: translateX(50%);
    }
    
    .modal__description {
        margin-bottom: 10px;
    }
    
    .modal__form .form-file__left {
        flex: 0 0 90px;
        font-size: 0;
        background-position: center center;
    }
    
    .modal__form .form-file__right {
        flex: 0 0 calc(100% - 90px - 25px);
    }
}

@media (max-width: 575px){
    .modal__header {
        font-size: 28px;
        margin-bottom: 20px;
    }

.city-modal {
width: 100%;
right: 0;
top: 0;
}
    
    .modal__inner {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .modal__description {
        font-size: 16px;
    }
    
    .product-in-request {
        flex-direction: column;
        row-gap: 20px;
    }
    
    .product-in-request__price {
        margin-bottom: 0;
        margin-top: 20px;
    }
    
    .product-in-request__left {
        flex: 0 0 auto;
    }
    
    .product-in-request__right {
        flex: 0 0 auto;
    }
    
    .modal .form-agree__text {
        font-size: 13px;
    }
    
    .modal__form .form-file__left {
        font-size: 0;
        padding: 20px;
        flex: 0 0 100%;
        background-position: center right 20px;
    }
    
    .modal__form .form-file__right {
        font-size: 14px;
        flex: 0 0 100%;
        margin-left: -100%;
        padding: 20px 45px 20px 15px;
        max-height: 100%;
    }

    .modal__form textarea.form-input {
        padding-left: 15px;
        padding-right: 15px;
    }

    .modal input.form-input {
        padding-left: 15px;
        padding-right: 15px;
    }

    .modal.modal--not-found input.form-input:nth-last-child(2) {
        padding-right: 15px;
    }
}