/* waste-removal-form */
.waste-removal-form label{
  line-height: 1.1;
}
.waste-removal-form .form-row{
  display: flex;
  flex-wrap:wrap;
  gap:0 14px;
}
.waste-removal-form .form-row .form-row__item{
    position: relative;
  width: calc(50% - 7px);
}
@media (max-width: 780px) {
  .waste-removal-form .form-row.contacts-row .form-row__item{
    width: 100%;
  }
}

.waste-removal-form .form-row__item-adress{
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(168, 218, 193, 0.5);
}
.wpcf7-number{
  margin-bottom: 27px;
    padding: 14px 13px;
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #A8DAC1;
    box-sizing: border-box;
    border-radius: 5px;
    font-size: 16px;
}

.wpcf7-not-valid-tip {
  font-size: 14px;
  line-height: 1;
  margin-bottom: 30px;


}

.wpcf7-not-valid-tip {
    margin-top: -24px;
}

.waste-removal-form__after{
  color: red;
  margin-top: 40px;
  line-height: 1.1;
  text-align: center;
    padding-top: 27px;
    border-top: 1px solid rgba(168, 218, 193, 0.5);

}


.form__agree .wpcf7-list-item {
    display: inline-block;
    margin:0;
}
/* =========================================================
   WASTE SELECTION
   ========================================================= */

.waste-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 27px;
    margin-top: 14px;
    
}


.waste-selection__item {
    position: relative;
    padding: 24px;
    border-radius: 5px;
    flex: 1;
    background: #eaf5f1;
}
@media (max-width: 780px) {

    .waste-selection__item {
        width: 100%;
        flex:auto;
    }

}

.waste-selection__title {
    margin-bottom: 16px;
    /*font-size: 18px;*/
    line-height: 1.35;
    min-height: 70px;
}
@media (max-width: 780px) {
    min-height: 10px;
}

.waste-selection__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 42px;
    max-height: 47px;
    border: 1px solid #28A745;
    border-radius: 54px;

    background: transparent;

    font: inherit;
    font-weight: 500;
    color: #28A745;

    cursor: pointer;

    transition:
        background-color .25s ease,
        color .25s ease,
        border-color .25s ease;
}


.waste-selection__button:hover,
.waste-selection__button.is-selected {
    background: #28A745;
    color: #fff;
}


.waste-selection__status {
    margin-top: 10px;

    font-size: 14px;
    line-height: 1.4;

    color: #777;

  padding-top: 16px;
}


.waste-selection__status.is-selected {
    color: #222;
}


/* =========================================================
   POPUP
   ========================================================= */

.waste-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    transition:
        opacity .3s ease,
        visibility .3s ease;
}


.waste-popup.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}


/* =========================================================
   OVERLAY
   ========================================================= */

.waste-popup__overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, .55);

    cursor: pointer;
}


/* =========================================================
   INNER
   ========================================================= */

.waste-popup__inner {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;

    width: min(760px, 100%);
    max-height: min(820px, calc(100vh - 60px));

    background: #fff;
    border-radius: 5px;

    overflow: hidden;

    transform: translateY(20px);

    transition: transform .3s ease;
}


.waste-popup.is-open .waste-popup__inner {
    transform: translateY(0);
}


/* =========================================================
   CLOSE
   ========================================================= */

.waste-popup__close {
    position: absolute;
    top: 18px;
    right: 18px;

    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    padding: 0;

    border: 0;
    background: transparent;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;
}


/* =========================================================
   HEADER
   ========================================================= */

.waste-popup__header {
    padding: 36px 40px 24px;
}


.waste-popup__title {
    margin: 0;
    padding-right: 50px;

    font-size: 28px;
    line-height: 1.2;
}


.waste-popup__description {
    margin-top: 16px;

    font-size: 16px;
    line-height: 1.5;
}


.waste-popup__description-code {
    margin-top: 10px;

    font-size: 14px;
    line-height: 1.4;

    color: #777;
}


.waste-popup__description-code span {
    color: #222;
}


/* =========================================================
   SEARCH
   ========================================================= */

.waste-popup__search {
    padding: 0 40px 20px;
}


.waste-popup__search-field {
    position: relative;
}


.waste-popup__search-input {
    display: block;

    width: 100%;
    height: 48px;

    padding: 0 48px 0 16px;

    border: 1px solid #d8d8d8;
    border-radius: 5px;

    background: #fff;

    font: inherit;

    outline: none;

    transition: border-color .2s ease;
}


.waste-popup__search-input:focus {
    border-color: #222;
}


/* Убираем стандартный крестик браузера */
.waste-popup__search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}


/* =========================================================
   CLEAR SEARCH
   ========================================================= */

.waste-popup__search-clear {
    position: absolute;
    top: 50%;
    right: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    padding: 0;

    border: 0;
    background: transparent;

    font-size: 24px;
    line-height: 1;

    cursor: pointer;

    transform: translateY(-50%);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity .2s ease,
        visibility .2s ease;
}


.waste-popup__search-clear.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* =========================================================
   SEARCH RESULT
   ========================================================= */

.waste-popup__search-result {
    margin-top: 8px;

    font-size: 13px;
    line-height: 1.4;

    color: #777;
}


/* =========================================================
   SEARCH EMPTY
   ========================================================= */

.waste-popup__search-empty {
    padding: 30px 0;

    font-size: 15px;

    color: #777;
}


/* =========================================================
   LIST
   ========================================================= */

.waste-popup__list {
    flex: 1;

    min-height: 0;

    padding: 0 40px 20px;

    overflow-y: auto;
}


/* =========================================================
   ITEM
   ========================================================= */

.waste-popup__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    padding: 16px;

    margin-bottom: 8px;

    border: 1px solid #e1e1e1;
    border-radius: 5px;

    cursor: pointer;

    transition:
        background-color .2s ease,
        border-color .2s ease;
}


.waste-popup__item:hover {
    background: #f7f7f7;
}


.waste-popup__item.is-selected {
    border-color: transparent;
    background: #eaf5f1;
}


/* Важно: скрываем отфильтрованные элементы */
.waste-popup__item[hidden] {
    display: none !important;
}


.waste-popup__item input {
    flex: 0 0 auto;

    width: 20px;
    height: 20px;

    margin: 2px 0 0;

    border: 2px solid #28A745;
    border-radius: 4px;

    background: #fff;

    appearance: none;
    -webkit-appearance: none;

    cursor: pointer;

    transition:
        background-color .2s ease,
        border-color .2s ease;
}


/* Активное состояние */
.waste-popup__item input:checked {
    background-color: #28A745;
    border-color: #28A745;
}


/* Галочка */
.waste-popup__item input:checked::after {
    content: '';

    display: block;

    width: 5px;
    height: 10px;

    margin: auto;

    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;

    transform: rotate(45deg);
}


.waste-popup__item-content {
    display: flex;
    flex-direction: column;
    gap: 6px;

    min-width: 0;
}


.waste-popup__item-name {
    font-size: 15px;
    line-height: 1.45;
}


.waste-popup__item-code {
    font-size: 13px;
    line-height: 1.3;

    color: #777;
}


/* =========================================================
   SEARCH HIGHLIGHT
   ========================================================= */

.waste-popup__item-name mark,
.waste-popup__item-code mark {
    padding: 0 2px;

    background: #a8dac1;
    color: inherit;
}


/* =========================================================
   EMPTY
   ========================================================= */

.waste-popup__empty {
    padding: 30px 0;

    color: #777;
}


/* =========================================================
   FOOTER
   ========================================================= */

.waste-popup__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 20px 40px;

    border-top: 1px solid #e5e5e5;

    background: #fff;
}


.waste-popup__selected {
    font-size: 15px;
}


.waste-popup__done {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 140px;

    padding: 12px 24px;

    border: 1px solid transparent;
    border-radius: 5px;

    font: inherit;
    font-weight: 600;

    color: #fff;
    background: linear-gradient(180deg, #30B352 0%, #3ACE5F 100%);

    cursor: pointer;

    transition: all .2s ease;
}


.waste-popup__done:hover {
    border-color: #28A745;

    background: transparent;

    color: #28A745;
}


/* =========================================================
   BODY LOCK
   ========================================================= */

html.waste-popup-open,
body.waste-popup-open {
    overflow: hidden;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .waste-popup {
        align-items: flex-end;
        padding: 0;
    }


    .waste-popup__inner {
        width: 100%;
        max-height: calc(100vh - 20px);

        border-radius: 16px 16px 0 0;

        transform: translateY(30px);
    }


    .waste-popup.is-open .waste-popup__inner {
        transform: translateY(0);
    }


    .waste-popup__header {
        padding: 28px 20px 20px;
    }


    .waste-popup__title {
        font-size: 22px;
    }


    .waste-popup__search {
        padding: 0 20px 16px;
    }


    .waste-popup__list {
        padding: 0 20px 16px;
    }


    .waste-popup__footer {
        position: sticky;
        bottom: 0;

        padding: 16px 20px;
    }


    .waste-popup__done {
        min-width: 120px;
    }


    .waste-popup__item {
        padding: 14px;
    }

}

.volume-field {
    position: relative;
}


.volume-field input {
    padding-right: 50px;
}


.volume-field__unit {
    position: absolute;
    top: 50%;
    transform: translateX(-50%);
    right: 16px;

    font-size: 16px;
    line-height: 1;

    color: #777;

    transform: translateY(-50%);

    pointer-events: none;
}

label span.top{

}

.form__agree input[type="checkbox"] {
    flex: 0 0 auto;

    width: 20px;
    height: 20px;

    margin: 2px 8px 0 0;

    border: 2px solid #28A745;
    border-radius: 4px;

    background: #fff;

    appearance: none;
    -webkit-appearance: none;

    cursor: pointer;

    vertical-align: top;

    transition:
        background-color .2s ease,
        border-color .2s ease;
}


/* Активное состояние */
.form__agree input[type="checkbox"]:checked {
    background-color: #28A745;
    border-color: #28A745;
}


/* Галочка */
.form__agree input[type="checkbox"]:checked::after {
    content: '';

    display: block;

    width: 5px;
    height: 10px;

    margin: auto;

    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;

    transform: rotate(45deg);
}

.waste-removal-form__after{
    padding-top: 27px;
    border-top: 1px solid rgba(168, 218, 193, 0.5);
}

.waste-selection__error {
    display: none;
    width: 100%;
}

.waste-selection.has-error .waste-selection__error {
    display: block;
    color: red;
}