/* ===== Feedback default (popup) ===== */
.feedback-overlay {
    position: fixed;
    inset: 0;
     box-shadow: 0 14px 40px rgba(15, 23, 42, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
    padding: 16px;
}

.feedback-overlay .feedback-modal {
    background: #fff;
    color: #1f2937;
    width: 440px;
    max-width: 100%;
    padding: 28px 28px 24px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
    animation: feedbackPop .25s ease-out;
}

@keyframes feedbackPop {
    from {
        opacity: 0;
        transform: translateY(15px) scale(.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.feedback-modal h3 {
    margin: 0 0 18px;
    color: #1e5d84;
    font-size: 2rem;
    text-align: center;
    font-family: "Baloo Cyrillic";
}

.feedback-modal .feedback-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #94A3B8;
    transition: color .2s;
}


.feedback-modal .feedback-close:hover {
    color: #1f2937;
}

.feedback-form .form-group,
.feedback-form .feedback-form-group {
    margin-bottom: 14px;
}

.feedback-form input[type="text"],
.feedback-form input[type="tel"],
.feedback-form input[type="email"],
.feedback-form textarea {
    width: 100%;
    padding: 11px 14px;
    background: #f8fafc;
    color: #1f2937;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 16px;
    transition: border-color .2s, background .2s;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
    outline: none;
    border-color: #1e5d84;
    background: #fff;
}

.feedback-form textarea {
    resize: vertical;
    min-height: 100px;
}

.feedback-form .honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

/* Файл */
.feedback-form .file-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.feedback-form .file-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
    font-size: 16px;
    transition: border-color .2s, background .2s;
}

.feedback-form .file-label:hover {
    border-color: #1e5d84;
    background: #fff;
}

.feedback-form .file-label input[type="file"] {
    display: none;
}

.feedback-form .file-hint {
    font-size: 12px;
    color: #94A3B8;
}

/* Чекбокс */
.feedback-form .checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 18px;
    color: #64748b;
    line-height: 1.4;
    cursor: pointer;
}

.feedback-form .checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.feedback-form .checkbox-group a {
    color: #1e5d84;
    text-decoration: none;
}

.feedback-form .checkbox-group a:hover {
    text-decoration: underline;
}

/* Капча — внизу, компактная */
.feedback-form .captcha-group {
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.feedback-form .captcha-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.feedback-form .captcha-image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px;
    flex-shrink: 0;
}

.feedback-form .captcha-img {
    display: block;
    height: 40px;
    width: auto;
    border-radius: 4px;
}

.feedback-form .captcha-reload {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #94A3B8;
    padding: 0 6px;
    transition: color .2s, transform .3s;
}

.feedback-form .captcha-reload:hover {
    color: #1e5d84;
    transform: rotate(90deg);
}

.feedback-form .captcha-input {
    flex: 1;
}

/* Сообщение бота */
.feedback-form .bot-msg {
    margin: 8px 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: #10B981;
    min-height: 18px;
    text-align: center;
}

/* Кнопка отправки */
.feedback-form .feedback-submit {
    width: 100%;
    padding: 12px;
    background: #1e5d84;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    transition: background .2s, transform .1s;
}

.feedback-form .feedback-submit:hover:not(:disabled) {
    background: #D97706;
}

.feedback-form .feedback-submit:active:not(:disabled) {
    transform: translateY(1px);
}

.feedback-form .feedback-submit:disabled {
    opacity: .7;
    cursor: not-allowed;
}

/* Адаптив */
@media (max-width: 480px) {
    .feedback-overlay .feedback-modal {
        padding: 22px 18px;
    }

    .feedback-form .captcha-row {
        flex-direction: column;
    }

    .feedback-form .captcha-img {
        height: 44px;
    }
}