/* Попап консультации */
.popup-consultation,
.popup-callback {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.popup-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
}

.popup-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 30px;
    border-radius: 10px;
    min-width: 320px;
    max-width: 500px;
    z-index: 10000;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    color: #fff;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    color: #000;
}

.popup-content {
    position: relative;
}

.popup-title {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
}

.popup-footer-text {
    font-size: 12px;
    color: #fff;
    text-align: center;
    line-height: 1.4;
}

/* Когда попап открыт */
.popup-open {
    overflow: hidden;
}

.wpcf7 input:not([name="acceptance-987"]) {
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    margin-bottom: 10px;
}

.wpcf7-acceptance {
    color: #fff;
}

/* Подсветка галочки согласия, если отправили без выбора */
.wpcf7-acceptance--error .wpcf7-list-item,
.wpcf7-acceptance--error.wpcf7-form-control-wrap {
    outline: 2px solid #e74c3c;
    outline-offset: 4px;
    border-radius: 4px;
}
.wpcf7-acceptance--error .wpcf7-list-item-label {
    color: #ffb3b3;
}

/* Текст «Нужно нажать на галочку» под полем согласия */
.wpcf7-acceptance-error-tip {
    display: block;
    margin-top: 6px;
    color: #ff6b6b;
    font-size: 13px;
    line-height: 1.3;
}

[data-name="acceptance-987"] {
    margin-bottom: 10px;
    display: block;
}

.wpcf7-submit {
    color: #fff;
    cursor: pointer;
    background: -webkit-gradient(linear, left top, left bottom, from(#008BD0), to(#44C9AD));
/*     background: linear-gradient(90deg, #06CFE5 0%, #66C924 100%); */
}

.wpcf7-response-output {
    color: #008BD0
}

/* Уведомление о cookie (нижняя полоса) */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    padding: 16px 20px;
    background: #1a1a1a;
    color: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.35s ease;
    opacity: 0;
    visibility: hidden;
}

.cookie-notice--visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-notice__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-notice__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
    min-width: 200px;
}

.cookie-notice__btn {
    flex-shrink: 0;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    background: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.cookie-notice__btn:hover {
    background: #008BD0;
    color: #fff;
}

@media (max-width: 767px) {
    .cookie-notice__inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .cookie-notice__btn {
        align-self: center;
    }
}