.input-container {
    position: relative;
    margin: 0 0 20px 0;
}
.input-container label {
    position: absolute;
    top: 29px;
    left: 19px;
    transform: translateY(-50%);
    color: var(--text_ter);
    transition: 0.3s;
    pointer-events: none;
    font-family: 'IBM Plex Sans';
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 0px;
}

/* Стилизация инпута */
.input-container input {
    width: 100%;
    height: 58px;
    padding: 20px 17px 8.5px;
    box-sizing: border-box;
    border-radius: 8px;
    color: var(--text_ter);
    background-color: var(--gray_3);
    border: 2px solid transparent;
    outline: none;
    font-size: 16px;
}

/* Лейбл при вводе текста или фокусе */
.input-container input:focus + label,
.input-container input:not(:placeholder-shown) + label {
    top: 16px;
    font-weight: 400;
    font-size: 12px;
    line-height: 17px;
    letter-spacing: 0px;
    color: var(--text_pr);
}

/* Ховер на инпут */
.input-container input:hover {
    background-color: var(--blue_5);
}
.input-container input:focus {
    border: 2px solid var(--blue_3);
    background-color: var(--gray_4);
    color: var(--text_pr);
}

/* Ховер на заполненный инпут */
.input-container input:not(:placeholder-shown):hover {
    background-color: var(--blue_5);
    color: var(--text_pr);
}

/* Стилизация заполненного инпута (не в фокусе) */
.input-container input:not(:focus):not(:placeholder-shown) {
    background-color: var(--gray_3);
    color: var(--text_pr);
}

/* Кнопка очистки */
.input-container .clear-btn {
    position: absolute;
    width: 9px;
    height: 9px;
    right: 24px;
    top: 29px;
    transform: translateY(-50%);
    cursor: pointer;
    display: none;
}
.input-container .clear-btn::before,
.input-container .clear-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 13px;
    height: 2px;
    background-color: var(--text_ter);
    transition: 0.3s;
}

/* Перекрестие крестика */
.input-container .clear-btn::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.input-container .clear-btn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
.input-container input:not(:placeholder-shown) ~ .clear-btn {
    display: block;
}
.input-container .clear-btn:hover::before,
.input-container .clear-btn:hover::after {
    background-color: var(--text_pr);
}
.wpcf7-form-control-wrap {
    position: static !important;
}

/* === Стили для инпута с ошибкой === */

/* Обычное состояние с ошибкой */
.input-container input.wpcf7-not-valid {
    background-color: #FFEBEE !important;
}

/* Ховер по инпуту с ошибкой */
.input-container input.wpcf7-not-valid:hover {
    background-color: #FF2D553D !important;
}

/* Фокус на инпуте с ошибкой */
.input-container input.wpcf7-not-valid:focus {
    border: 2px solid #FF2D55 !important;
    background-color: #FFFFFF !important;
}
.input-container .wpcf7-not-valid-tip {
    margin: 8px 0 0;
    text-align: left;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 17px;
}


.toggle-switch {
    display: flex;
    justify-content: center;
    align-items: center;
}
.toggle-switch > p {
    display: block;
    box-sizing: border-box;
    height: 48px;
    padding: 4px;
    margin-bottom: 20px;
    border-radius: 12px;
    gap: 16px;
    background-color: var(--gray_3);
}
.toggle-switch .wpcf7-list-item input[type="radio"] {
    display: none;
}
.toggle-switch .wpcf7-list-item.active {
    background-color: var(--gray_4);
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.toggle-switch .wpcf7-list-item label {
    display: flex;
    align-items: center;
    padding: 0 12px;
    height: 40px;
    border-radius: 8px;
    color: var(--text_pr);
    user-select: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, all 0.3s ease;
}
.toggle-switch .wpcf7-list-item input[type="radio"]:checked + label {
    background-color: var(--blue_3);
    color: var(--gray_4);
}


/* Скрываем стандартный checkbox */
.wpcf7-acceptance input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}
.wpcf7-acceptance label {
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    display: inline-block;
    user-select: none;
    line-height: 1.4;
}
.wpcf7-acceptance label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    border-radius: 6px; 
    border: 1px solid var(--text_pr);
    box-sizing: border-box;
    transition: all 0.2s ease;
}
.wpcf7-acceptance .wpcf7-list-item-label::before {
    width: 20px;
    height: 20px;
    border-radius: 6px; 
}
.wpcf7-acceptance input[type="checkbox"]:checked + .wpcf7-list-item-label::before {
    content: "";
    position: absolute;
    left: 0px;
    top: 1px;
    width: 20px;
    height: 20px;
    border-radius: 6px; 
    box-sizing: border-box;
    transition: all 0.2s ease;
    background-color: var(--blue_3);
}
.wpcf7-acceptance input[type="checkbox"]:checked + .wpcf7-list-item-label::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 6px;
    width: 12px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='10' viewBox='0 0 12 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.7071 2.37361C12.0976 1.98309 12.0976 1.34992 11.7071 0.959397C11.3166 0.568873 10.6834 0.568873 10.2929 0.959397L4.33333 6.91896L1.70711 4.29273C1.31658 3.90221 0.683417 3.90221 0.292893 4.29273C-0.0976311 4.68326 -0.0976311 5.31642 0.292893 5.70694L3.62623 9.04028C4.01675 9.4308 4.64992 9.4308 5.04044 9.04028L11.7071 2.37361Z' fill='white'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

.wpcf7-spinner + .wpcf7-spinner {
    display: none;
}