#consent-form-modal {
    margin-bottom: 50px;
}

.consent-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.consent-modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    animation: modalShow 0.3s ease-out;
}

@keyframes modalShow {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.consent-form {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.consent-form-title {
    margin: 0 0 25px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.consent-blocks {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 25px;
    max-height: 600px;
}

.consent-blocks::-webkit-scrollbar {
    width: 8px;
}

.consent-blocks::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.consent-blocks::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.consent-blocks::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.consent-block {
    margin-bottom: 20px;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: border-color 0.3s ease;
    padding: 15px;
    background: #fafafa;
}

.consent-block:last-child {
    margin-bottom: 0;
}

.consent-block.error {
    border-color: #ff4444;
    background: #fff5f5;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 20%, 40%, 60%, 80% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    position: relative;
}

.consent-checkbox {
    margin: 0;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    cursor: pointer;
    accent-color: #007bff;
    margin-top: 2px;
}

.required-star {
    color: #ff4444;
    font-weight: bold;
    font-size: 18px;
    position: absolute;
    left: 25px;
    top: 0;
}

.consent-text {
    flex: 1;
    line-height: 1.5;
    font-size: 14px;
    color: #333;
    max-height: 88px;
    overflow-y: auto;
    padding-right: 10px;
    margin-left: 15px;
}

.consent-text::-webkit-scrollbar {
    width: 6px;
}

.consent-text::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.consent-text::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.consent-text a {
    color: #007bff;
    text-decoration: underline;
}

.consent-text a:hover {
    color: #0056b3;
}

.consent-form-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: auto;
}

.consent-button {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 150px;
}

.consent-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.consent-button-primary {
    background: #007bff;
    color: white;
}

.consent-button-primary:hover:not(:disabled) {
    background: #0056b3;
    transform: translateY(-1px);
}

.consent-button-secondary {
    background: #6c757d;
    color: white;
}

.consent-button-secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
}

.consent-error {
    background: #fff5f5;
    border: 1px solid #ff4444;
    color: #cc0000;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
    animation: errorShow 0.3s ease-out;
}

@keyframes errorShow {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .consent-modal {
        padding: 10px;
    }
    
    .consent-form {
        padding: 20px;
    }
    
    .consent-form-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .consent-blocks {
        max-height: 300px;
    }
    
    .consent-text {
        font-size: 13px;
        max-height: 120px;
    }
    
    .consent-form-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .consent-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .consent-form {
        padding: 15px;
    }
    
    .consent-form-title {
        font-size: 18px;
    }
    
    .consent-blocks {
        max-height: 250px;
    }
    
    .consent-block {
        padding: 12px;
    }
}

/* Анимации для улучшения UX */
.consent-checkbox:checked + .required-star {
    color: #28a745;
}

.consent-block:hover {
    background: #f0f8ff;
}

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

/* Улучшенный скроллбар для блоков согласий */
.consent-text {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* Стили для выделения активного элемента */
.consent-checkbox:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.consent-button:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}