/* ==== Чекбокс и лейбл ==== */
.feedback-form-consent {
    margin: 1rem 0;
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Кастомный чекбокс */
.feedback-form-consent input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #666;
    border-radius: 6px;
    position: relative;
    cursor: not-allowed; /* пока заблокирован */
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.feedback-form-consent input[type="checkbox"]:hover {
    border-color: #333;
    box-shadow: 0 0 6px rgba(0,0,0,0.15);
}

/* Галочка */
.feedback-form-consent input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid #333;
    border-width: 0 2px 2px 0;
    transform: scale(0) rotate(45deg);
    animation: checkmarkDraw 0.35s ease forwards;
}

/* Анимация галочки */
@keyframes checkmarkDraw {
    0%   { transform: scale(0) rotate(45deg); opacity: 0; }
    60%  { transform: scale(1.2) rotate(45deg); opacity: 1; }
    100% { transform: scale(1) rotate(45deg); opacity: 1; }
}

/* Лейбл */
.feedback-form-consent label {
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}

.feedback-form-consent label:hover {
    color: #000;
}

/* ==== Оверлей ==== */
.forms-consent-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: none; /* скрыта по умолчанию */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: forms-consent-fadeIn 0.3s ease forwards;
}

@keyframes forms-consent-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==== Модальное окно ==== */
.forms-consent-modal {
    display: flex;
    flex-direction: column;
    background: #fff;
    max-width: 800px;
    width: 90%;
    max-height: 80vh; /* ограничиваем общую высоту */
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    transform: translateY(-30px);
    opacity: 0;
    animation: forms-consent-slideIn 0.4s ease forwards;
}

@keyframes forms-consent-slideIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==== Хедер ==== */
.forms-consent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.forms-consent-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #222;
}

.forms-consent-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.forms-consent-close:hover {
    color: #000;
}

/* ==== Тело ==== */
.forms-consent-body {
    flex: 1; /* растягивается, но ограничен по max-height модалки */
    overflow-y: auto;
    line-height: 1.6;
    color: #333;
    font-size: 0.95rem;
    padding-right: 0.5rem;
    margin-bottom: 1rem; /* чтобы текст не прилипал к кнопке */
}

.forms-consent-body p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* ==== Ссылки ==== */
.forms-consent-link {
    color: #c00;
    font-weight: bold;
    text-decoration: underline;
}

/* ==== Футер ==== */
.forms-consent-footer {
    border-top: 1px solid #eee;
    padding-top: 1rem;
    text-align: center;
    flex-shrink: 0;
}

.forms-consent-accept {
    background: #c00;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.forms-consent-accept:hover {
    background: #900;
    transform: scale(1.05);
}
